Next Article in Journal
Counting-Based Effective Dimension and Discrete Regularizations
Previous Article in Journal
Non-Monotonic Complexity of Stochastic Model of the Channel Gating Dynamics
Previous Article in Special Issue
Willow Catkin Optimization Algorithm Applied in the TDOA-FDOA Joint Location Problem
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Tri-Training Algorithm for Adaptive Nearest Neighbor Density Editing and Cross Entropy Evaluation

1
School of Information Engineering, Nanchang Institute of Technology, Nanchang 330099, China
2
School of Artificial Intelligence and Automation, Huazhong University of Science and Technology, Wuhan 430074, China
*
Author to whom correspondence should be addressed.
Entropy 2023, 25(3), 480; https://doi.org/10.3390/e25030480
Submission received: 13 December 2022 / Revised: 14 February 2023 / Accepted: 2 March 2023 / Published: 9 March 2023

Abstract

:
Tri-training expands the training set by adding pseudo-labels to unlabeled data, which effectively improves the generalization ability of the classifier, but it is easy to mislabel unlabeled data into training noise, which damages the learning efficiency of the classifier, and the explicit decision mechanism tends to make the training noise degrade the accuracy of the classification model in the prediction stage. This study proposes the Tri-training algorithm for adaptive nearest neighbor density editing and cross-entropy evaluation (TTADEC), which is used to reduce the training noise formed during the classifier iteration and to solve the problem of inaccurate prediction by explicit decision mechanism. First, the TTADEC algorithm uses the nearest neighbor editing to label high-confidence samples. Then, combined with the relative nearest neighbor to define the local density of samples to screen the pre-training samples, and then dynamically expand the training set by adaptive technique. Finally, the decision process uses cross-entropy to evaluate the completed base classifier of training and assign appropriate weights to it to construct a decision function. The effectiveness of the TTADEC algorithm is verified on the UCI dataset, and the experimental results show that compared with the standard Tri-training algorithm and its improvement algorithm, the TTADEC algorithm has better classification performance and can effectively deal with the semi-supervised classification problem where the training set is insufficient.

1. Introduction

Data mining refers to the process of finding specific rules and obtaining valuable information from data. Data mining methods include supervised learning, unsupervised learning, and semi-supervised learning [1,2,3]. Supervised learning uses labeled data to train classifiers and requires enough training data to ensure model performance; unsupervised learning does not require a priori information about the data and uses the idea of clustering samples with a high degree of similarity in the same clusters. Still, the accuracy of the model is difficult to guarantee. In the era of big data, the volume of data is growing exponentially, and it is easier to obtain large amounts of unlabeled data, which often requires a lot of human, material, and financial resources to assign labels to these data. Semi-supervised learning combines the advantages of supervised learning and unsupervised learning—breaking the boundary of traditional methods of using only one kind of data and using unlabeled data to assist labeled data for learning, which has become one of the research hotspots in the field of data mining [4]. Semi-supervised learning has been widely used in image processing [5], medical diagnosis [6], false comment detection [7], network security [8], etc.
Semi-supervised classification learning is a method that employs semi-supervised learning models to solve classification problems, which can guarantee the performance of classification models even when labeled data are insufficient. The main semi-supervised classification methods currently available include disagreement-based methods [9], generative methods [10], graph-based methods [11], and discriminative methods [12], etc. The disagreement-based method utilizes unlabeled data through multiple classifiers and adds pseudo-labels to the unlabeled data as a platform for information interaction among multiple classifiers during the training process. The generative method assumes that the data are all generated by the same generative model. The sample and class labels are generated by probability distributions of certain structural relationships, and the unlabeled data can be associated with learning objectives with the help of model parameters. A graph-based method maps data onto a connected graph by knotting geometric relationships between samples and constructing kernel functions to carry out information transfer of labels on the graph. The discriminative method learns decision boundaries by training both labeled and unlabeled samples through a maximum interval algorithm so that the learned classification hyperplane is at the maximum distance from the sample interval. Among them, the disagreement-based method is less affected by model assumptions and data size issues and is more widely applicable.
The semi-supervised classification methods based on the idea of disagreement originated from the co-training algorithm [13] proposed by Blum et al. The algorithm uses different views of labeled data to train two initial classifiers, and each classifier selects a number of unlabeled data with high confidence to add pseudo-labels to the training set of the other one and improves the classification performance by training each other. The algorithm requires at least two sufficiently redundant and conditionally independent views of the data, but in practical problems, it is difficult to satisfy this condition. To solve the problem of sufficiently redundant views of data, Zhou et al. [14] proposed the Tri-training algorithm, which generates three classifiers from a single-view training set to learn from each other to train the classification model. The algorithm does not require enough redundant views, which effectively reduces the data requirements and improves the efficiency and generalization ability of the algorithm.
Tri-training algorithm improves the performance of the classification model by expanding the training sets of three classifiers to each other; similar to the co-training algorithm, the performance of classifiers in the early iterative process is weak, and the multiple classifiers labeling the same unlabeled samples are prone to inconsistent class labeling. Secondly, the accumulation of mislabeled samples makes the performance of each classifier different, and the explicit decision mechanism using the voting method is prone to make the prediction results inaccurate.
To address the problem that expanding the training set is prone to forming training noise, Deng et al. [15] uses the remove-only editing operation to identify and remove the mislabeled samples that may arise from each iteration and proposed a Tri-training algorithm based on adaptive editing in combination with an adaptive strategy. Zhao et al. [16] use an active learning approach based on uncertainty and representativeness to sample unlabeled samples and proposed a group verification pseudo-label sample method and a security verification method., and select the labeled category with a low error rate as the final sample label by secondary validation. Li et al. [17] combine integrated learning with a Tri-training algorithm, estimate the confidence of unlabeled data by integrated learning, and use the confidence to weight the unlabeled samples to train the classifier, which reduces the influence of training noise on the classification model. Hu et al. [18] improved the access condition of the training set, estimated the prediction probability of unlabeled samples using the classifier, and dynamically adjusted the prediction probability threshold for the same unlabeled samples by tracking the sample distribution after each training round, reducing the noise while maintaining the sample class balance. Wang et al. [19] used an asymmetric tri-training model to expand the training set by estimating confidence and setting expert thresholds and combined the training sets of three classifiers to train a fourth classifier for decision target values using their common features and special features.
To address the prediction inaccuracy problem of explicit decision mechanism, Zhang et al. [20] introduced the ideas of cross entropy and convex optimization to improve the Tri-training algorithm, using cross entropy instead of the classification error rate to reflect the difference between the predicted distribution and the true distribution. The authors used the hinge loss function to estimate the degree of difference between the predicted and true values of the model and combined it with the convex optimization method to find the classifier weights under the minimum degree of difference to improve the accuracy of the model prediction. Mo et al. [21] assigned weights to the newly labeled data by Euclidean distance and entropy values, constructed a decision function based on the weight of each classifier’s accuracy and used a weighted voting method to predict the target values.
In order to better eliminate the training noise that impairs the learning ability of classifiers and improve the decision-making ability of classification models, this paper proposes a Tri-training for adaptive nearest neighbor density editing and cross-entropy evaluation (TTADEC). The structure of this paper is as follows: Section 2 outlines the Tri-training algorithm and its shortcomings; Section 3 discusses the new algorithm proposed in this paper in detail; Section 4 conducts simulation experiments on several UCI datasets and analyzes the performance of the algorithm; Section 5 concludes the paper.

