Weihao Wang1, Lixin Lu1, Wang Wei1. 1. School of Mechatronic Engineering and Automation, Shanghai University, 99 Shangda Road, BaoShan District, Shanghai 200444, China.
Abstract
For permanent magnet DC motors (PMDCMs), the amplitude of the current signals gradually decreases after the motor starts. In this work, the time domain features and time-frequency-domain features extracted from several successive segments of current signals make up a feature vector, which is adopted for fault diagnosis of PMDCMs. Many redundant features will lead to a decrease in diagnosis efficiency and increase the computation cost, so it is necessary to eliminate redundant features and features that have negative effects. This paper presents a novel supervised filter feature selection method for reducing data dimension by employing the Gaussian probability density function (GPDF) and named Gaussian vote feature selection (GVFS). To evaluate the effectiveness of the proposed GVFS, we compared it with the other five filter feature selection methods by utilizing the PMDCM's data. Additionally, Gaussian naive Bayes (GNB), k-nearest neighbor algorithm (k-NN), and support vector machine (SVM) are utilized for the construction of fault diagnosis models. Experimental results show that the proposed GVFS has a better diagnostic effect than the other five feature selection methods, and the average accuracy of fault diagnosis improves from 97.89% to 99.44%. This paper lays the foundation of fault diagnosis for PMDCMs and provides a novel filter feature selection method.
For permanent magnet DC motors (PMDCMs), the amplitude of the current signals gradually decreases after the motor starts. In this work, the time domain features and time-frequency-domain features extracted from several successive segments of current signals make up a feature vector, which is adopted for fault diagnosis of PMDCMs. Many redundant features will lead to a decrease in diagnosis efficiency and increase the computation cost, so it is necessary to eliminate redundant features and features that have negative effects. This paper presents a novel supervised filter feature selection method for reducing data dimension by employing the Gaussian probability density function (GPDF) and named Gaussian vote feature selection (GVFS). To evaluate the effectiveness of the proposed GVFS, we compared it with the other five filter feature selection methods by utilizing the PMDCM's data. Additionally, Gaussian naive Bayes (GNB), k-nearest neighbor algorithm (k-NN), and support vector machine (SVM) are utilized for the construction of fault diagnosis models. Experimental results show that the proposed GVFS has a better diagnostic effect than the other five feature selection methods, and the average accuracy of fault diagnosis improves from 97.89% to 99.44%. This paper lays the foundation of fault diagnosis for PMDCMs and provides a novel filter feature selection method.
Permanent magnet DC motors (PMDCMs) are widely used in automobiles, household electrical appliances, industrial production, and so on. PMDCM faults may cause noise, vibration, and mechanical damage, which will result in economic losses and poor user experience. Thus, it is necessary to carry out a comprehensive fault diagnosis for PMDCMs before they are out of the factory. However, artificial diagnosis easily leads to misjudgment and is time-consuming. Note, that with the rapid development of computer, communication, and storage technologies, artificial intelligence (AI) is an effective way to solve this problem. However, the increase in the amount of data will cause a tremendous burden on communication, which causes communication data loss and communication delay. Gu et al. [1] found that the communication delay is in gamma distribution [2], and researched distributed tracking control of networked control systems, load frequency control of power systems, and image encryption [3], respectively, and used servo motor experiments to verify the effectiveness of the proposed method. To release the communication burden, a novel weighted integral event-triggered scheme (IETS) is proposed by Yan et al. [4], and an application to image encryption is utilized to demonstrate the advantage of the proposed IETS. Moreover, this paper proposes a novel supervised filter feature selection method to release the communication burden.In this paper, Gaussian naive Bayes (GNB), -nearest neighbor algorithm (-NN), and support vector machine (SVM) are utilized for online fault diagnosis of PMDCM to improve the accuracy of fault diagnosis. Considering the efficiency of online fault diagnosis, this paper proposes a novel supervised filter feature selection method based on Gaussian probability density function (GPDF) for fault diagnosis of PMDCMs to improve the fault diagnosis efficiency while ensuring fault diagnosis accuracy.
1.2. Literature Review of Feature Selection
Feature selection has been widely used in text classification [5,6], speech emotion recognition [7,8], etc. K et al. [5] proposed a hybrid feature selection method for text classification based on a binary poor and rich optimization algorithm (HBPRO). Cekik et al. [6] proposed a feature selection method called a proportional rough feature selector (PRFS) for the high dimensionality problem of short text. Yildirim et al. [7] modified the initial population generation stage of metaheuristic search algorithms to reduce the number of features for emotion classification from speech. For the hierarchical classification problem, Liu et al. [9] proposed a hierarchical feature selection method with a capped l2-norm (HFSCN), which can learn how to discriminate relatively robust feature subsets. Wan et al. [10] considered the interaction properties of rough neighborhood sets. They proposed a feature selection method to reduce the dimensions of hybrid data with uncertainty and noise. Abasabadi et al. [11] proposed a three-step ensemble feature selection method, named automatic thresholding feature selection method (ATFS), a filter method based on interference between class labels. It focuses on the information between not adjacent data pairs. Min et al. [12] proposed the multi-step Markov probability relationship for feature selection (MMFS), an unsupervised feature selection method that utilizes multi-step transition probability to characterize the data structure. Zhou et al. [13] focused on feature interaction between the streaming subsets. They proposed an online group streaming feature selection method (OGSFS-FI), which selects features that can communicate with each other. Wang et al. [14] jointed learns soft-labels and feature selection matrix to obtain an effective unsupervised soft-label feature selection (USFS) method. The USFS model can eliminate the features with negative effects and overcome the intrinsic semantic limitations of unsupervised feature selection methods. Salem et al. [15] proposed a fuzzy joint mutual information (FJMI) feature selection method that automatically selects the best feature subset automatically without a user-defined threshold. Gao et al. [16] proposed a relevance assignation feature selection (RAFS) method based on mutual information (MI), which can select the significant features and deny the undesirable ones. Lall et al. [17] proposed copula-based feature selection (CBFS) to discover the dependence structure between features utilizing a multivariate copula. To improve efficiency and classification accuracy, Zhou et al. [18] proposed a feature selection method of decision trees based on feature weight, called FWDT. Dong et al. [19] presented a multi-label feature selection method (MMFS) based on many-objective optimization for multi-label classification and feature selection problems. Wei et al. [20] proposed a method to measure the relationships of features accurately named dynamic feature importance (DFI). Based on DFI, they proposed a feature selection method named dynamic feature importance feature selection (DFIFS). To obtain higher accuracy with a smaller number of features, the Modified-DFIFS method is developed by combining DFIFS with the classical filters.
1.3. Literature Review of Fault Diagnosis
For rotating machines and equipment, vibration signals, electrical signals and acoustic signals are widely used for fault diagnosis and condition monitoring of bearings, gears and motors in combination with machine learning methods [21]. In this paper, the current signal is taken as the original signal, the GNB, -NN and SVM are utilized as classifiers, and six feature selection methods are combined to diagnose the fault of PMDCMs.Altinors et al. [22] diagnosed the fault in the brushless DC (BLDC) motors used in Unmanned Aerial Vehicles (UAV), by utilizing the sound data received from the motors, the Nearest Neighbor (-NN), Decision tree (DT), Support Vector Machines (SVM) methods are used for the construction of the fault diagnosis models. Jiang et al. [23] proposed a strong robustness diagnosis strategy based on d-q-axis current signal to diagnose the Open-Circuit (OC) fault in the novel fault-tolerant electric drive system. The result shows that the proposed OC fault diagnosis strategy can overcome the OC fault diagnostic false alarms issue when the load changes suddenly or under light-load conditions. Allal et al. [24] proposed a residual harmonic analysis method by normalizing the motor current to predict faults and avoid unexpected failures of the induction motor. Li et al. [25] proposed a novel fault diagnosis method by comparing the trajectory distribution characteristics of different open-circuit faults for the single-phase (two-phase) open-circuit faults of the five-phase permanent magnet synchronous motor (FP-PMSM). They built a test platform with a DSP core to verify the proposed fault diagnosis method. Zhang et al. [26] proposed a time-shifting based hypergraph neural network (TS-HGNN) to diagnose the fault of electromechanical coupled systems by considering the association relationship between multiple nodes of graph-based networks. Zhang et al. [27] proposed a novel conception of inter-turn short circuit fault and utilized the Hidden Markov Model to diagnose the inter-turn short circuit fault of DC brushed motors. The validity of the proposed method for inter-turn short circuits of DC brushed motors is verified by simulating in MATLAB/Simulink. Chen et al. [28] believed that the analysis of motor current characteristics is a very promising technology in electromechanical systems and proposed a fault diagnosis method for planetary gearboxes under variable speed conditions by using stator current signal.
1.4. Contributions and Novelties
As for the previous research on fault diagnosis, lots of fault diagnosis methods for motors have been proposed based on vibration signals, electrical signals and acoustic signals, by utilizing the machine learning method. The online fault diagnosis of PMDCM not only needs to ensure diagnosis accuracy but also needs to ensure diagnosis efficiency. Therefore, this paper proposes a novel feature selection method, which is combined with machine learning to ensure diagnosis efficiency by reducing the dimension of features. As for dimension reduction, lots of methods have been proposed so far. However, some are applied to domain-specific [5,6,7,8], some are aimed at solving high-dimension problems [29], some are to solve the problem of unbalanced samples, some are focused on the relationship between the features [13,30], and some are adopted heuristic algorithms. They are limited to a particular field or condition. Thus, we proposed a novel supervised feature selection method whose features only need to be numerical, and suitable for the fault diagnosis of PMDCMs. The main contributions of the paper are summarized as follows.In the study, current signals are utilized for the fault diagnosis of PMDCMs by utilizing the GNB, -NN, and SVM classifiers, successively. To improve the fault diagnosis efficiency of PMDCMs, the paper proposed a supervised filter feature selection method based on GPDF.The proposed fault diagnosis method of PMDCM in this paper not only improves the diagnostic accuracy and efficiency, but also weakens the dependence on manual experience, and improves the reliability of diagnosis results, which has potential commercial promotion and application value.
1.5. Study Outline
The rest of the paper is organized as follows: Section 2 describes the background of feature selection and Gaussian probability density and introduces the Gaussian probability density function (GPDF). Section 3 introduces the proposed feature selection methods based on the GPDF. Section 4 introduces the experiment framework in this paper, the test rig, the feature extract, and the other five filter feature selection methods. Section 5 shows the fault diagnosis results of PMDCMs and makes an analysis. Finally, Section 6 presents conclusions and ideas for future work.
2. Background
2.1. Feature Selection
Feature selection aims to select the most applicable features while ignoring the irrelevant and redundant ones, and feature selection methods are generally divided into three types: filter, wrapper and embedded [6,10,11,20,29,30].The most widely used filter method is easy to implement and can obtain good performance. The filter methods usually are defined as a scoring mechanism for features, then, the scores of features are calculated, and features with below threshold scores are filtered out. The embedding feature selection method can be regarded as an evolutionary filter feature selection method, which embeds the classifier into the process of feature selection. The evaluation metrics are utilized as the weight of the feature, and then filter out features with weights below the threshold. The wrapper feature selection method selects a subset of features by using a classifier and evaluates the feature subset with a metric (e.g., accuracy, precision, and recall) in each cycle. After several rounds of selection, the best subset of features can be obtained. The disadvantage of the wrapper feature selection method is computing-intensive and time-consuming.Feature selection methods can be classified as supervised [31], semi-supervised [32] and unsupervised [12,14], on the basis of whether labels are used or not. Supervised feature selection methods make full use of labels in training and testing and pay more attention to the relationship between features and labels. For semi-supervised feature selection methods, most of the data are unlabeled. The data of unsupervised feature selection methods are not labeled, and unsupervised feature selection methods only consider the characteristics of features and the connections between features.The proposed GPDF based feature selection method is a supervised filter feature selection method. For more details, see Section 3.
2.2. Gaussian Probability Density
If a random variable follows a Gaussian distribution with mathematical expectation and variance , denoted by , the Gaussian probability density function (GPDF) is as in Equation (1).As can be seen from Figure 1, is the symmetry axis of the GPDF, which determines the central position of the Gaussian PDF. The variance describes the centralization degree of the GPDF. The larger the , the more dispersed the data are distributed. Figure 1 shows four sets of the GPDF function: . It can be seen that the GPDF has the same symmetry axis for a given same value of . When the GPDF has the same , they have the same distribution curve, and the curve of the GPDF gradually becomes smooth with the increase of .
Figure 1
Four kinds of Gaussian probability density function.
The Gaussian probability function (Equation (2)) in the interval is derived from Equation (1).
where represents the probability value of in the interval , represents the lower limit of the GPDF, and represents the upper limit of the GPDF. Integrate the GPDF in the interval , to represent the probability value of the GPDF in the interval (i.e., Calculate the area under the GPDF curve in the interval ). Therefore, the probability value of can be approximately regarded as the Integrate from to , and can be calculated by Equation (3).
where represents the probability value of .Suppose that, there are four GPDFs (e.g.,), and the probability values of on are expressed as , respectively, the ratio of can be expressed by Equation (4).As shown in Figure 1, when , .
3. Proposed Feature Selection Method
3.1. Feature Structure Introduction
In this paper, a supervised feature selection method based on the GPDF is proposed. In this section, the derivation process of the proposed feature selection method is described in detail. Given a feature space , where ,,, is the -th sample, with label . Sample is a real vector of -dimension features, denoted by , the feature structure of the dataset is shown in Table 1.
Table 1
Feature structure of a dataset.
X
F
Y
f1
f2
f3
⋯
fd
x1
x11
x12
x13
⋯
x1d
y1
x2
x21
x22
x23
⋯
x2d
y2
x3
x31
x32
x33
⋯
x3d
y3
⋮
⋮
⋮
⋮
⋱
⋮
⋮
xN
xN1
xN2
xN3
⋯
xNd
yN
3.2. Gaussian Vote Feature Selection
The GVFS proposed in this paper is suitable for classification problems in which the number of categories is greater than or equal to two. The specific steps to implement the feature selection method based on GPDF are as follows:Step 1: Normalizing each feature to ;Step 2: Dividing the samples set into the training dataset and test dataset;Step 3: Dividing each feature of the training dataset into multiple subsets according to the labels of samples;Step 4: Calculate the Gaussian parameters () of each subset separately;Step 5: Calculate the Gaussian probability density function (GPDF) value for each feature of each category;Step 6: Predict the category of each feature () so that each sample corresponds to (feature dimension) prediction categories ;Step 7: Calculate the prediction accuracy of each feature by comparing the prediction category with the actual category ;Step 8: Sort the features in descending order, according to the prediction accuracy of each feature ;Step 9: Select the first features to make up the final feature subset.Figure 2 shows the process of feature category prediction based on the GPDF. All samples must be normalized, and the training samples are utilized to calculate the GPDF parameters () for each feature of each category. For the example in Figure 2, the samples are divided into four categories (), and the red lines represent the feature values of the sample that is to be tested. The GPDF parameters () for each category are calculated for each feature () based on the feature values of the tested sample. For each feature, the category with the maximum GPDF is adopted as the prediction category (), , and the accuracy corresponding to each feature is calculated when all the test samples have been classified, then the features are sorted according to the accuracy .
Figure 2
Diagram of feature classification based on Gaussian probability density function.
The pseudo code of the proposed GVFS method is shown in Algorithm 1. The labeled data set is taken as input, and the feature sorted dataset as the output. The pseudo code of the GVFS consists of two parts: in the first part, the GPDF parameters are calculated by training samples. In the second part, predict the category of each feature of the test sample by utilizing the constructed GVFS model, and the features are sorted according to the prediction accuracy of the features. The process of the proposed GVFS method can be seen in Figure 3.
Figure 3
The process of the proposed GVFS method.
4. Experiment Setting
This study aims at constructing an effective and feasible fault diagnosis model for permanent magnet DC motors (PMDCMs) based on Gaussian naive Bayes (GNB) [33], -nearest neighbor algorithm (-NN) [34], and the support vector machine (SVM) [35] by utilizing the filter feature selection methods.
4.1. Experiment Framework
The experiments were carried out on a PC with Intel Core i5-8250U, 1.8-GHz CPU, 24 GB RAM, 1 TB hard disk, and Windows 11 operating system. Python 3.8 is utilized to process the signal and construction models.The framework of the experiment is shown in Figure 4. Firstly, the experimental platform is introduced, and then 1200 groups of PMDCM’s current signal are collected by LabVIEW 2018 software. Then, the time-domain features and time-frequency-domain features are extracted from the successive multi-segment PMDCM’s current signal. The extracted features are normalized by utilizing the Min-Max normalization. A GNB classifier is used to optimize the number of iterations and the proportion of test samples for normalized features. After determining the number of iterations and the proportion of test samples, the proposed GVFS method and five other feature selection methods (in Section 4.6) are used to sort the extracted features, and -NN classifiers with different values are used to evaluate the different numbers of features, respectively, so as to obtain the number of features with the optimal fault diagnosis accuracy and the number of features with the sub-optimal fault diagnosis accuracy. Optimization of the two hyperparameters ( and ) of the SVM classifier by utilizing the 70% samples with selected features is conducted; at the same time, 10-fold cross-validation is utilized to stabilize the performance. Then, training of the SVM fault diagnosis model is conducted with the optimized two hyperparameters and 70% samples, the remaining 30% samples are used to test the fault diagnosis accuracy of PMDCMs.
Figure 4
The framework of the experimental.
4.2. Test Rig Introduction
As can be seen from Figure 5, the test rig consists of a computer, a control cabinet, and tested PMDCMs. The computer is utilized for data collection, data processing, model construction, result display and so on. The control cabinet consists of the following: 1. The 24 V power supply, which is utilized to provide the 24 V power source for the relays and data acquisition card; 2. The 12 V power supply, which is utilized to provide the 12 V power source for PMDCMs; 3. The front-end relay, which is utilized to control the power on and power off for the data acquisition card; 4. The timer relay, which is utilized to relay the power on for PMDCMs; 5. The four-channel relay, which is utilized to control the power on and power off for PMDCMs; 6. The sampling resistance is utilized to convert the current signal to the voltage signal. 7. The data acquisition card is utilized to collect the voltage signal from the sampling resistance and save the voltage signal to the computer. For more detailed information on the control cabinet parts, please find them in Table 2.
Figure 5
The fault diagnosis platform for PMDCMs. (1) 24 V power supply, (2) 12 V power supply, (3) Front-end relay, (4) Timer relay, (5) 4-channel relay, (6) Sampling resistance, (7) Data acquisition card.
Table 2
Type and function description of the control cabinet parts.
No.
Name
Type
Function Description
1
24 V power supply
Mean Well EDR-120-24
220 V AC to 24 V DC
2
12 V power supply
Mean Well NDR-120-12
220 V AC to 12 V DC
3
Front-end relay
BMZ 02R1-E
Switch of the circuit
4
Timer relay
ANLY AH3-2
Trigger delay:
0~10s
5
4-channel relay
Schneider Electric RX4AB2BD
Switch of the motors
6
Sampling resistance
TO247-100W-0.2
High-frequency-based digital sampling
7
Data acquisition card
ZTIC EM9118B
Collection of voltage signals
Note: AC represents alternating current, DC represents direct current.
4.3. Data Collection
In this work, the current signal of PMDCMs is collected by transforming the current signal into the voltage signal. The sampling frequency is set to 10k Hz, and the duration of the current signal is set to 10 s. The collected current signal data of PMDCMs are saved in the format of LVM by utilizing the software LabVIEW 2018.This research subject comes from the production demand, and the fault diagnosis problem of PMDCM has been put forward by the manufacturing enterprise. In order to detect and repair the fault of PMDCMs in time, it is necessary to implement the final inspection of quality before the PMDCMs leave the factory. The utilized PMDCMs in this study are from motor manufacturers, and the faults of PMDCMs are natural. According to the experience of motor manufacturers, the PMDCM’s faults are divided into six categories, as can be seen in Table 3. The faults are natural failures in the production process rather than man-made failures. The motor will vibrate due to shaft unbalance. The noise caused by bearing friction and the bearing slipping will produce obvious intermittent noise and slight vibration.
Table 3
Categorization for healthy and faulty PMDCMs.
Class
Actual Status
Number of PMDCMs
1
Healthy
3
2
Slight noise
1
3
Loud noise
2
4
Harsh noise
1
5
Shaft unbalance
1
6
Bearing slipping
1
Note: PMDCM represents permanent magnet DC motor.
As can be seen from Table 3, the PMDCMs are divided into six categories (healthy, slight noise, loud noise, harsh noise, shaft unbalance, and bearing slipping), and 200 samples are collected for each category of PMDCM, a total of samples are obtained.
4.4. Feature Extraction
Features need to be extracted from the current signals with the aim to reflect the PMDCM’s health state. Feature extraction involves deriving time-domain, frequency-domain, and time-frequency-domain features from the raw signals. In this work, wavelet packet decomposition (WPD) [36] is employed for the extraction of the time-frequency features. The raw signals are decomposed up to three levels. The detailed coefficients and approximate coefficients of levels 1 to 3 are obtained and from which the wavelet energy is computed. Moreover, nine time-domain features are extracted from the current signals for PMDCMs fault diagnosis. A total of 17 features, 9 time-domain and 8 time-frequency-domain are extracted from the signals. The time domain features are presented in Table 4.
Table 4
The extracted time domain features.
Index
Features
Expression
1
Mean(μ)
μ=E(xi)
2
RootMeanSquare(RMS)
xRMS={E(xi2)}1/2
3
Maximum(Max)
xMax=max(xi)
4
PeaktoValley(PV)
xPV=max(xi)−min(xi)
5
Standarddeviation(Std)
xStd=σ={E[(xi−μ)2]}1/2
6
Skewness(Ske)
xSke=E{[(xi−μ)/σ]3}
7
Kurtosis(Kur)
xKur=E{[(xi−μ)/σ]4}
8
ShapeFactor(SF)
xSF=xRMS/μ
9
CrestFactor(CF)
xCF=xMax/xRMS
As can be seen from Figure 6, the current signals of each type of PMDCM are different in both starting and stable stages [37]. To diagnose the health condition of PMDCMs effectively, the current signals are divided into multi-segment and extracted the 17 features for several successive segments, respectively, and the extracted features are adopted for fault diagnosis of PMDCMs. We divided the current signals into 16 segments, the first 12 segments start from 0.5 s with a duration of 0.025 s, and the last four segments with a duration of 0.5 s, for each segment to extract 17 features, a total of features are extracted for each sample. (s represents the second.)
Figure 6
Multi-segment feature extraction. (A, B, C, D, , n represent the multi-segment signal.)
4.5. Feature Preprocessing
Features are transformed into the same order of magnitude, after normalizing. so that different features have the same weight, which can be comprehensively evaluated and analyzed. At the same time, normalization of the data can avoid numerical problems caused by large values, so the features need to be normalized before model construction. The commonly used normalization methods are Min-Max normalization and Zero-Score normalization, the equations are as shown in Equations (5) and (6).
where and denote the operation that returns the minimum and maximum values of , represents the new value of . represents the mean value of , represents the standard deviation of . The Min-Max normalization method transfers each feature to the interval of [0, 1], and only scales the features equally. However, the Zero-Score normalization method maps the original features to a standard Gaussian distribution, which changes the distribution of features. Therefore, the Min-Max normalization method is utilized to normalize the features.
4.6. Feature Selection Methods
In this work, the proposed GVFS method is compared with the other five feature selection methods (e.g., Fisher score feature selection (FSFS) [38], mutual information feature selection (MIFS) [10,15,39], variance threshold feature selection (VTFS) [40], F-test feature selection (F-testFS) [41], chi-square feature selection (chi2FS) [42]) by utilizing the PMDCM’s data.FSFSFisher score feature selection (FSFS) [38] is one of the effective filter methods for feature selection. The main idea of FSFS is that find the features with the distances between different categories being as large as possible, while the distances of the same category are as small as possible. Specifically, let and be the mean and standard deviation of -th category, corresponding to the -th feature. Let and denote the mean and standard deviation of the -th feature. represents the number of categories. represents the number of samples with the label . Then the Fisher score of the -th feature is computed according to Equation (7).After the Fisher score was calculated for each feature, the features were then ranked in descending order according to the Fisher score.MIFSThe MI [39] indicates the degree of correlation between two variables, i.e., the change degree of a variable when another variable is changed. There are three types of calculations in total according to the type of variable: between discrete and discrete data, between continuous and continuous data, and between discrete and continuous data. The between discrete and discrete data is calculated as shown in Equation (8). The MI between continuous and continuous data is calculated as shown in Equation (9).In Equation (8) is the joint probability distribution function of and , and are the marginal probability distribution functions of and , respectively. In Equation (9) is the joint probability density function of and , and are the marginal probability density functions of and , respectively.A novel calculation method of MI between discrete and continuous data was proposed by Ross [39] in 2014 and is widely used. He first finds the -th closest neighbor to point among those data points whose value of the discrete variable equals using some distance metric. Define as the distance to this -th neighbor. Then count the number of neighbors in the full dataset that lies within distance to point (including the -th neighbor itself). Based on and calculate the MI by Equation (10).
where, is the digamma function, means calculating the average value. In Equation (10) larger -values lead to lower sampling error but higher coarse-graining error, we set the as 3. In this paper, take each feature as a variable, and the label as another variable to calculate the correlation between each feature and the label. Features are sorted in descent according to the MI, the first features are selected to form the new feature subset, and this feature selection method is called MIFS.VTFSDivide the same features of all samples into a group and calculate the variance according to Equation (11) which is recorded as .
where represents the number of , represents the average value of , a lower variance indicates a more consistent feature between samples. By default, a feature with zero variance will be eliminated, as there is no difference in feature between samples, which is an ineffective feature. Calculating the variance of the same feature for all samples has been the most widely utilized in feature selection. Features are sorted in descending order of the variance. Generally, it is necessary to define a threshold to eliminate the features which have a variance below the threshold. In this paper, to compare with other feature selection methods, the threshold is not defined, and the features are sorted by variance. Finally, the first features are selected to form the new feature subset, and this feature selection method is called VTFS.F-testFSF-test feature selection (F-testFS) [41] method ranks the features in descending order according to the f-score (Equation (12)) which calculates the ratio of the variance (Equation (11)) between categories and the variance within a category for a feature. A greater f-score means that the distance within the category is less and the distance between the category is more. The f-score is given by Equation (12).
where, represents the variance within a category, represents the variance between categories.It is assumed that there are six samples, each of which contains one feature. Suppose that the six samples have three distribution states as shown in Figure 7, respectively. C1, C2 and C3 represent the three categories, respectively. In Figure 7, the variance of each category is calculated according to Equation (11) and then averaged, which is denoted as , and , respectively. , and are calculated according to Equation (11), they represent the variance of the six samples in Figure 7 C1, C2 and C3, respectively.
Figure 7
Three distribution states of the same feature for six samples.
Chi2FSThe chi-square feature selection (chi2FS) [42] method ranks the features in ascending order according to the chi-square value (Equation (13)) The basic idea of the chi-square test lies in the degree of deviation between the actual observed value and the theoretical inferred value of statistical samples. The degree of deviation between the actual observed value and the theoretical inferred value determines the magnitude of the chi-square value. If the chi-square value is larger, the greater the degree of deviation between them is. If the two values are completely equal, the chi-square value is zero, indicating that the theoretical value is completely consistent with the actual value.
where represents the actual observed frequency of samples and represents the theoretical inferred frequency of samples. In this work, we utilized the scikit-learn of python to calculate the chi-square value between discrete and continuous data.
5. Results and Analysis
In this section, firstly, the number of iterations and the training rate of the dataset have been determined by utilizing the GNB classifier. Secondly, a -NN classifier with different values is used to select the number of features, and the features are sorted by utilizing the six feature selection methods. Finally, the selected features and 70% of the samples are utilized to select the optimal two hyperparameters of the SVM classifier, and the remaining 30% samples are utilized to test the fault diagnosis accuracy of the PMDCM model.
5.1. The Results Based on GNB Classifier
The fault diagnosis accuracy of the PMDCM’s model based on the GNB classifier is shown in Table 5. The number of iterations represents the number of times the model is trained by utilizing the GNB classifier, and the number of iterations ranges from 10 to 100 times, in the step of 10 times. The test rate ranges from 10% to 90% in the step of 10% number of features, the numbers of the feature are shown in Table 6; the test rate represents the proportion of the number of test samples in the total number of samples. As shown in Figure 8, for each number of test samples the models are carried out in ten different iterations. There are nine sets of the test sample in this work, a total of models were established.
Table 5
The diagnosis accuracy of the PMDCM based on GNB classifier.
The Number of Iterations
10
20
30
40
50
60
70
80
90
100
Var
Test rate
10%
90.83
87.42
87.08
86.95
86.88
86.84
86.81
86.79
86.78
86.76
1.57
20%
88.33
87.18
86.97
86.88
86.83
86.8
86.78
86.76
86.75
86.74
0.24
30%
87.22
86.89
86.8
86.76
86.74
86.73
86.72
86.71
86.71
86.7
0.03
40%
86.77
86.71
86.7
86.69
86.68
86.68
86.68
86.68
86.67
86.67
0.00
50%
86.52
86.59
86.61
86.62
86.63
86.64
86.64
86.64
86.65
86.65
0.00
60%
86.54
86.59
86.61
86.63
86.63
86.64
86.64
86.64
86.65
86.65
0.00
70%
86.61
86.63
86.64
86.65
86.65
86.65
86.65
86.65
86.65
86.66
0.00
80%
86.71
86.69
86.68
86.68
86.68
86.67
86.67
86.67
86.67
86.67
0.00
90%
86.66
86.66
86.66
86.66
86.66
86.66
86.66
86.66
86.66
86.66
0.00
Var
2.03
0.09
0.03
0.01
0.01
0.01
0.00
0.00
0.00
0.00
Note: Var represents the variance value.
Table 6
The number of features.
Test Rate
10%
20%
30%
40%
50%
60%
70%
80%
90%
Test sample number
120
240
360
480
600
720
840
960
1080
Figure 8
The process of selecting the number of features and iterations.
For the GNB classifier, there are no hyperparameters that need to be adjusted; the GNB classifier is suitable for determining the number of iterations and dividing the proportion of samples for the training dataset and testing dataset. The number of iterations and the dividing ratio of samples can be decided according to the former research in order to make the experiments more rigorous and make the number of iterations and the dividing ratio of samples more suitable for the PMDCMs’ dataset. The fault diagnosis models for PMDCM with the different number of iterations and the dividing ratio of samples are constructed by utilizing the GNB classifier. The experimental results are shown in Table 5.To further analyze the diagnosis performance in Table 5, as can be seen in Figure 9, The smaller variance means the better stability of the model. Figure 9a shows the change in the variance value of diagnostic accuracy as the number of iterations increases. As can be seen from Figure 9a, when the number of iterations of the models is set to 10, the variance value of the diagnostic accuracy is 2.03, and when the number of iterations of the models is set to 20, the variance value of the diagnostic accuracy decreases from 2.03 to 0.09. When the variance value is 0.09, the model has sufficient stability. Therefore, the number of iterations is set to 20 in the next experiment. Figure 9b shows the change in the variance value of diagnostic accuracy as the test rate increases. When the proportion of samples utilized for the test increases from 10% to 20%, the variance value decreases from 1.57 to 0.24. When the proportion of samples utilized for the test increases from 20% to 30%, the variance value decreases to 0.03, which is close to 0. The diagnosis accuracy with small fluctuation space. Therefore, for the rest experiments, 70% of the samples are used for training the model, and 30% of the samples are used for testing the model.
Figure 9
The variance value of diagnosis accuracy for different iterations and test rate, (a) The variance value of diagnosis accuracy for different iterations, (b) The variance value of diagnosis accuracy for different test rate.
5.2. The Results Based on -NN Classifier
For machine learning models, decreasing the number of features by selecting features is the direct method to improve the training efficiency of models. The experimental process of feature selection by utilizing the six feature selection methods by utilizing the -NN classifier with different values can be seen in Figure 10. Firstly, the extracted features are normalized by utilizing the Min-Max normalization. Secondly, the six feature selection methods (in Section 4.6) are utilized to select features, and the feature number of each model increases from 10% number features to 100% number features in the 10% number features of the dataset. The number of extracted features from motor current signals is shown in Table 7, the number of features starts at 34 and ends at 340. Finally, the -NN classifier is utilized to establish motor fault diagnosis models for the different number of features, the most important hyperparameter is the number of nearest neighbors for the -NN classifier. In order to carry out a detailed experimental comparison, this paper set the value of the -NN classifier models in 3, 5, 7 and 9, respectively, and utilizes the six feature selection methods. Euclidean distance is utilized to calculate the distance between samples. For each feature selection method establish 10 models, the number of features of each model is listed in Table 7. The samples of each category are randomly divided into 70% and 30%, is the number of samples used for the training model, and the remaining number of samples are used for testing the performance of the models. To obtain a more stable performance, each model is iterated for 20 rounds, for each iteration, the samples will be redivided randomly, and the average performance is adopted as the performance of models.
Figure 10
The experimental process of feature selection by utilizing the six feature selection methods and by utilizing the -NN classifier with different values.
Table 7
The number of features.
Feature Rate
10%
20%
30%
40%
50%
60%
70%
80%
90%
100%
Feature numbers
34
68
102
136
170
204
238
272
306
340
Figure 11a–d shows the fault diagnosis results of setting the value of the -NN classifier to 3, 5, 7 and 9, respectively. By utilizing six feature selection methods. In Figure 11a, when the value of the -NN classifier is set to 3, the best fault diagnosis accuracy of 97.84% can be achieved when utilizing the VTFS method to select 170 features and the proposed GVFS method to select 238 features. In Figure 11b–d, the common result is that when utilizing the 238 features selected by utilizing the proposed GVFS method, the model can achieve the best fault diagnosis accuracy, 97.54%, 97.39% and 97%, respectively. When the 136 selected features are utilized to construct the fault diagnosis model, the VTFS method can achieve the best fault diagnosis accuracy. In order to further improve the fault diagnosis accuracy, the 136 (Utilizing the VTFS method) and 238 (Utilizing the GVFS method) selected features will be utilized to construct the fault diagnosis model.
Figure 11
The fault diagnosis accuracy by utilizing the -NN classifier with different value.
As can be seen from Figure 11, when the value of -NN is set to 3, 5, 7 and 9, the fault diagnosis accuracy of PMDCMs have the same change trend. Therefore, we only analyze the results when the value is set to 7 in detail. As shown in Figure 11c, as the number of features increases from 34 to 204 when FSFS and MIFS methods are utilized, the fault diagnosis accuracy of PMDCMs increases from 91.92% to 95.58% and from 92.82% to 96.49%, respectively, then with the increase of the feature number, the fault diagnosis accuracy of PMDCMs decreases in a fluctuating way. When the F-testFS method is utilized to select the feature, the fault diagnosis accuracy of PMDCMs increases from 88.76% to 96.43 gradually as the number of features increases from 34 to 272; when all features are utilized to establish the fault diagnosis model, the fault diagnosis accuracy decreases to 95.12%. When the number of features increases from 34 to 272 the fault diagnosis accuracy of PMDCMs increases from 90.1% to 96.21% in a fluctuating way by utilizing the Chi2FS method; when all features are utilized to establish the fault diagnosis model, the fault diagnosis accuracy decreases to 95.01%. As the number of features increases from 34 to 170, when the VTFS method is utilized, the fault diagnosis accuracy of PMDCMs increases from 90.11% to 97.01%; then with the increase of the feature number, the fault diagnosis accuracy of PMDCMs decreases in a fluctuating way. When utilizing the proposed GVFS method to construct the fault diagnosis models for PMDCMs, the number of features increase from 34 to 238; the fault diagnosis accuracy of PMDCMs increased from 87.11% to 97.39%, with the number of features increasing from 238 to 340, the fault diagnosis accuracy of PMDCMs decreased from 97.39% to 95.51%.
5.3. The Results Based on SVM Classifier
To further improve the fault diagnosis accuracy of PMDCMs, under the condition of determining the number of features. The SVM classifier is utilized to construct the PMDCM’s fault diagnosis model for 136 features selected by VTFS and 238 features selected by GVFS, respectively. As for the SVM-based fault diagnosis model of PMDCMs, there are two hyperparameters that affect the performance of the SVM classifier with the Gaussian kernel function, i.e., the penalty parameter and the kernel parameter .The process of PMDCM’s fault diagnosis by utilizing the SVM classifier is shown in Figure 12, the grid-search method is utilized to determine the two hyperparameters ( and ) of the SVM. The grid-search method for the SVM optimization of the hyperparameters is carried out in a two-dimensional space: . The grid size and are set to and , respectively. In the grid-search method, intersections in the grid space are formed by the combination of and , a total of intersections. Each intersection corresponds to a fault diagnosis accuracy of PMDCMs. The samples of each category are randomly divided into 70% and 30%, samples are used to search the optimal hyperparameters of the SVM classifier, and the remaining samples are used to test the fault diagnosis accuracy of the PMDCMs. For each fault diagnosis, the accuracy of PMDCM’s model is checked by utilizing the combination of and ; the 10-fold cross-validation [43] is utilized while the aim is to obtain stable fault diagnosis accuracy. The process of 10-fold cross-validation can be seen in Figure 13. The dataset is randomly divided into ten equal subsets; one of them is adopted as the ‘test set’, and the other nine subsets are taken as the ‘training set’. The ‘training set’ is utilized to construct the GVFS model, and the ‘test set’ is utilized to predict the evaluations. The model is carried out ten times, and the average prediction evaluation of the ten models is taken as the final evaluation of the model.
Figure 12
The process of PMDCM’s fault diagnosis by utilizing the SVM classifier.
Figure 13
The process of 10-fold cross-validation.
The fault diagnosis accuracies of PMDCMs are shown in Figure 14. Figure 14a shows fault diagnosis accuracies of PMDCMs by utilizing the different combinations of and , when utilizing the 136 features selected by utilizing the VTFS method. A total of results are obtained. As shown in Figure 14a, the fault diagnosis accuracy of the area enclosed by the four points is greater than 98%. We set the center point of the enclosed area as the optimal hyperparameter of the SVM-based fault diagnosis model by utilizing the 136 features selected by utilizing the VTFS method. Figure 14b shows fault diagnosis accuracies of PMDCMs by utilizing the different combinations of and , when utilizing the 238 features selected by utilizing the GVFS method. A total of results are obtained. As shown in Figure 14b, the fault diagnosis accuracy of the area enclosed by the four points is greater than 98%. We set the center point of the enclosed area as the optimal hyperparameter of the SVM-based fault diagnosis model by utilizing the 238 features selected by utilizing the GVFS method.
Figure 14
The fault diagnosis accuracies of PMDCMs by utilizing the SVM classifier with different hyperparameters, (a) with the 136 selected features by the VTFS method, (b) with the 238 selected features by the GVFS method.
Figure 15a shows the fault diagnosis result of the 360 PMDCM samples with the 136 selected features by the VTFS method. First, the 1200 PMDCM samples are randomly divided into the proportion of 70% (840 samples) and 30% (360 samples), and then 70% of the divided samples are used for training the SVM-based fault diagnosis model with hyperparameters , and finally, use the remaining 30% samples to test the performance of the model. Figure 15b shows the fault diagnosis result of the 360 PMDCM samples with the 238 selected features by the GVFS method. First, the 1200 PMDCM samples are randomly divided into the proportion of 70% (840 samples) and 30% (360 samples), and then 70% of the divided samples are used for training the SVM-based fault diagnosis model with hyperparameters ; finally, use the remaining 30% samples to test the performance of the model.
Figure 15
The fault diagnosis confusion matrixes by utilizing the SVM classifier of the 360 PMDCM samples (each category has 60 samples) with the 136 selected features by the VTFS method (a), and with the 238 selected features by the GVFS method (b).
In Figure 15a,b, the horizontal axis represents the prediction state of PMDCMs, and the longitudinal axis represents the true state of PMDCMs. The state of PMDCMs faults is divided into six categories, each category has 60 test samples, and a total of test samples. It can be seen from the two confusion matrices that most samples were correctly classified; however, in Figure 15a four samples were misclassified, and in Figure 15b two samples were misclassified, with the fault diagnosis accuracy of 98.89% and 99.44%, respectively.As mentioned in the introduction, in order to improve the fault diagnosis efficiency of PMDCMs on the premise of ensuring the fault diagnosis accuracy of PMDCMs, this paper proposes a supervised filter feature selection method based on Gaussian probability density to reduce the number of features to improve the fault diagnosis efficiency of PMDCMs and compares the proposed feature selection method with the other five filter feature selection methods. GNB, -NN and SVM classifiers are used to construct the fault diagnosis model of PMDCMs successively. First, the GNB classifier is used to determine the number of iterations of the experiment and the proportion of training samples. As shown in Figure 9 and Table 5, the variance of fault diagnosis accuracy is close to 0, when the number of iterations exceeds 20. Similarly, when the ratio of training samples to test samples is kept at 7 to 3, the fault diagnosis model of PMDCMs stays at a stable classification accuracy. Then the -NN classifier is used to determine the optimal feature number. The experimental results are shown in Figure 11. When the value of the -NN classifier is set to 3, 5, 7 and 9, and the number of features selected by the proposed GVFS method is set to 238, the model can achieve the optimal fault diagnosis accuracy of 97.89%, 97.54%, 97.39% and 97%, respectively. Finally, of the 238 features selected by the proposed GVFS method, the SVM classifier is utilized to further improve the fault diagnosis accuracy of PMDCMs, so that the fault diagnosis accuracy is increased from 97.89% to 99.44%.
6. Conclusions and Future Work
In this work, a novel supervised feature selection method has been proposed, namely GVFS, to reduce the dimensional of the features based on GPDF for fault diagnosis of PMDCMs. The main conclusions are as follows:The proposed GVFS method has a better performance than the other five filter feature selection methods.The iteration of the experiment can effectively reduce the fluctuation of PMDCM’s fault diagnosis accuracy.The extracted features of PMDCM’s existence redundancy features and some features have a negative effect.The effectiveness of the presented GVFS method is validated through the fault diagnosis experiment of PMDCMs. This paper provides theoretical guidance for feature selection and fault diagnosis of PMDCMs. In future work, the proposed GVFS in this paper will extend as a classifier and as a method to identify the feature weights.