2. Basic Concepts

2.1. Tri-Training Algorithm

Tri-training is a semi-supervised classification method based on the idea of divergence, which solves the problem of sufficient redundancy of data views in the co-training algorithm, which is not required for data views. The algorithm essentially uses a combination of multiple classifiers to combine the outputs of each classifier to obtain stronger performance than using a single classifier.
The basic idea of the Tri-training algorithm is as follows: first, three base classifiers are generated by randomly sampling training samples from single-view labeled data L through the b o o t s t r a p method; second, the training set of the three base classifiers is expanded, and any two base classifiers have the same prediction result for the unlabeled data sample x , then x is added to the training set of the third base classifier; finally, the base classifier is updated under the condition that the iterative process is satisfied until the base classifier error rate no longer changes and the training process is completed. The specific process is shown in Figure 1.
The Tri-training algorithm expands the training set to update the base classifier after each round of iteration to satisfy the constraints. Taking the expanded base classifier h 1 training set as an example, assume that L t and L t 1 are the expanded training sets for rounds t and t 1 , respectively, and the training noise rate η t of the base classifier h 1 in round t iteration is shown in Equation (1).
η t = η L | L | + e 1 t | L t | | L L t |
where η L is the noise rate of the initial label data L and e 1 t is the upper limit of the error rate of the joint classifier consisting of the base classifier h 2 and h 3 in the round t iteration.
According to the learnable theory in the literature [22], through Equation (2), the relationship between the training set size m , noise rate η and classification error rate ξ can be found as 1 ξ m ( 1 2 η ) 2 .
c ξ 2 = m ( 1 2 η ) 2
Zhou et al. [13] proved that the classifier performance is improved when the newly expanded training set has enough samples and the constraints of Equation (3) are satisfied.
| L L t | 1 2 η L | L | + e 1 t | L t | | L L t | 2 > | L L t 1 | 1 2 η L | L | + e 1 t 1 | L t 1 | | L L t 1 | 2
when | L t | > | L t 1 | , Equation (4) can be introduced under the constraints of Equation (3):
0 < e 1 t e 1 t 1 < | L t 1 | | L t | < 1
The Tri-training algorithm expands the training set according to Equation (3), and the pseudo-labeled samples are labeled for base classifier h 2 and h 3 are added to the base classifier h 1 training set when the constraints are satisfied, and vice versa, the training set does not change. The training sets of base classifiers h 2 and h 3 are added in the same way until the iterative process does not satisfy the constraints, the training process ends, and the base classifier does not change anymore.

2.2. Nearest Neighbor and Relative Nearest Neighbor

Nearest neighbor is a classification algorithm based on the distance between samples in a neighborhood, which determines the class of samples to be tested by a voting method according to the nearest neighbor label.
Definition 1.
k Nearest Neighbor (KNN). Any sample point i in the dataset, the nearest k samples from which is the set of k nearest neighbors of sample i , denoted as k n n ( i ) .
The relative nearest neighbor is then the correlation between sample k nearest neighbor. The shared area is part of the sample k nearest neighbor that is shared with the other sample k nearest neighbor, and the rest is the non-shared area, and the more samples in the shared area indicate the higher similarity between the two samples. The shared regions include shared nearest neighbors and natural nearest neighbors, which are defined as follows.
Definition 2.
Shared Nearest Neighbor (SNN). The set of k nearest neighbors of any sample i and j in the dataset, the set of nearest neighbors of sample i and sample j are k n n ( i ) and k n n ( j ) respectively, and the set of common nearest neighbors of sample i and sample j is called their shared nearest neighbor set, denoted as:
S N N ( i , j ) = k n n ( i ) k n n ( j )
Definition 3.
Natural Nearest Neighbor (NNN). Any sample i and j in the dataset, sample i and sample j have the set of k nearest neighbors as k n n ( i ) and k n n ( j ) respectively, k n n ( i ) contains sample j and k n n ( j ) contains sample i , then sample i and sample j are called natural nearest neighbor set and are denoted as:
N N N ( i , j ) = 1   ,   i k n n ( j )   a n d   j k n n ( i )   0   ,   o t h e r s
Shared nearest neighbors and natural nearest neighbors have been widely used in model optimization, machine learning and other fields. For example, Zhao et al. [23] defined the similarity between samples by shared nearest neighbors and natural nearest neighbors. The experiments showed that they could indicate the similarity degree of samples more accurately and improve the accuracy of sample assignment; Zhu et al. [24] incorporated shared nearest neighbors into single-cell clustering and defined the weights of edges by the ratio of shared nearest neighbors to nearest neighbors, and integrated the structural information of the graph to achieve the improvement of single-cell clustering accuracy. The samples within the shared region can be used indirectly as the similarity judging index. The more samples within the region indicate the higher similarity of the two samples and the higher possibility of belonging to the same kind.

3. TTADEC Algorithm

To address the shortcomings of Tri-training, the TTADEC algorithm is proposed in this paper. This section will introduce the TTADEC algorithm in detail, including the nearest neighbor editing, sample local density and adaptive sample expansion techniques used in the training process, the decision function of the algorithm and the algorithm steps.

3.1. Nearest Neighbor Editing

By analyzing the training process of the Tri-training algorithm, it can be found that the algorithm is prone to mislabeling unlabeled data as training noise in the early iteration process, which hinders the learning ability of the base classifier, resulting in the ineffective improvement of the base classifier’s performance. If the mislabeled samples can be identified and removed during the iterative process, more accurate hypotheses can be obtained, and the base classifier can predict the unlabeled samples more accurately afterwards.
For this purpose, the nearest neighbor idea is introduced to label the suspicious noisy samples in the iterative process. In most cases, the closer the samples are to each other, the higher their similarity and the higher the probability of belonging to the same class. The TTADEC algorithm expands the training set by considering the labeling of samples in the nearest neighbor range.
The specific idea is as follows: assume that the training set expanded from the unlabeled dataset U in the process of t iteration is L t , and the initially labeled dataset is L . For each sample x in the training set L t , select its k nearest neighbors k n n ( x ) in L L t according to the nearest neighbor rule, and observe whether the proportion of samples in k n n ( x ) with the same label as x satisfies the threshold α . If the condition is satisfied, the accuracy of sample x with a pseudo-label is considered high, and the sample x in L t is labeled as a high-confidence sample; conversely, the accuracy of the sample adding a pseudo-label is considered low, and the sample x in L t is labeled as a suspicious noise sample.

3.2. Local Density of Relative Nearest Neighbors

The pre-selected samples of the expanded training set are obtained by sampling from the unlabeled dataset U . For sample regions that are in a dense degree, it is easier to use the nearest neighbor idea to determine whether the samples are suspicious noise, while the sparse sample regions do not work well using the nearest neighbor idea. As shown in Figure 2, let Figure 2a,b be the training data of rounds t and t + 1 , respectively, and the blue samples are pre-selected samples. When the pre-selected samples are in a dense area, it is more accurate to use the nearest neighbor approach to discriminate the noisy samples because the closer they are, the higher the probability of belonging to the same class of clusters. On the one hand, it is difficult to accurately predict the labels of the sparse samples in the initial iteration process because of the weak learning ability of the base classifier. This is due to insufficient training data; on the other hand, the distance between the sparse samples is large, the probability of belonging to the same cluster is low, and the nearest neighbor is easy to misidentify the pseudo labels. At the same time, as the number of iterations increases, the samples in the sparse region in the round t will change due to the continuous expansion of the training set. The denseness of the region they belong to will change afterwards, as shown in Figure 2c, the region where the yellow samples are located becomes more dense after the round t + 1 iteration, and the inaccurate prediction of the unlabeled samples in the early iteration process will have an important impact on the labeling of suspicious noise samples afterwards.
Based on the above analysis, the TTADEC algorithm proposes the concept of sample local density, which is used to measure the density of the region to which the sample belongs, and does not label the expanded samples whose local density does not meet the threshold ρ , so as to reduce the problem of easy labeling errors in the early iteration process. The local density of samples needs to pay attention to the local information of samples, which can be reflected by the samples in the neighborhood. Therefore, the local density of samples can be determined by defining the similarity between samples and their neighbors, while the density difference between samples can be defined by the similarity between samples.
The sample similarity of the TTADEC algorithm considers the number of samples in the shared area and the distance between samples in the neighborhood range, while the sample local density is defined by summing up the sample similarity, and the formulas of sample similarity and local density are given below.
Definition 4.
Sample similarity. Any sample i and j in the dataset, the sample similarity is defined as follows:
S i m ( i , j ) = | S N N ( i , j ) | k + N N N ( i , j ) u [ k n n ( j ) , j ] e d i u + u [ k n n ( i ) , i ] e d j u 2 ( k + 1 )
where d i j is the Euclidean distance between samples i and j , the right bracket of S i m ( i , j ) reflects the density of the region in which the samples are located. The closer the distance, the larger the value and the denominator is the normalization parameter; | S N N ( i , j ) | the left bracket of S i m ( i , j ) is the number of shared nearest neighbors. N N N ( i , j ) is to determine whether samples i and j belong to natural nearest neighbors, shared nearest neighbors and natural nearest neighbors highlight the degree of similarity between samples, so the shared nearest neighbors and natural nearest neighbors are weighted to calculate the sample similarity, only when samples i and j have shared nearest neighbors or mutual natural nearest neighbors, there is similarity between samples.
Definition 5.
Sample local density. The local density of any sample i in the dataset is the sum of the similarity of sample i to the rest of the samples.
ρ i = S i m ( i , j ) , j [ 1 , 2 , , N ]
where N is the number of pre-selected samples in the current iteration. A high local density of samples not only reduces the error rate when adding pseudo-labels to the base classifier, but also improves the accuracy of the nearest neighbor method in labeling suspicious noisy samples.

3.3. Adaptive Sample Expansion

The TTADEC algorithm mechanically uses the nearest-neighbor idea and the local density of samples to expand the training set, which may sometimes damage the performance of the base classifier. If the sample size of a given iteration is not large enough, not only is the performance of the base classifier not improved, but the constraints of the iterative process are also not satisfied. In this regard, the TTADEC algorithm introduces an adaptive expansion of the training samples in terms of the mislabeling rate a t .
Definition 6.
Mislabeling rate. The ratio of the number of incorrectly removed samples to the total number of removed samples for an arbitrary iterative process.
a t = | L t | | L n t | | L t |
where | L n t | is the number of samples for which the classifier predicts consistent results, and the degree to which the samples are screened indirectly affects the constraints under which Equation (3) holds. The number of noisy samples in the training set after the adaptive technique is e 1 t a t | L t | , which is brought into Equation (1) to obtain.
η d e t = η L | L | + e 1 t a t | L t | | L L d e t |
Theorem 1.
In the round t iteration, L d e t is the pre-selected sample set after nearest neighbor editing and local density screening, and the error rates ξ t and ξ d e t after training the classifier using data L L t and L L d e t satisfy the property ξ d e t < ξ t when the mislabeling rate a t 1 | L t | | L d e t | 2 e t | L t | . In the round t iteration, assuming that L d e t is the pre-selected sample set after nearest neighbor editing and local density screening, when the mislabeling rate satisfies a t 1 | L t | | L d e t | 2 e t | L t | , the error rates ξ t and ξ d e t after training the classifier using data L L t and L L d e t satisfy the property ξ d e t < ξ t according to Equations (2) and (10).
In summary, the classifier is trained on the filtered data samples when the mislabeling rate a t 1 | L t | | L d e t | 2 e t | L t | during the iteration, otherwise, the classifier is not updated.

3.4. Decision Functions

The Tri-training algorithm uses “majority voting” to predict the target sample labels, and this explicit estimation makes the weights consistent across base classifiers. If the performance of the base classifier is poor, this explicit labeling confidence is not accurate enough, resulting in incorrect classification results. In most cases, the learning environment is not consistent across base classifiers, and it is difficult to obtain three classifiers with the same performance. The classifier with strong learning power cannot provide more information in the decision process, while the classifier with weak learning power tends to make the classification results worse. For this reason, For this purpose, the TTADEC algorithm decision process uses optimization methods to evaluate the performance of each classifier and assign appropriate weights to them.
The population intelligent algorithm is the mainstream method to solve optimization problems at present, which solves realistic optimization problems by simulating the group behavior of animals in nature, and the common population intelligence algorithms include firefly algorithm [25,26], particle swarm algorithm [27] and wolf pack algorithm [28,29], etc. Although population intelligence algorithms solve optimization problems with high accuracy, the corresponding time complexity is also high. Cross entropy is also a method for solving optimization problems, and compared with the population intelligence algorithm, the optimization method using cross-entropy is much lower in time complexity than the former. Most of the semi-supervised classification problems in real life are real-time problems, and for this reason, the TTADEC algorithm chooses cross-entropy to optimize the decision function.
The relative entropy [30] can be used to measure the variability of two probability distributions, and given that the true distribution of the sample set is P and the model predicted distribution is Q , the relative entropy of P and Q is defined as Equation (11).
D K L ( P | | Q ) = i = 1 n P ( x i ) log P ( x i ) Q ( x i ) = i = 1 n P ( x i ) log Q ( x i ) i = 1 n P ( x i ) log P ( x i ) = H ( P , Q ) H ( P )
where H ( P , Q ) is the cross-entropy, and H ( P ) is the information entropy. The smaller the value of D K L , the closer the distributions of P and Q . When D K L = 0 , the distributions of P and Q are the same. In the actual classification problem, the true sample distribution P of the training data is known, the information entropy is kept constant, and only the cross-entropy H ( P , Q ) needs to be considered to evaluate the classifier performance.
In the TTADEC algorithm, the performance of base classifiers varies after learning, and the cross-entropy is used to evaluate the performance of each classifier and assign the corresponding weight to it, and the target sample is decided by weighted voting of classifiers. The cross-entropy of classifiers is calculated using the training set by extracting the dataset L from the dataset L using b o o t s t r a p sampling, predicting the distribution of the dataset L using the classifier h i , and obtaining the cross-entropy H i from the true and predicted distributions of the dataset L . TTADEC, the weight function of the classifier, and the classification decision function in the algorithm are defined as follows:
ω i = 1 H i / j = 1 3 H j , i = ( 1 , 2 , 3 )
h ( x ) = sgn i = 1 3 ω i h i ( x ) / i = 1 3 ω i
Compared with the Tri-training algorithm, the TTADEC algorithm enables classifiers with strong learning power to provide more information through the classifier-weighted decision method and reduces the impact of weak classifiers prone to mislabeling, which improves the overall performance of the classification model to a certain extent.

3.5. Procedures

Algorithm 1 gives the pseudo-code of the proposed TTADEC algorithm., and the symbols are explained as shown in Table 1.
Algorithm 1 Pseudo-code of the TTADEC
Input: unlabeled dataset U , labeled dataset L , test set T .
Output: h ( x ) (final training results).
1: data preprocessing, data normalization and construction of distance matrix D .
2: L i b o o t s t r a p ( L ) .
4: while stopping condition is not met do
5:         h ( x ) u p d a t e ( h i ) .
6:        selecting some samples U from the dataset U to add pseudo-labels.
7:        obtaining the local density ρ i of sample x i in U  
8:        obtaining the k nearest neighbors of sample x i .
9:        obtaining L through Equations (8) and (10).
10: end while
11: L b o o t s t r a p ( L ) .
12: H h ( L ) log y
13: ω based on Equation (12)
14: h ( x ) based on Equation (13)
14: return h ( x ) .

4. Experiment and Analysis

4.1. Experiment Settings

To verify the effectiveness of the TTADEC algorithm, the algorithm performance was tested using the dataset in the UCI machine learning library [31]. We compare the TTADEC algorithm with the Tri-training algorithm [13], the Tri-training algorithm for adaptive data editing (ADE-Tri-training) [15], the Tri-training algorithm based on cross entropy (TCE) [20], the safe Tri-training algorithm (ST) [20], and the safe Tri-training algorithm based on cross entropy (STCE) [20] for comparison. The experimental environment is Intel(R) Core (TM) i5-6300HQ CPU @ 2.30 GHz, 12 G RAM, Windows 10 64-bit OS and Python 3.7 programming environment.
The experiments were conducted on nine datasets, and the basic information is shown in Table 2. These datasets are widely used to test various classification algorithms and vary in overall distribution, which can simulate different situations and compare the performance of algorithms in different scenarios. A total of 9 datasets have different sample sizes, number of attributes, class proportions, etc. Experiments on them can verify the generalizability of algorithms to different problems.
In this paper, four evaluation metrics are chosen to assess the algorithm performance, including accuracy, recall, precision, and F-measure. For semi-supervised learning, the data used in the experiments are few labeled data, and most of them are unlabeled data. Among them, 80% of the dataset is selected as the training set D and 20% as the test set T to verify the algorithm performance, 20% of D is the labeled dataset L, and 80% is the unlabeled dataset U.
The data were preprocessed before the experiment, including missing value processing and data normalization. Among them, missing values are filled by the average of valid data in the same dimension, and data normalization is performed by the maximum minimization method of Equation (14).
x i j * = x i j min ( x j ) max ( x j ) min ( x j )
where x i j is the value of the j - t h attribute in the i - t h sample, and x j is the set of the j - t h attribute in all the data. Data normalization is helpful to eliminate the influence of too large a gap between data of different dimensions on the experimental results.

4.2. Hyperparametric Analysis

In order to analyze the influence of the parameters α and ρ on the experiment, this paper uses the control variable method to select the appropriate parameters, in which the value of α is too small will make the confidence of the nearest neighbor editing too low, too high is easy to cause the number of pre-selected samples is not enough, for this control α value in 0.45 ~ 0.7 for the experiment; ρ value affects the probability of being mislabeled, control ρ value in 0 ~ 0.1 for the experiment.
Experiment 1 control ρ = 0.06 , the accuracy of the TTADEC algorithm was obtained on 9 datasets when α = 0.45 , 0.50 , 0.55 , 0.60 , 0.65 , 0.70 . The experimental results are shown in Figure 3. It can be seen from the Figure that, in most cases, the α value is more accurate in the interval 0.55 ~ 0.65 . Experiment 2 control α = 0.55 to obtain the accuracy of the TTADEC algorithm when ρ = 0.02 , 0.04 , 0.06 , 0.08 , 0.10 on 9 datasets, and the experimental results are shown in Figure 4. It can be seen from the figure that, in most cases, ρ takes the highest accuracy when the value is in 0.06 . In overview, considering the time cost of the algorithm is set to the median of the interval as 0.6 and is taken as 0.06 for subsequent experiments.

4.3. Performance Analysis

Experiments were conducted on nine UCI datasets, with α taking the value of 0.60 and ρ taking the value of 0.06, and the experimental results are shown in Table 3, Table 4, Table 5 and Table 6.
From Table 3, Table 4, Table 5 and Table 6, it can be concluded that on the three evaluation metrics of accuracy, recall, and F-measure, most of the datasets performed well on the TTADEC algorithm. On the accuracy metric, TTADEC has 8 datasets with the best results; on the F-measure metric, TTADEC has 7 datasets with the best results; on the recall metric, TTADEC has 6 datasets with the best results; and on the precision metric, TTADEC algorithm performs slightly worse with 5 datasets with the best performance.
To evaluate the comprehensive performance of each algorithm, the Friedman test [32] was introduced to evaluate the algorithms comprehensively. The larger the rank mean value of the Friedman test, the better the performance of the algorithm is indicated. Table 7 shows the rank mean values of each algorithm by the Friedman test.
From Table 7, it can be seen that the TTADEC algorithm has the highest rank mean value of all four evaluation metrics relative to other comparison algorithms, and the algorithm performance is TCE, Tri-training, ST, ADE-Tri-training, STCE, and TTADEC algorithms in order from low to high. Among them, the classification performance of Tri-training and TCE algorithms is poor; STCE and ADE-Tri-training algorithms have the middle performance; TTADEC algorithm has the most obvious classification effect.
Compared with the Tri-training algorithm, the ADE-Tri-training algorithm improves the training set expansion mechanism, and from the results of the rank mean, the adaptive editing expansion mechanism can improve the performance of the algorithm. TCE algorithm is to replace the joint classifier error rate during iteration, and from the results, the use of cross-entropy replacement error rate is less effective. ST algorithm constructs a function to optimize the decision weights in the algorithm’s decision process, and the effect of using this strategy alone is average, but it works better when used in combination with cross-entropy. TTADEC improves the ADE-Tri-training editing strategy by considering the sample information around the pre-selected samples and adding local density screening to expand the training set. This makes the added pseudo-labels less prone to errors, while the adaptive expansion will avoid the situation that the expanded training set is not large enough. The decision process to construct the decision function can also avoid the situation that poorly learned classifiers affect the prediction results, from the results show that TTADEC is the best performer.
In summary, combining the nearest neighbor editing technique of data density and the decision method of classifier weighting can improve the performance of classification models.

5. Conclusions

To address the poor performance of the early classifier of the Tri-training algorithm, the iterative process is prone to mislabeling the pre-selected samples in the expanded training set to form training noise and the inaccuracy of the explicit decision mechanism, this paper proposes the Tri-training algorithm for adaptive nearest neighbor density editing and cross entropy evaluation. The training phase of TTADEC algorithm screens pre-expanded samples by nearest neighbor editing and sample local density, dynamically expands the training set using adaptive techniques to reduce training noise during the iterative process, and the decision phase uses cross-entropy evaluation classifier to construct a decision function to improve the overall performance of the classification model. Experimental results on the UCI datasets show that the TTADEC algorithm has significantly improved the classification performance, effectively reduced the training noise formed during the classifier iterations, and improved the prediction inaccuracy of the explicit decision mechanism.
In this study, the training noise is reduced by the nearest neighbor idea in the training phase, which can show that supervised learning can assist semi-supervised learning for research; secondly, it is positive to study semi-supervised classification algorithms for industries such as e-commerce and network security, which can reduce data collection costs while ensuring accuracy.
In this paper, we use the nearest neighbor idea to improve the algorithm needs to rely more on the neighborhood information, and it does not perform well in classifying data with uneven density distribution. After that, we will improve the classification performance for data with poor density distribution, and also improve the correctness of suspicious noise selection. In the future, collective intelligence [33], swarm intelligence [34] or density peak clustering [35] approach may be used to settle the problem in our research.

Author Contributions

Conceptualization, J.Z. and Y.L.; methodology, J.Z.; software, Y.L.; validation, R.X., R.W. and T.F.; formal analysis, R.X.; investigation, R.W.; resources, T.F.; data curation, J.Z.; writing—original draft preparation, Y.L.; writing—review and editing, J.Z.; visualization, J.Z.; supervision, J.Z.; project administration, Y.L.; funding acquisition, J.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China grant number No. 52069014.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Chapelle, O.; Scholkopf, B.; Zien, A. Semi-Supervised Learening; MIT Press: Camberidge, MA, USA, 2006. [Google Scholar]
  2. Liu, J.; Liu, Y.; Luo, X. Semi-Supervised Learning Methods. Chin. J. Comput. 2015, 38, 1592–1617. [Google Scholar]
  3. Zhou, Z.; Li, M. Semi-supervised learning by disagreement. Knowl. Inf. Syst. 2010, 24, 415–439. [Google Scholar]
  4. Han, S.; Han, Q. Review of Semi-Supervised Learning Research. Comput. Eng. Appl. 2020, 56, 19–27. [Google Scholar]
  5. Wang, S.; Guo, Y.; Hua, W.; Liu, X.; Song, G.; Hou, B.; Jiao, L. Semi-Supervised PolSAR Image Classification Based on Improved Tri-Training with a Minimum Spanning Tree. IEEE Trans. Geosci. Remote. Sens. 2020, 58, 8583–8597. [Google Scholar] [CrossRef]
  6. Li, Z.; Togo, R.; Ogawa, T.; Haseyama, M. Chronic gastritis classification using gastric X-ray images with a semi-supervised learning method based on tri-training. Med. Biol. Eng. Comput. 2020, 58, 1239–1250. [Google Scholar] [CrossRef]
  7. Yin, C.; Cuan, H.; Zhu, Y.; Yin, Z. Improved Fake Reviews Detection Model Based on Vertical Ensemble Tri-Training and Active Learning. ACM Trans. Intell. Syst. Technol. 2021, 12, 1–19. [Google Scholar] [CrossRef]
  8. Khonde, S.R.; Ulagamuthalvi, V. Ensemble-based semi-supervised learning approach for a distributed intrusion detection system. J. Cyber Secur. Technol. 2019, 3, 163–188. [Google Scholar] [CrossRef]
  9. Zhou, Z.H. Disagreement-based Semi-Supervised Learning. Acta Autom. Sin. 2013, 39, 1871–1878. [Google Scholar] [CrossRef]
  10. Miller, D.J.; Uyar, H.S. A mixture of experts classifier with learning based on both labeled and unlabeled data. In Proceedings of the 9th International Conference on Neural Information Processing Systems, Denver, CO, USA, 2–5 December 1996; pp. 571–577. [Google Scholar]
  11. Blum, A.; Chawla, S. Learning from labeled and unlabeled data using graph mincuts. In Proceedings of the 18th International Conference on Machine Learning, Williams, CO, USA, 28 June –1 July 2001; pp. 19–26. [Google Scholar]
  12. Chapelle, O.; Sindhwani, V.; Keerthi, S.S. Optimạzation techniques for semi- supervised support vector machines. J. Mach. Learn. Res. 2008, 9, 203–233. [Google Scholar]
  13. Blum, A.; Mitchell, T. Combining labeled and unlabeled data with co-training. In Proceedings of the 11th Annual Conference on Computational Learning Theory, Madison, WI, USA, 24–26 July 1998; pp. 92–100. [Google Scholar]
  14. Zhou, Z.H.; Li, M. Tri-training: Exploiting unlabeled data using three classifiers. IEEE Trans. Knowl. Data Eng. 2005, 17, 1529–1541. [Google Scholar] [CrossRef] [Green Version]
  15. Deng, C.; Guo, M.Z. ADE-Tri-training: Tri-training with Adaptive Data Editing. Chin. J. Comput. 2007, 30, 1213–1226. [Google Scholar]
  16. Zhao, J.; Liu, N.; Malov, A. Safe semi-supervised classification algorithm combined with active learning sampling strategy. J. Intell. Fuzzy Syst. 2018, 35, 4001–4010. [Google Scholar] [CrossRef]
  17. Li, D.M.; Mao, J.W.; Shen, F.K. A Novel Semi-supervised Adaboost Technique Based on Improved Tri-training. In Proceedings of the 24th Australasian Conference on Information Security and Privacy, Christchurch, New Zealand, 3–5 July 2019; pp. 669–678. [Google Scholar]
  18. Hu, Y.; Qiu, Q.; Yu, X.; Wu, J. Semi-supervised patent text classification method based on improved Tri-training algorithm. J. Zhejiang Univ. (Eng. Sci.) 2020, 54, 331–339. [Google Scholar]
  19. Wang, Y.; Tong, X.R. Cross-Domain Trust Prediction Based on Tri-training and Extreme Learning Machine. J. Comput. Res. Dev. 2022, 59, 2015–2026. [Google Scholar]
  20. Zhang, Y.; Chen, R.R.; Zhang, J. Safe Tri-training Algorithm Based on Cross Entropy. J. Comput. Res. Dev. 2021, 58, 60–69. [Google Scholar]
  21. Mo, J.W.; Jia, P. Semi-supervised Classification Model Based on Ladder Network and Improved Tri-training. Acta Autom. Sin. 2022, 48, 2088–2096. [Google Scholar]
  22. Angluin, D.; Laird, P. Learning from noisy examples. Mach. Learn. 1988, 2, 343–370. [Google Scholar]
  23. Zhao, J.; Chen, L.; Wu, R.; Zhan, B.; Han, L. Density peaks clustering algorithm with K-nearest neighbors and weighted similarity. Control. Theory Appl. 2022, 1–9. Available online: http://kns.cnki.net/kcms/detail/44.1240.TP.20220429.1633.024.html (accessed on 16 November 2022).
  24. Zhu, X.; Zhang, J.; Xu, Y.; Wang, J.; Peng, X.; Li, H. Single-Cell Clustering Based on Shared Nearest Neighbor and Graph Partitioning. Interdiscip. Sci. Comput. Life Sci. 2020, 12, 117–130. [Google Scholar] [CrossRef]
  25. Zhao, J.; Chen, D.; Xiao, R.; Cui, Z.; Wang, H.; Lee, I. Multi-strategy ensemble firefly algorithm with equilibrium of convergence and diversity. Appl. Soft Comput. 2022, 123, 108938. [Google Scholar]
  26. Zhao, J.; Chen, W.; Xiao, R.; Ye, J. Firefly algorithm with division of roles for complex optimal scheduling. Front. Info. Technol. Electro Engine. 2021, 22, 1311–1333. [Google Scholar]
  27. Zhao, J.; Fan, T.; Lv, L.; Sun, H.; Wang, J. Adaptive Intelligent Single Particle Optimizer Based Image De-noising in Shearlet Domain. Intell. Auto. Soft Comput. 2017, 23, 661–666. [Google Scholar] [CrossRef]
  28. Wu, H.; Xiao, R. Flexible wolf pack algorithm for dynamic multidimensional knapsack problems. Research. 2020, 2020, 1762107. [Google Scholar]
  29. Wu, H.; Xue, J.; Xiao, R.; Hu, J. Uncertain bilevel knapsack problem based on improved binary wolf pack algorithm. Front. Info. Technol. Electro Engine. 2020, 21, 1356–1368. [Google Scholar]
  30. Rubinstein, R.Y. Optimization of computer simulation models with rare events. Eur. J. Oper. Res. 1997, 99, 89–112. [Google Scholar]
  31. Dua, D.; G’raff, C. UCI Machine Learning Repository; University of California, School of Information and Computer Science: Irvine, CA, USA, 2019; Available online: http://archive.ics.uci.edu/ml (accessed on 2 August 2022).
  32. Demšar, J. Statistical comparisons of classifiers over multiple data sets. J. Mach. Learn. Res. 2006, 7, 1–30. [Google Scholar]
  33. Xiao, R.B.; Feng, Z.H.; Wang, J.H. Collective intelligence: Conception, research progress and application analysis. J. Nanchang Inst. Technol. 2022, 41, 1–21. [Google Scholar]
  34. Xiao, R.B.; Chen, Z.Z. From swarm intelligence optimization to swarm intelligence evolution. J. Nanchang Inst. Technol. 2023, 42, 1–10. [Google Scholar]
  35. Zhao, J.; Wang, G.; Pan, J.; Fan, T.; Lee, I. Density Peaks Clustering Algorithm Based on Fuzzy Neighborhood and Weighted Shared Neighbor for Uneven Density Datasets. Pat. Rec. 2023, 139, 109406. [Google Scholar]
Figure 1. Flow chart of Tri-training algorithm training.
Figure 1. Flow chart of Tri-training algorithm training.
Entropy 25 00480 g001
Figure 2. Schematic diagram of training set expansion. Where, figure (a) is the round t training set, figure (b) is the round t + 1 training set, and figure (c) is the round t + 2 training set.
Figure 2. Schematic diagram of training set expansion. Where, figure (a) is the round t training set, figure (b) is the round t + 1 training set, and figure (c) is the round t + 2 training set.
Entropy 25 00480 g002
Figure 3. Effect of α on Accuracy.
Figure 3. Effect of α on Accuracy.
Entropy 25 00480 g003
Figure 4. Effect of ρ on Accuracy.
Figure 4. Effect of ρ on Accuracy.
Entropy 25 00480 g004
Table 1. Symbol Description.
Table 1. Symbol Description.
SymbolsDescription
U Unlabeled dataset
L Labeled dataset
T Test set
D Distance matrix
L i Initial training set of each classifier
ρ i Local density
a t Mislabeling rate
L Public dataset for weight acquisition
ω i Weighting factor
Table 2. Experimental dataset.
Table 2. Experimental dataset.
DatasetSizeAttributePositiveNegative
australian6901444.555.5
wdbc5693037.362.7
abalone4177832.167.9
bupa345642.058.0
electrical10,0001336.263.8
german10002430.070.0
haberman306326.573.5
heart2701344.455.6
spectf2674420.679.4
Table 3. Accuracy.
Table 3. Accuracy.
DatasetTri-TrainingADE-
Tri-Training
TCESTSTCETTADEC
australian0.80220.83910.82060.82660.84970.8759
wdbc0.93790.93630.95100.94410.95800.9735
abalone0.80830.81980.77990.78370.80380.8371
bupa0.59710.60970.56320.55170.59770.6364
electrical0.97530.99000.99440.99400.99600.9995
german0.71160.72270.73200.74000.74600.7437
haberman0.70490.70440.55130.69230.53850.7405
heart0.76320.76360.72060.76470.77940.8113
spectf0.64150.71980.64180.56720.62690.7258
Table 4. Recall.
Table 4. Recall.
DatasetTri-TrainingADE-
Tri-Training
TCESTSTCETTADEC
australian0.74220.80830.77650.80770.78260.9038
wdbc0.93590.95330.98570.97181.00000.9646
abalone0.61200.62400.54550.55510.61430.6607
bupa0.61260.69270.80000.68180.68750.7357
electrical0.97460.99900.99450.99230.99350.9995
german0.67500.44540.50670.51850.56520.7553
haberman0.36930.26360.17240.27780.18750.4846
heart0.71650.82360.64710.70970.70590.7912
spectf0.61470.41020.34290.27780.34210.6356
Table 5. Precision.
Table 5. Precision.
DatasetTri-TrainingADE-
Tri-Training
TCESTSTCETTADEC
australian0.66850.87130.84620.80770.92310.7966
wdbc0.88660.94570.92000.92000.92000.9777
abalone0.64080.71280.60940.58980.53520.7114
bupa0.32760.28800.25530.31910.46810.5166
electrical0.95770.99890.99020.99130.99560.9996
german0.88330.64620.55880.61760.57350.8659
haberman0.23330.30530.31250.31250.37500.4333
heart0.91120.80480.75860.75860.82760.9285
spectf0.69280.87510.92310.76921.00000.9523
Table 6. F-measure.
Table 6. F-measure.
DatasetTri-TrainingADE-
Tri-Training
TCESTSTCETTADEC
australian0.74900.83560.80980.80770.84710.8268
wdbc0.93590.94880.95170.94520.95830.9689
abalone0.56440.62060.57560.57200.57200.7258
bupa0.51260.46340.38710.43480.55700.5660
electrical0.97460.99200.99230.99180.99450.9993
german0.54500.78350.53150.56380.56930.7577
haberman0.28430.23200.22220.29410.25000.4571
heart0.74100.70160.69840.73330.76190.8333
spectf0.54580.64840.50000.40820.50980.7478
Table 7. Rank mean values of indexes in six algorithms.
Table 7. Rank mean values of indexes in six algorithms.
Evaluation IndicatorsTri-TrainingADE-
Tri-Training
TCESTSTCETTADEC
Accuracy2.443.442.562.674.005.89
Recall2.893.892.782.783.225.44
Precision2.673.892.562.674.005.22
F-measure2.443.782.332.504.285.67
Mean2.613.752.562.653.875.55
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zhao, J.; Luo, Y.; Xiao, R.; Wu, R.; Fan, T. Tri-Training Algorithm for Adaptive Nearest Neighbor Density Editing and Cross Entropy Evaluation. Entropy 2023, 25, 480. https://doi.org/10.3390/e25030480

AMA Style

Zhao J, Luo Y, Xiao R, Wu R, Fan T. Tri-Training Algorithm for Adaptive Nearest Neighbor Density Editing and Cross Entropy Evaluation. Entropy. 2023; 25(3):480. https://doi.org/10.3390/e25030480

Chicago/Turabian Style

Zhao, Jia, Yuhang Luo, Renbin Xiao, Runxiu Wu, and Tanghuai Fan. 2023. "Tri-Training Algorithm for Adaptive Nearest Neighbor Density Editing and Cross Entropy Evaluation" Entropy 25, no. 3: 480. https://doi.org/10.3390/e25030480

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop