원시데이터 수집 시스템
선정목록으로

Balanced Distribution Adaptation for Metal Oxide Semiconductor Gas Sensor Array Drift Compensation

관련 필름·전자재료 · (18) VENT(방수통기 부품)

기본 정보

저자
  1. Zongze Jiang — School of Instrumentation Science and Engineering, Harbin Institute of Technology, Harbin 150001, China
  2. Peng Xu — Command and Control Engineering College, People’s Liberation Army Engineering University, Nanjing 210007, China|||Command and Control Engineering College, People's Liberation Army Engineering University, Nanjing 210007, China
  3. Yongbin Du — School of Instrumentation Science and Engineering, Harbin Institute of Technology, Harbin 150001, China
  4. Feng Yuan — School of Instrumentation Science and Engineering, Harbin Institute of Technology, Harbin 150001, China
  5. Kai Song — School of Electrical Engineering and Automation, Harbin Institute of Technology, Harbin 150001, China
DOI
10.3390/s21103403
저널
Sensors
발행년도
2021
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
24
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/s21103403
토픽
Analytical Chemistry and Sensors
OpenAlex ID
W3161386089

평가 내용

관련도
관련
사업분야
필름·전자재료 · (18) VENT(방수통기 부품)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > VENT(방수통기 부품)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Drift compensation is an important issue for metal oxide semiconductor (MOS) gas sensor arrays. General machine learning methods require constant calibration and a large amount of label gas data. At the same time, recalibration will cause a lot of costs, and label gas is difficult to obtain in practice. In this paper, a novel drift compensation method based on balanced distribution adaptation (BDA) is proposed. First, the BDA drift compensation method can adjust the conditional distribution and marginal distribution between the two domains through the weight balance factor, thereby more effectively reducing the mismatch between the two domains. When the BDA method performs classification tasks through machine learning, no labeled data is required in the target domain. Then, the particle swarm optimization algorithm is used to improve the accuracy of drift compensation. Individuals in the population are initialized randomly, and their fitness values are calculated. Iterative optimization of the population individuals is conducted until the optimal weight balance factor parameters are calculated. Finally, the BDA method is experimentally verified on the public gas sensor drift data set. Experimental results showed that the BDA method was significantly better than the existing joint distribution adaptation (JDA) method and other standard drift compensation methods such as K-Nearest Neighbor (KNN). In the two setting groups, the recognition accuracy was 4.54% and 1.62% ahead of the JDA method, and 12.23% and 15.83% ahead of the KNN method.

본문 40,794자

본문 펼치기
Introduction With the advantages of small size, low cost, simple production, and high sensitivity to flammable and toxic gases, metal oxide semiconductor (MOS) sensor arrays play a vital role in the fields of environmental protection and monitoring [1,2], food and beverage production [3,4], clinical diagnosis, and process control [5,6]. MOS sensor arrays also are currently the most commonly used information acquisition devices in machine olfactory systems [7][8][9][10]. When the mixed gas enters the gas chamber, the oxygen ions adsorbed on the surface of the MOS gas sensors will chemically react with them, which will cause the resistance of the MOS gas sensors to decrease sharply. Then, pattern-recognition technology is applied to process these signals to identify the composition of the mixed gas and estimate its concentration. However, in this sensor, the drift effect is also obvious. The drift phenomenon causes the sensor input and output relationship to change. Even for the same type and concentration of the measured gas, the sensor output values measured at different times before and after are different. When the sensor drifts, the sensor input and output relationship obtained in the calibration phase will be destroyed. The results of gas classification are difficult to obtain accurately. Therefore, it is necessary to find an effective method to detect and compensate the drift of gas sensor. Introduction The drift compensation research of MOS gas sensor arrays can be traced back to the 1990s, but it is still a thorny issue [11,12]. The drift compensation methods for gas sensors can be roughly divided into the following three categories: (1) signal preprocessing methods, (2) composition correction methods, and (3) adaptive correction methods. In the first categories of approaches, a baseline processing method and frequency domain filtering method are frequently used. These two methods compensate for the output response of each sensor in the array. But due to the complexity of the drift cause, these methods can only reduce part of the adverse effects caused by the drift. The component correction methods attempt to find and remove drift-sensitive components before the model is built. Due to insufficient prior information, such methods are usually unable to effectively deal with drifting samples that differ greatly from the initial distribution. In practice, component correction methods require researchers to recalibrate the sensor system frequently. It usually takes several weeks to retrain the classifier network of the sensor array with new pure calibration samples of the labeled gas for each type of gas that the sensor array can recognize. However, retraining the classifier network is time-consuming, and it is also difficult to regularly obtain pure calibration samples of new gases. Introduction Adaptive correction methods were first applied to drift compensation by [13] through classifier integration in 2012. The experimental results proved that the ensemble method based on support vector machines can deal with sensor drift well and perform better than the baseline competing method. Zhang et al. [14] proposed a domain-adaptive extreme learning machine (DAELM) drift compensation method based on semisupervised learning. This method obtained a higher classification accuracy, but also required more labeled drift samples to participate in the model construction. Liu et al. [15] used stacked autoencoders and restricted Boltzmann machines to introduce deep learning into sensor drift compensation. Luo et al. [16] showed a deep belief network (DBN) to preprocess gas sensor data. The coupling between each characteristic of the sensor data was enhanced by this method. It helped the depth features of the data to be effectively extracted and expressed. In addition, the combination of this method and support vector machine (SVM) was effective through numerical experiments. Yan et al. [17] realized drift compensation by finding the invariance between the original sample domain and the drift sample domain. This method added the background information of the two sample domains to the original features of the sample through feature enhancement preprocessing. Liu et al. [18] developed a domain transfer broad learning system (DTBLS) based on BLS. The DTBLS framework uses labeled source data and unlabeled target data to learn a robust target classifier to adaptively compensate for drift in sensor response. Liu et al. [19] established an adaptive domain-based subspace learning method. This method considered both maximizing tag feature correlation and minimizing feature redundancy (DMDMR) to solve the drift problem based on the gas sensor arrays. The proposed method learned time-varying common subspace with similar distributions for regular and recently drifted gas sensor arrays responses to adapt to the inconsistent data distribution caused by drift. Leon-Medina et al. [20] proposed a transfer learning method to solve the drift problem by using the joint distributed adaptive (JDA) method, which could adapt to the marginal and conditional distribution between domains. Introduction The above adaptive correction methods applied in drift compensation of MOS gas sensor arrays has achieved certain effects. However, most methods based on neural networks require a large amount of label data in the target domain. In order to address this issue, we learned from the above methods, and propose a novel drift compensation model based on BDA in this paper. There is no need to label data in the target domain, and it can improve the recognition accuracy and robustness of the sensor array for a long time. Furthermore, unlike the JDA method, which directly ignores the importance of the two, the BDA method uses a weight balance factor to evaluate the importance of each distribution. Therefore, the BDA algorithm has higher accuracy. In actual measurement, the BDA method needs to be combined with a preprocessing device, gas measurement cell, air pump, solenoid valve, and thermostat control unit in the system. These units make the temperature, humidity, air flow, and other parameters of the sample gas closer to the laboratory environment, which helps the accuracy of drift compensation results. Introduction The structure of this paper is organized as follows. In Section 2, the related work of BDA and particle swarm optimization (PSO) method, a brief description of the combination of transfer learning, and MOS sensor array drift compensation are introduced. Section 3 describes the drift compensation methodology with all its parts. In Section 4, the effect of the BDA algorithm is verified on the public data set and compared with the state-of-the-art transfer learning method to demonstrate the effectiveness of the method. Finally, the conclusions are drawn in Section 5. Transfer Learning Transfer learning is used to transfer the knowledge learned in the source domain to the target domain to help the target domain carry out model training [21,22]. Domain and task are the two basic concepts of transfer learning. Figure 1 shows the differences between the transfer learning approach and the traditional machine learning approach. Transfer Learning Sensors 2021, 21, x FOR PEER REVIEW 3 of 17 method needs to be combined with a preprocessing device, gas measurement cell, air pump, solenoid valve, and thermostat control unit in the system. These units make the temperature, humidity, air flow, and other parameters of the sample gas closer to the laboratory environment, which helps the accuracy of drift compensation results. The structure of this paper is organized as follows. In Section 2, the related work of BDA and particle swarm optimization (PSO) method, a brief description of the combination of transfer learning, and MOS sensor array drift compensation are introduced. Section 3 describes the drift compensation methodology with all its parts. In Section 4, the effect of the BDA algorithm is verified on the public data set and compared with the state-ofthe-art transfer learning method to demonstrate the effectiveness of the method. Finally, the conclusions are drawn in Section 5. Transfer Learning Transfer learning is used to transfer the knowledge learned in the source domain to the target domain to help the target domain carry out model training [21,22]. Domain and task are the two basic concepts of transfer learning. Figure 1 shows the differences between the transfer learning approach and the traditional machine learning approach. Transfer learning can also be expressed more accurately by domains and tasks. When drift occurs, the characteristic distribution of the target domain Dt (with drift) data will not obey the source domain Ds (without drift). The generalization ability of the classifier is reduced due to drift, which leads to the performance degradation of the classifier trained with the labeled data of Ds when tested on Dt. Obviously, the category space between the two domains affected by drift is the same; that is, Ys = Yt. However, the marginal distributions of these two domains are different (P(xs)  P(xt)), and the conditional probability distributions are also different (P(ys|xs)  P(yt|xt)). The goal of transfer learning is to use labeled data Ds to train a classifier f: xt → yt to predict the label yt ∊ Yt of the target domain Dt. Transfer learning can also be expressed more accurately by domains and tasks. Definition 1. Given a labeled source domain D s = {x i , y i } n i=1 and an unlabeled target domain D t = x j n+m j=n+1 , the data distributions P(x s ) and P(x t ) of these two fields are different. The purpose of transfer learning is to use the knowledge of D s to learn the knowledge (label) of the target domain D t . Transfer Learning When drift occurs, the characteristic distribution of the target domain D t (with drift) data will not obey the source domain D s (without drift). The generalization ability of the classifier is reduced due to drift, which leads to the performance degradation of the classifier trained with the labeled data of D s when tested on D t . Obviously, the category space between the two domains affected by drift is the same; that is, Y s = Y t . However, the marginal distributions of these two domains are different (P(x s ) = P(x t )), and the conditional probability distributions are also different (P(y s |x s ) = P(y t |x t )). The goal of transfer learning is to use labeled data D s to train a classifier f : x t → y t to predict the label y t ∈ Y t of the target domain D t. Balanced Distribution Adaptation Distribution adaptation is one of the most commonly used transfer learning methods. The basic idea of this method is that the data probability distribution of the source domain and the target domain are different. Then, the most direct way is to narrow the distance between different data distributions through some transformations. Figure 2 visually shows several data distribution situations. Simply put, the difference in the edge distribution of the data means that the data is not similar overall. The conditional distribution of the data is different; that is, the overall data is similar, but specific to each category, they are not very similar. Balanced Distribution Adaptation Distribution adaptation is one of the most commonly used transfer learning methods. The basic idea of this method is that the data probability distribution of the source domain and the target domain are different. Then, the most direct way is to narrow the distance between different data distributions through some transformations. Figure 2 visually shows several data distribution situations. Simply put, the difference in the edge distribution of the data means that the data is not similar overall. The conditional distribution of the data is different; that is, the overall data is similar, but specific to each category, they are not very similar. A major problem that needs to be solved in transfer learning is to reduce the distribution difference between the source domain and the target domain. JDA assumes that marginal distribution and conditional distribution are equally important and adapted. Balanced Distribution Adaptation However, for different situations, the marginal distribution and the conditional distribution play different roles, which takes us back to the problem of the two distributions shown in Figure 2. Obviously, when the target domain is the situation shown in Figure 2b, the marginal distribution should be given priority; when the target domain is the situation shown in Figure 2c, the conditional distribution should be given priority. JDA and subsequent extension work ignored this issue. Therefore, the weight balance factor μ is added to the BDA to leverage the importance of each distribution: Balanced Distribution Adaptation where μ ∈ [0,1]. When μ → 0, it means that there is a large difference between the source domain data set and the target domain data set, so the marginal distribution is more dominant; when μ → 1, it reveals the data sets between domains have high similarity, so conditional distribution adaptation is more important to adapt. When μ = 0.5, BDA degenerates to JDA. In other words, the weight balance factor μ can adjust the importance of each distribution to obtain good results. We adopted the maximum mean discrepancy (MMD) to minimize the distance of marginal distribution P(xs), P(xt) and conditional distribution P(ys|xs), P(yt|xt) between the source domain and the target domain, which is: A major problem that needs to be solved in transfer learning is to reduce the distribution difference between the source domain and the target domain. JDA assumes that marginal distribution and conditional distribution are equally important and adapted. Balanced Distribution Adaptation However, for different situations, the marginal distribution and the conditional distribution play different roles, which takes us back to the problem of the two distributions shown in Figure 2. Obviously, when the target domain is the situation shown in Figure 2b, the marginal distribution should be given priority; when the target domain is the situation shown in Figure 2c, the conditional distribution should be given priority. JDA and subsequent extension work ignored this issue. Therefore, the weight balance factor µ is added to the BDA to leverage the importance of each distribution: Balanced Distribution Adaptation where µ ∈ [0,1]. When µ → 0, it means that there is a large difference between the source domain data set and the target domain data set, so the marginal distribution is more dominant; when µ → 1, it reveals the data sets between domains have high similarity, so conditional distribution adaptation is more important to adapt. When µ = 0.5, BDA degenerates to JDA. In other words, the weight balance factor µ can adjust the importance of each distribution to obtain good results. We adopted the maximum mean discrepancy (MMD) to minimize the distance of marginal distribution P(x s ), P(x t ) and conditional distribution P(y s |x s ), P(y t |x t ) between the source domain and the target domain, which is: where H denotes the reproducing kernel Hilbert space (RKHS); c ∈ {1,2, . . . ,C} represents various class labels; n and m represent the number of samples in the source domain and target domain, respectively; and D s and D t denote the samples belonging to class c in the source domain and target domain, respectively. n c = |D s |, m c = |D t | is the number of samples in D s and D t . These two items represent the marginal distribution distance and conditional distribution distance between the source domain and the target domain, respectively. Further application of matrix tricks and regularization to Equation (2) results in: Balanced Distribution Adaptation Equation (4) contains two terms: the first term represents the adaptation of the balance factor of the marginal distribution and the conditional distribution, and the second item is the regularization term. There are two constraints included in Equation (4). The first constraint is to preserve the inner properties of the transformed data (A T X) consistent with the original data. The second constraint limits the balance factor µ to the range, where the input data matrix X is composed of x s and x t . Balanced Distribution Adaptation Furthermore, A represents the transformation matrix. I represents the identity matrix, and I ∈ R (n+m)×(n+m) . H is the centered matrix, which can be expressed specifically as H = I − (1/n)1. M 0 and M c are the matrices belonging to the MMD matrix, which can be constructed in the following ways: Balanced Distribution Adaptation Learning Algorithm: The Lagrange multiplier is denoted as Φ = (φ1,φ2, . . . ,φd), then the Lagrange function for Equation (4) can be expressed in the following form: Balanced Distribution Adaptation where set derivative ∂L/∂A = 0. Then, the optimization of the Equation (7) can be converted into a generalized eigendecomposition problem to derive: Balanced Distribution Adaptation Finally, by solving Equation (8), we can obtain the optimal transformation matrix A and its d smallest eigenvectors at the same time. Balanced Distribution Adaptation The value of µ must be estimated based on the data distribution. We evaluated its performance through the drifted classification accuracy value in the experiment. Figure 3 shows the specific details of the BDA algorithm flow. Balanced Distribution Adaptation Finally, by solving Equation (8), we can obtain the optimal transformation matrix A and its d smallest eigenvectors at the same time. Balanced Distribution Adaptation The value of μ must be estimated based on the data distribution. We evaluated its performance through the drifted classification accuracy value in the experiment. Figure 3 shows the specific details of the BDA algorithm flow. K-Nearest Neighbors KNN is a widely used classifier. An advantage of this estimator is that it does not require hyperparameter optimization [23]. There are many researchers that use KNN as a classifier in transfer learning, especially domain adaptation [24][25][26]. KNN is trained on the labeled source data, and tested on the unlabeled target data. Specifically, in the feature K-Nearest Neighbors KNN is a widely used classifier. An advantage of this estimator is that it does not require hyperparameter optimization [23]. There are many researchers that use KNN as a classifier in transfer learning, especially domain adaptation [24][25][26]. KNN is trained on the labeled source data, and tested on the unlabeled target data. Specifically, in the feature space, among the K samples that are most similar (nearest neighbors) to a sample, if most samples belong to a certain category, then a certain sample also belongs to this category. KNN is a classifier that is very sensitive to distance. The most similar K samples are found by calculating the Euclidean distance between the unknown sample and the training set sample. Particle Swarm Optimization of BDA Parameters The BDA method was the first to give quantitative estimates of marginal distribution and conditional distribution. However, due to the randomness of MOS sensor drift, it is impossible to directly obtain the appropriate weight balance factor parameter µ when constructing the model, so the optimal results cannot be obtained between each set of data. The parameter optimization method is needed to obtain the optimal balance factor parameter of each data set. The weight balance factor parameter µ is a single parameter, so the PSO algorithm for parameter optimization can achieve the optimal parameter value. Particle Swarm Optimization of BDA Parameters Suppose a flock of birds conduct a random search for food in an area. There is only one piece of food in this area, and all birds cannot get the food location, but they can judge the distance to the food. In order to find food effectively, the individuals closest to the food in the group search for food. The PSO algorithm is inspired by the group behavior of such organisms to achieve the optimal solution. Particle Swarm Optimization of BDA Parameters If we use particles instead of birds to describe this process, each particle in the model is an individual in the N-dimensional space to search in the space. The current position of each particle in the particle swarm can be regarded as a candidate solution of the current optimization problem. Particles only have two attributes: speed and position. The optimal solution of a single particle is the individual extreme point, and the optimal individual extreme point in the particle swarm is the global optimal solution. After continuous iteration, the position and velocity of the particles are continuously updated until the final convergence condition is met, and the optimal solution is obtained. Particle Swarm Optimization of BDA Parameters The PSO algorithm process for the BDA weight balance factor parameters µ in each data set is as follows: Particle Swarm Optimization of BDA Parameters 1. Particle Swarm Optimization of BDA Parameters Initialization: first, set the number of iterations, the size of the particle swarm, and the position and speed range of the particle swarm. Initialize the initial velocity and position of each particle randomly in the velocity space and the search space. The fitness function is selected as the BDA model. 2. Initial original optimal solution: solve individual extreme points for each particle initially randomly, and obtain a global optimal solution from it, which is recorded as a single global optimal solution. 3. 2. Update speed and position: According to Equations (9) and (10), update the speed and position of the next iteration. 2. V id = ωV id + C 1 random(0, 1)(P id − X id ) + C 2 random(0, 1) P gd − X id (9) 2. where w (w > 0) is the inertia factor. The value of w represents the strength of the system's global and local optimization capabilities. C 1 and C 2 are self-learning factors and group-learning factors, respectively, and generally take C 1 = C 2 ∈ [0, 4]. P id represents the d-th dimension of the individual extreme value of the i-th variable. P gd represents the d-th dimension of the global optimal solution. 4. 2. Iteration termination: when the set number of iterations is reached or within the allowable error range. Data Set for Validation We utilized the classification accuracy to verify the drift compensation method proposed for the MOS gas sensor array on the public gas sensor array drift data set [13,27]. This archive is published by the UCI Machine Learning Repository. They used 16 screenprinted, commercially available metal-oxide semiconductor gas sensors for their array, manufactured and commercialized by Figaro Inc. for experiments. At present, it has been widely used in the research of drift compensation of gas sensors. Data Set for Validation This data set contains 13,910 measurements from 16 chemical sensors for 36 months utilized in simulations for drift compensation. Six different concentrations of gases collected in the data set are labeled with numbers 1-6, corresponding to ethanol, ethylene, ammonia, acetaldehyde, acetic acid, and toluene, respectively. For ease of processing, the data set was divided into 10 batches. Table 1 summarizes the number of measurements for each class and month included in each batch. For each sensor, the output response of the sensor was recorded in the form of resistance. The measurement process contained a total of eight features, including two static features, three rising dynamic features, and three decaying dynamic features. As the sensor array, the 16 sensors were divided into four types and four of each. The 8 features extracted from each specific sensor were multiplied by the 16 sensors considered here. A total of 8 × 16 = 128 of the above features were formed into a feature vector dimension. It is worth noting that the 8 features obtained by the same sensor were highly correlated. Meanwhile, the output responses of the four sensors in the same type were also highly correlated. In addition, due to the poor selectivity of MOS sensors, the output of different types of sensors could still have good correlation. This means that the components in the feature vector dimension were highly correlated. This can effectively avoid the so-called dimensional disaster, in which the expected sum converges to a constant due to the existence of a large number of independent components in the data. Data Set for Validation At the same time, the KNN classifier needs to calculate the distance between the samples. If the range of the feature value range is large, the distance calculation is mainly based on the feature, which does not match the actual situation (sometimes, when the range is small, the actual situation is more important). Since the evaluation range of each feature of the sensor in the dataset was inconsistent, it was necessary to normalize the original data, as shown in Figure 4. Drift Compensation BDA Method Methodology The main focus of this work is to establish a drift compensation model for the MOS sensor array, combining the BDA method and PSO to solve the drift problem of the electronic nose. Drift Compensation BDA Method Methodology The proposed drift compensation model of the MOS sensor array included six parts, as shown in Figure 5. Generally, drift compensation starts with the data collection from sensor arrays. In order to facilitate comparison with other machine learning compensation Drift Compensation BDA Method Methodology The main focus of this work is to establish a drift compensation model for the MOS sensor array, combining the BDA method and PSO to solve the drift problem of the electronic nose. Drift Compensation BDA Method Methodology The proposed drift compensation model of the MOS sensor array included six parts, as shown in Figure 5. Generally, drift compensation starts with the data collection from sensor arrays. In order to facilitate comparison with other machine learning compensation methods, this study used a public MOS sensor array data set. The 8 features in the sensor response at each measurement point were retained. Since the evaluation of each characteristic index was different, in order to ensure the reliability of the results, it was necessary to normalize the original data, then to apply the BDA method for feature extraction. Because of the adjustment effect of the weight balance factor, a smaller MMD distance and higher accuracy could be achieved than when using JDA and TCA. The reduction of the distribution difference between the two domains based on the data could further improve the robustness of the drift compensation model. The next step was to use the PSO algorithm to optimize the parameters to obtain the optimal weight balance factor. The calculation of the conditional probability distribution needed to know the label of the data. However, the target domain data in the scenario assumed by the BDA drift compensation method was unlabeled. One method was proposed, which was to train a nearest neighbor classifier algorithm in the source domain data, use the nearest-neighbor classifier algorithm to pseudo-label the target domain data, and then use the pseudo-label to calculate the conditional probability distribution of the target domain data. Then, the pseudo-labels were updated through multiple iterations, and the accuracy of the pseudo-labels was gradually improved, thereby improving the performance of the algorithm. Experimental Settings and BDA Parameters Configuration In order to effectively verify the proposed method and facilitate comparison, two experimental settings are given according to [20]. The number of measurements and classes of test data contained in each batch are summarized in Table 1. Experimental Settings and BDA Parameters Configuration In this study, the accuracy rate of the sample classification of the target domain was Experimental Settings and BDA Parameters Configuration In order to effectively verify the proposed method and facilitate comparison, two experimental settings are given according to [20]. The number of measurements and classes of test data contained in each batch are summarized in Table 1. Experimental Settings and BDA Parameters Configuration In this study, the accuracy rate of the sample classification of the target domain was used as the basic evaluation criterion of the algorithm effect, and the specific calculation was as follows: Experimental Settings and BDA Parameters Configuration where f (x) is the true label of the test sample x, and y(x) is the predicted label of the sample x. Experimental Settings and BDA Parameters Configuration Five parameters were included in the optimization model of the drift compensation algorithm in this study. Namely, the weight balance factor µ, the regularization parameter λ, the subspace bases d, the number of iterations T, and the gamma parameter γ. Experimental Settings and BDA Parameters Configuration λ is a regularization parameter to ensure that the optimization problem is well-defined. In theory, λ controls the complexity of the classification model. When λ → 0, the classification model degenerates and leads to serious overfitting problems. When λ → ∞, the classification model is too simple to fully fit the discriminative structure of the data. Experimental Settings and BDA Parameters Configuration The subspace bases d represents the size used to construct the transformation matrix A. d is usually chosen as the dimension that makes the subspace sufficiently accurate. The value of d cannot exceed the number of features. Experimental Settings and BDA Parameters Configuration For the number of iterations T, the BDA method continuously improves the classification accuracy by iteratively updating the pseudo-labels. Experimental Settings and BDA Parameters Configuration The gamma parameter defines the reciprocal of the standard deviation of the RBF kernel. For nonlinear problems, we can use kernel mapping and kernel matrix. Two types of kernel functions, linear kernel k(x i , Experimental Settings and BDA Parameters Configuration , were used in this study. Experimental Settings and BDA Parameters Configuration The parameters d, λ, and γ obtain the best values through deviation optimization. The setting of the number of iterations T refers to [22]. Finally, the set of parameter settings was: d = 100, λ = 1, γ = 1, and T = 10, respectively. Experimental Settings and BDA Parameters Configuration In order to analyze the impact of µ on the performance of the BDA method, first, the factor µ can be simply regarded as a parameter in the transfer process. In the interval [0, 1], the value of µ is taken from 0, and every time 0.1 increases, a set [0, 0.1, . . . , 1.0] is obtained. Then, an impression of the influence of the value of the weight balance factor µ on the result can be obtained, and the RBF kernel function is applied. The experimental results are shown in Table 2 and Figure 6. Obviously, the optimal value of weight balance factor µ varied in different data batches. This showed the importance of marginal and conditional distribution differences across domains. In each batch of data used in the test, the µ value corresponding to the best accuracy had no obvious law. Some batches dominated the conditional distribution (for example, Batch 4), and some batches tended to have a certain ratio of the joint distribution of the two (for example, Batch 8). Experimental Settings and BDA Parameters Configuration In order to get the best results, the PSO algorithm was combined to search for the best µ of each set of data in a wide range. The parameters in the PSO algorithm were set as follows: the population size was 20; the maximum number of iterations was 10; the weight balance factor optimization limit range was 0 to 1, and the two values of 0 and 1 were considered in advance; the speed limit range was −0.3 to 0.3; and the inertia weight was 0.8. Performance Verification The experiment followed Setting 1 and Setting 2 in turn. We implemented the proposed BDA drift compensation method, which included the primal BDA method, the RBF kernel, and the linear kernel. Tables 3 and 4 show the best µ value and the corresponding best accuracy of each batch of data after the PSO process. The factor µ retained three decimal places and was compared with the JDA algorithm with the same kernel. In addition, a non-domain adaptive algorithm using NN as the standard classifier was added. The above drift compensation method based on machine learning using the same dataset is given in [20]. Table 5 shows the accuracy of different methods for 9 batches under experimental Setting 1. Figure 7 intuitively shows the recognition accuracy of all methods. Performance Verification First, the overall recognition accuracy of the BDA method was higher than that of the comparison method. The BDA method of the RBF kernel optimized by the POS process had the highest average recognition accuracy of 68.92%. Second, compared with the best comparison method JDA, the recognition accuracy was increased by 4.54%, considering that JDA can only adjust marginal and conditional distributions with equal weights (µ = 0.5). However, BDA can significantly improve accuracy by adjusting the weight balance parameter µ to adapt to different situations. Last, due to the huge distribution gap between the drift data sets, the non-transfer learning method NN only achieved an average recognition accuracy of 56.69%. This showed that the performance of domain adaptation methods was better than that of non-domain adaptation methods. This showed the effectiveness of the transfer learning method, and BDA had the best performance among the three. According to the results, the gas recognition accuracy of the BDA method for Batches 8 and 10 showed the lowest performances, especially for Batch 8, the accuracy of which was only 38.10%. The same was true for other comparison methods, whose performance was much lower than other batches. After long-term operation of the MOS sensor, due to the deterioration of MOS-sensitive materials, the pollution of the MOS gas sensor unit, and the deterioration of the interface electrical contact, the sensor data for Batches 8, 9, and 10 may have been seriously deteriorated. In order to analyze the validity of the data, we applied principal component analysis (PCA) to this data set, and then projected the data into a 2D subspace based on the first two PCs. As shown in Figure 8, the data space distribution of Batch 8 had significant changes compared with other batches. Zhang et al. [14] believed that these changes were caused by drift over time. However, the data space distributions of Batch 9 and 10 were similar to the other batches. Therefore, we believe that the changes in Batch 8 may not have been entirely caused by the drift. Another possible reason was that Batch 8 had a smaller amount of data, and only contained 294 measurement samples. Their combined influence resulted in a huge difference in the distribution for Batch 8. First, the overall recognition accuracy of the BDA method was higher than that of the comparison method. The BDA method of the RBF kernel optimized by the POS process had the highest average recognition accuracy of 68.92%. Second, compared with the best comparison method JDA, the recognition accuracy was increased by 4.54%, considering that JDA can only adjust marginal and conditional distributions with equal weights (μ = 0.5). However, BDA can significantly improve accuracy by adjusting the weight balance parameter μ to adapt to different situations. Last, due to the huge distribution gap between the drift data sets, the non-transfer learning method NN only achieved an average recognition accuracy of 56.69%. This showed that the performance of domain adaptation methods was better than that of non-domain adaptation methods. This showed the effectiveness of the transfer learning method, and BDA had the best performance among the three. Performance Verification According to the results, the gas recognition accuracy of the BDA method for Batches 8 and 10 showed the lowest performances, especially for Batch 8, the accuracy of which was only 38.10%. The same was true for other comparison methods, whose performance was much lower than other batches. After long-term operation of the MOS sensor, due to the deterioration of MOS-sensitive materials, the pollution of the MOS gas sensor unit, and the deterioration of the interface electrical contact, the sensor data for Batches 8, 9, and 10 may have been seriously deteriorated. In order to analyze the validity of the data, we applied principal component analysis (PCA) to this data set, and then projected the data into a 2D subspace based on the first two PCs. As shown in Figure 8, the data space distribution of Batch 8 had significant changes compared with other batches. Zhang et al. [14] believed that these changes were caused by drift over time. However, the data space distributions of Batch 9 and 10 were similar to the other batches. Therefore, we believe that the changes in Batch 8 may not have been entirely caused by the drift. Another possible reason was that Batch 8 had a smaller amount of data, and only contained 294 measurement samples. Their combined influence resulted in a huge difference in the distribution for Batch 8. As shown in Figure 9, the performance of all methods for Setting 2 was better than for Setting 1. The possible reason was that the drift influences between batches in Setting 2 were smaller than those in Setting 1, which resulted in a small difference in classification and recognition tasks. The best performance was still the RBF kernel BDA method, with As shown in Figure 9, the performance of all methods for Setting 2 was better than for Setting 1. The possible reason was that the drift influences between batches in Setting 2 were smaller than those in Setting 1, which resulted in a small difference in classification and recognition tasks. The best performance was still the RBF kernel BDA method, with an average recognition accuracy of 81.06%. It is worth noting that the optimal factor µ of the RBF kernel BDA in multiple batches was closer to 1, which showed that the conditional distribution was dominant among them. The drift data set of adjacent batches may be more similar. In Batch 2 → 3, Batch 4 → 5, and Batch 8 → 9, the recognition accuracy reached 97.95%, 96.36%, and 98.28%, respectively. In addition, as in Setting1, the recognition accuracy based on the transfer learning method was still much higher than the non-transfer learning NN method. However, in the last batch, the accuracy dropped drastically. We believe that this phenomenon was related to the data collection work of the MOS sensor array. The last collection of sensor array data occurred five months after the previous time. During this time, the sensors were kept powered off. Due to the lack of normal operating temperature, external contaminants may have adhered to the sensitive material layer of sensors. This process is usually irreversible, and sensors were contaminated. This maximized the difference in data distribution between Batch 9 and Batch 10. Although the data in Batch 10 was severely disturbed due to these reasons, the BDA method we proposed was still better than the comparison method when tested for Setting 2. The detailed values of the recognition accuracy of each batch for Setting 2 are recorded in Table 6. Conclusions In this paper, a BDA-based transfer learning method to solve the drift problem of MOS gas sensor arrays was proposed. Specifically, cross-domain feature extraction was performed using the BDA method, and the BDA method simultaneously minimized the difference between the marginal and conditional distributions between domains through the weight balance factor. The PSO algorithm was used to find the best weight balance factor between different data sets to achieve the best classification and recognition accuracy. Experiments on the long-term sensor drift data set collected by the MOS sensor arrays clearly demonstrated the effectiveness of our proposed compensation method. In two different setting groups, the optimized BDA recognition accuracies were 4.54% and 1.62% ahead of the JDA method, and 12.23% and 15.83% ahead of the KNN method. Experiments showed that BDA was significantly better than the JDA domain adaptive method and the KNN basic classifier method in terms of drift recognition accuracy. Conclusions In future work, we will further explore and enhance the accuracy of drift compensation to realize real-time drift regression compensation.

섹션 본문 62문단 · 38,694자

Introduction

2With the advantages of small size, low cost, simple production, and high sensitivity to flammable and toxic gases, metal oxide semiconductor (MOS) sensor arrays play a vital role in the fields of environmental protection and monitoring [1,2], food and beverage production [3,4], clinical diagnosis, and process control [5,6]. MOS sensor arrays also are currently the most commonly used information acquisition devices in machine olfactory systems [7][8][9][10]. When the mixed gas enters the gas chamber, the oxygen ions adsorbed on the surface of the MOS gas sensors will chemically react with them, which will cause the resistance of the MOS gas sensors to decrease sharply. Then, pattern-recognition technology is applied to process these signals to identify the composition of the mixed gas and estimate its concentration. However, in this sensor, the drift effect is also obvious. The drift phenomenon causes the sensor input and output relationship to change. Even for the same type and concentration of the measured gas, the sensor output values measured at different times before and after are different. When the sensor drifts, the sensor input and output relationship obtained in the calibration phase will be destroyed. The results of gas classification are difficult to obtain accurately. Therefore, it is necessary to find an effective method to detect and compensate the drift of gas sensor.

3The drift compensation research of MOS gas sensor arrays can be traced back to the 1990s, but it is still a thorny issue [11,12]. The drift compensation methods for gas sensors can be roughly divided into the following three categories: (1) signal preprocessing methods, (2) composition correction methods, and (3) adaptive correction methods. In the first categories of approaches, a baseline processing method and frequency domain filtering method are frequently used. These two methods compensate for the output response of each sensor in the array. But due to the complexity of the drift cause, these methods can only reduce part of the adverse effects caused by the drift. The component correction methods attempt to find and remove drift-sensitive components before the model is built. Due to insufficient prior information, such methods are usually unable to effectively deal with drifting samples that differ greatly from the initial distribution. In practice, component correction methods require researchers to recalibrate the sensor system frequently. It usually takes several weeks to retrain the classifier network of the sensor array with new pure calibration samples of the labeled gas for each type of gas that the sensor array can recognize. However, retraining the classifier network is time-consuming, and it is also difficult to regularly obtain pure calibration samples of new gases.

4Adaptive correction methods were first applied to drift compensation by [13] through classifier integration in 2012. The experimental results proved that the ensemble method based on support vector machines can deal with sensor drift well and perform better than the baseline competing method. Zhang et al. [14] proposed a domain-adaptive extreme learning machine (DAELM) drift compensation method based on semisupervised learning. This method obtained a higher classification accuracy, but also required more labeled drift samples to participate in the model construction. Liu et al. [15] used stacked autoencoders and restricted Boltzmann machines to introduce deep learning into sensor drift compensation. Luo et al. [16] showed a deep belief network (DBN) to preprocess gas sensor data. The coupling between each characteristic of the sensor data was enhanced by this method. It helped the depth features of the data to be effectively extracted and expressed. In addition, the combination of this method and support vector machine (SVM) was effective through numerical experiments. Yan et al. [17] realized drift compensation by finding the invariance between the original sample domain and the drift sample domain. This method added the background information of the two sample domains to the original features of the sample through feature enhancement preprocessing. Liu et al. [18] developed a domain transfer broad learning system (DTBLS) based on BLS. The DTBLS framework uses labeled source data and unlabeled target data to learn a robust target classifier to adaptively compensate for drift in sensor response. Liu et al. [19] established an adaptive domain-based subspace learning method. This method considered both maximizing tag feature correlation and minimizing feature redundancy (DMDMR) to solve the drift problem based on the gas sensor arrays. The proposed method learned time-varying common subspace with similar distributions for regular and recently drifted gas sensor arrays responses to adapt to the inconsistent data distribution caused by drift. Leon-Medina et al. [20] proposed a transfer learning method to solve the drift problem by using the joint distributed adaptive (JDA) method, which could adapt to the marginal and conditional distribution between domains.

5The above adaptive correction methods applied in drift compensation of MOS gas sensor arrays has achieved certain effects. However, most methods based on neural networks require a large amount of label data in the target domain. In order to address this issue, we learned from the above methods, and propose a novel drift compensation model based on BDA in this paper. There is no need to label data in the target domain, and it can improve the recognition accuracy and robustness of the sensor array for a long time. Furthermore, unlike the JDA method, which directly ignores the importance of the two, the BDA method uses a weight balance factor to evaluate the importance of each distribution. Therefore, the BDA algorithm has higher accuracy. In actual measurement, the BDA method needs to be combined with a preprocessing device, gas measurement cell, air pump, solenoid valve, and thermostat control unit in the system. These units make the temperature, humidity, air flow, and other parameters of the sample gas closer to the laboratory environment, which helps the accuracy of drift compensation results.

6The structure of this paper is organized as follows. In Section 2, the related work of BDA and particle swarm optimization (PSO) method, a brief description of the combination of transfer learning, and MOS sensor array drift compensation are introduced. Section 3 describes the drift compensation methodology with all its parts. In Section 4, the effect of the BDA algorithm is verified on the public data set and compared with the state-of-the-art transfer learning method to demonstrate the effectiveness of the method. Finally, the conclusions are drawn in Section 5.

Transfer Learning

7Transfer learning is used to transfer the knowledge learned in the source domain to the target domain to help the target domain carry out model training [21,22]. Domain and task are the two basic concepts of transfer learning. Figure 1 shows the differences between the transfer learning approach and the traditional machine learning approach.

8Sensors 2021, 21, x FOR PEER REVIEW 3 of 17 method needs to be combined with a preprocessing device, gas measurement cell, air pump, solenoid valve, and thermostat control unit in the system. These units make the temperature, humidity, air flow, and other parameters of the sample gas closer to the laboratory environment, which helps the accuracy of drift compensation results. The structure of this paper is organized as follows. In Section 2, the related work of BDA and particle swarm optimization (PSO) method, a brief description of the combination of transfer learning, and MOS sensor array drift compensation are introduced. Section 3 describes the drift compensation methodology with all its parts. In Section 4, the effect of the BDA algorithm is verified on the public data set and compared with the state-ofthe-art transfer learning method to demonstrate the effectiveness of the method. Finally, the conclusions are drawn in Section 5.

9Transfer learning is used to transfer the knowledge learned in the source domain to the target domain to help the target domain carry out model training [21,22]. Domain and task are the two basic concepts of transfer learning. Figure 1 shows the differences between the transfer learning approach and the traditional machine learning approach. Transfer learning can also be expressed more accurately by domains and tasks. When drift occurs, the characteristic distribution of the target domain Dt (with drift) data will not obey the source domain Ds (without drift). The generalization ability of the classifier is reduced due to drift, which leads to the performance degradation of the classifier trained with the labeled data of Ds when tested on Dt. Obviously, the category space between the two domains affected by drift is the same; that is, Ys = Yt. However, the marginal distributions of these two domains are different (P(xs)  P(xt)), and the conditional probability distributions are also different (P(ys|xs)  P(yt|xt)). The goal of transfer learning is to use labeled data Ds to train a classifier f: xt → yt to predict the label yt ∊ Yt of the target domain Dt. Transfer learning can also be expressed more accurately by domains and tasks. Definition 1. Given a labeled source domain D s = {x i , y i } n i=1 and an unlabeled target domain D t = x j n+m j=n+1 , the data distributions P(x s ) and P(x t ) of these two fields are different. The purpose of transfer learning is to use the knowledge of D s to learn the knowledge (label) of the target domain D t .

10When drift occurs, the characteristic distribution of the target domain D t (with drift) data will not obey the source domain D s (without drift). The generalization ability of the classifier is reduced due to drift, which leads to the performance degradation of the classifier trained with the labeled data of D s when tested on D t . Obviously, the category space between the two domains affected by drift is the same; that is, Y s = Y t . However, the marginal distributions of these two domains are different (P(x s ) = P(x t )), and the conditional probability distributions are also different (P(y s |x s ) = P(y t |x t )). The goal of transfer learning is to use labeled data D s to train a classifier f : x t → y t to predict the label y t ∈ Y t of the target domain D t.

Balanced Distribution Adaptation

11Distribution adaptation is one of the most commonly used transfer learning methods. The basic idea of this method is that the data probability distribution of the source domain and the target domain are different. Then, the most direct way is to narrow the distance between different data distributions through some transformations. Figure 2 visually shows several data distribution situations. Simply put, the difference in the edge distribution of the data means that the data is not similar overall. The conditional distribution of the data is different; that is, the overall data is similar, but specific to each category, they are not very similar.

12Distribution adaptation is one of the most commonly used transfer learning methods. The basic idea of this method is that the data probability distribution of the source domain and the target domain are different. Then, the most direct way is to narrow the distance between different data distributions through some transformations. Figure 2 visually shows several data distribution situations. Simply put, the difference in the edge distribution of the data means that the data is not similar overall. The conditional distribution of the data is different; that is, the overall data is similar, but specific to each category, they are not very similar. A major problem that needs to be solved in transfer learning is to reduce the distribution difference between the source domain and the target domain. JDA assumes that marginal distribution and conditional distribution are equally important and adapted.

13However, for different situations, the marginal distribution and the conditional distribution play different roles, which takes us back to the problem of the two distributions shown in Figure 2. Obviously, when the target domain is the situation shown in Figure 2b, the marginal distribution should be given priority; when the target domain is the situation shown in Figure 2c, the conditional distribution should be given priority. JDA and subsequent extension work ignored this issue. Therefore, the weight balance factor μ is added to the BDA to leverage the importance of each distribution:

14where μ ∈ [0,1]. When μ → 0, it means that there is a large difference between the source domain data set and the target domain data set, so the marginal distribution is more dominant; when μ → 1, it reveals the data sets between domains have high similarity, so conditional distribution adaptation is more important to adapt. When μ = 0.5, BDA degenerates to JDA. In other words, the weight balance factor μ can adjust the importance of each distribution to obtain good results. We adopted the maximum mean discrepancy (MMD) to minimize the distance of marginal distribution P(xs), P(xt) and conditional distribution P(ys|xs), P(yt|xt) between the source domain and the target domain, which is: A major problem that needs to be solved in transfer learning is to reduce the distribution difference between the source domain and the target domain. JDA assumes that marginal distribution and conditional distribution are equally important and adapted.

15However, for different situations, the marginal distribution and the conditional distribution play different roles, which takes us back to the problem of the two distributions shown in Figure 2. Obviously, when the target domain is the situation shown in Figure 2b, the marginal distribution should be given priority; when the target domain is the situation shown in Figure 2c, the conditional distribution should be given priority. JDA and subsequent extension work ignored this issue. Therefore, the weight balance factor µ is added to the BDA to leverage the importance of each distribution:

16where µ ∈ [0,1]. When µ → 0, it means that there is a large difference between the source domain data set and the target domain data set, so the marginal distribution is more dominant; when µ → 1, it reveals the data sets between domains have high similarity, so conditional distribution adaptation is more important to adapt. When µ = 0.5, BDA degenerates to JDA. In other words, the weight balance factor µ can adjust the importance of each distribution to obtain good results. We adopted the maximum mean discrepancy (MMD) to minimize the distance of marginal distribution P(x s ), P(x t ) and conditional distribution P(y s |x s ), P(y t |x t ) between the source domain and the target domain, which is: where H denotes the reproducing kernel Hilbert space (RKHS); c ∈ {1,2, . . . ,C} represents various class labels; n and m represent the number of samples in the source domain and target domain, respectively; and D s and D t denote the samples belonging to class c in the source domain and target domain, respectively. n c = |D s |, m c = |D t | is the number of samples in D s and D t . These two items represent the marginal distribution distance and conditional distribution distance between the source domain and the target domain, respectively. Further application of matrix tricks and regularization to Equation (2) results in:

17Equation (4) contains two terms: the first term represents the adaptation of the balance factor of the marginal distribution and the conditional distribution, and the second item is the regularization term. There are two constraints included in Equation (4). The first constraint is to preserve the inner properties of the transformed data (A T X) consistent with the original data. The second constraint limits the balance factor µ to the range, where the input data matrix X is composed of x s and x t .

18Furthermore, A represents the transformation matrix. I represents the identity matrix, and I ∈ R (n+m)×(n+m) . H is the centered matrix, which can be expressed specifically as H = I − (1/n)1. M 0 and M c are the matrices belonging to the MMD matrix, which can be constructed in the following ways:

19Learning Algorithm: The Lagrange multiplier is denoted as Φ = (φ1,φ2, . . . ,φd), then the Lagrange function for Equation (4) can be expressed in the following form:

20where set derivative ∂L/∂A = 0. Then, the optimization of the Equation (7) can be converted into a generalized eigendecomposition problem to derive:

21Finally, by solving Equation (8), we can obtain the optimal transformation matrix A and its d smallest eigenvectors at the same time.

22The value of µ must be estimated based on the data distribution. We evaluated its performance through the drifted classification accuracy value in the experiment. Figure 3 shows the specific details of the BDA algorithm flow.

23Finally, by solving Equation (8), we can obtain the optimal transformation matrix A and its d smallest eigenvectors at the same time.

24The value of μ must be estimated based on the data distribution. We evaluated its performance through the drifted classification accuracy value in the experiment. Figure 3 shows the specific details of the BDA algorithm flow.

K-Nearest Neighbors

25KNN is a widely used classifier. An advantage of this estimator is that it does not require hyperparameter optimization [23]. There are many researchers that use KNN as a classifier in transfer learning, especially domain adaptation [24][25][26]. KNN is trained on the labeled source data, and tested on the unlabeled target data. Specifically, in the feature

26KNN is a widely used classifier. An advantage of this estimator is that it does not require hyperparameter optimization [23]. There are many researchers that use KNN as a classifier in transfer learning, especially domain adaptation [24][25][26]. KNN is trained on the labeled source data, and tested on the unlabeled target data. Specifically, in the feature space, among the K samples that are most similar (nearest neighbors) to a sample, if most samples belong to a certain category, then a certain sample also belongs to this category. KNN is a classifier that is very sensitive to distance. The most similar K samples are found by calculating the Euclidean distance between the unknown sample and the training set sample.

Particle Swarm Optimization of BDA Parameters

27The BDA method was the first to give quantitative estimates of marginal distribution and conditional distribution. However, due to the randomness of MOS sensor drift, it is impossible to directly obtain the appropriate weight balance factor parameter µ when constructing the model, so the optimal results cannot be obtained between each set of data. The parameter optimization method is needed to obtain the optimal balance factor parameter of each data set. The weight balance factor parameter µ is a single parameter, so the PSO algorithm for parameter optimization can achieve the optimal parameter value.

28Suppose a flock of birds conduct a random search for food in an area. There is only one piece of food in this area, and all birds cannot get the food location, but they can judge the distance to the food. In order to find food effectively, the individuals closest to the food in the group search for food. The PSO algorithm is inspired by the group behavior of such organisms to achieve the optimal solution.

29If we use particles instead of birds to describe this process, each particle in the model is an individual in the N-dimensional space to search in the space. The current position of each particle in the particle swarm can be regarded as a candidate solution of the current optimization problem. Particles only have two attributes: speed and position. The optimal solution of a single particle is the individual extreme point, and the optimal individual extreme point in the particle swarm is the global optimal solution. After continuous iteration, the position and velocity of the particles are continuously updated until the final convergence condition is met, and the optimal solution is obtained.

30The PSO algorithm process for the BDA weight balance factor parameters µ in each data set is as follows:

311.

32Initialization: first, set the number of iterations, the size of the particle swarm, and the position and speed range of the particle swarm. Initialize the initial velocity and position of each particle randomly in the velocity space and the search space. The fitness function is selected as the BDA model.

2.

33Initial original optimal solution: solve individual extreme points for each particle initially randomly, and obtain a global optimal solution from it, which is recorded as a single global optimal solution. 3.

34Update speed and position: According to Equations (9) and (10), update the speed and position of the next iteration.

35V id = ωV id + C 1 random(0, 1)(P id − X id ) + C 2 random(0, 1) P gd − X id (9)

36where w (w > 0) is the inertia factor. The value of w represents the strength of the system's global and local optimization capabilities. C 1 and C 2 are self-learning factors and group-learning factors, respectively, and generally take C 1 = C 2 ∈ [0, 4]. P id represents the d-th dimension of the individual extreme value of the i-th variable. P gd represents the d-th dimension of the global optimal solution. 4.

37Iteration termination: when the set number of iterations is reached or within the allowable error range.

Data Set for Validation

38We utilized the classification accuracy to verify the drift compensation method proposed for the MOS gas sensor array on the public gas sensor array drift data set [13,27]. This archive is published by the UCI Machine Learning Repository. They used 16 screenprinted, commercially available metal-oxide semiconductor gas sensors for their array, manufactured and commercialized by Figaro Inc. for experiments. At present, it has been widely used in the research of drift compensation of gas sensors.

39This data set contains 13,910 measurements from 16 chemical sensors for 36 months utilized in simulations for drift compensation. Six different concentrations of gases collected in the data set are labeled with numbers 1-6, corresponding to ethanol, ethylene, ammonia, acetaldehyde, acetic acid, and toluene, respectively. For ease of processing, the data set was divided into 10 batches. Table 1 summarizes the number of measurements for each class and month included in each batch. For each sensor, the output response of the sensor was recorded in the form of resistance. The measurement process contained a total of eight features, including two static features, three rising dynamic features, and three decaying dynamic features. As the sensor array, the 16 sensors were divided into four types and four of each. The 8 features extracted from each specific sensor were multiplied by the 16 sensors considered here. A total of 8 × 16 = 128 of the above features were formed into a feature vector dimension. It is worth noting that the 8 features obtained by the same sensor were highly correlated. Meanwhile, the output responses of the four sensors in the same type were also highly correlated. In addition, due to the poor selectivity of MOS sensors, the output of different types of sensors could still have good correlation. This means that the components in the feature vector dimension were highly correlated. This can effectively avoid the so-called dimensional disaster, in which the expected sum converges to a constant due to the existence of a large number of independent components in the data.

40At the same time, the KNN classifier needs to calculate the distance between the samples. If the range of the feature value range is large, the distance calculation is mainly based on the feature, which does not match the actual situation (sometimes, when the range is small, the actual situation is more important). Since the evaluation range of each feature of the sensor in the dataset was inconsistent, it was necessary to normalize the original data, as shown in Figure 4.

Drift Compensation BDA Method Methodology

41The main focus of this work is to establish a drift compensation model for the MOS sensor array, combining the BDA method and PSO to solve the drift problem of the electronic nose.

42The proposed drift compensation model of the MOS sensor array included six parts, as shown in Figure 5. Generally, drift compensation starts with the data collection from sensor arrays. In order to facilitate comparison with other machine learning compensation

43The main focus of this work is to establish a drift compensation model for the MOS sensor array, combining the BDA method and PSO to solve the drift problem of the electronic nose.

44The proposed drift compensation model of the MOS sensor array included six parts, as shown in Figure 5. Generally, drift compensation starts with the data collection from sensor arrays. In order to facilitate comparison with other machine learning compensation methods, this study used a public MOS sensor array data set. The 8 features in the sensor response at each measurement point were retained. Since the evaluation of each characteristic index was different, in order to ensure the reliability of the results, it was necessary to normalize the original data, then to apply the BDA method for feature extraction. Because of the adjustment effect of the weight balance factor, a smaller MMD distance and higher accuracy could be achieved than when using JDA and TCA. The reduction of the distribution difference between the two domains based on the data could further improve the robustness of the drift compensation model. The next step was to use the PSO algorithm to optimize the parameters to obtain the optimal weight balance factor. The calculation of the conditional probability distribution needed to know the label of the data. However, the target domain data in the scenario assumed by the BDA drift compensation method was unlabeled. One method was proposed, which was to train a nearest neighbor classifier algorithm in the source domain data, use the nearest-neighbor classifier algorithm to pseudo-label the target domain data, and then use the pseudo-label to calculate the conditional probability distribution of the target domain data. Then, the pseudo-labels were updated through multiple iterations, and the accuracy of the pseudo-labels was gradually improved, thereby improving the performance of the algorithm.

Experimental Settings and BDA Parameters Configuration

45In order to effectively verify the proposed method and facilitate comparison, two experimental settings are given according to [20]. The number of measurements and classes of test data contained in each batch are summarized in Table 1.

46In this study, the accuracy rate of the sample classification of the target domain was

47In order to effectively verify the proposed method and facilitate comparison, two experimental settings are given according to [20]. The number of measurements and classes of test data contained in each batch are summarized in Table 1.

48In this study, the accuracy rate of the sample classification of the target domain was used as the basic evaluation criterion of the algorithm effect, and the specific calculation was as follows:

49where f (x) is the true label of the test sample x, and y(x) is the predicted label of the sample x.

50Five parameters were included in the optimization model of the drift compensation algorithm in this study. Namely, the weight balance factor µ, the regularization parameter λ, the subspace bases d, the number of iterations T, and the gamma parameter γ.

51λ is a regularization parameter to ensure that the optimization problem is well-defined. In theory, λ controls the complexity of the classification model. When λ → 0, the classification model degenerates and leads to serious overfitting problems. When λ → ∞, the classification model is too simple to fully fit the discriminative structure of the data.

52The subspace bases d represents the size used to construct the transformation matrix A. d is usually chosen as the dimension that makes the subspace sufficiently accurate. The value of d cannot exceed the number of features.

53For the number of iterations T, the BDA method continuously improves the classification accuracy by iteratively updating the pseudo-labels.

54The gamma parameter defines the reciprocal of the standard deviation of the RBF kernel. For nonlinear problems, we can use kernel mapping and kernel matrix. Two types of kernel functions, linear kernel k(x i ,

55, were used in this study.

56The parameters d, λ, and γ obtain the best values through deviation optimization. The setting of the number of iterations T refers to [22]. Finally, the set of parameter settings was: d = 100, λ = 1, γ = 1, and T = 10, respectively.

57In order to analyze the impact of µ on the performance of the BDA method, first, the factor µ can be simply regarded as a parameter in the transfer process. In the interval [0, 1], the value of µ is taken from 0, and every time 0.1 increases, a set [0, 0.1, . . . , 1.0] is obtained. Then, an impression of the influence of the value of the weight balance factor µ on the result can be obtained, and the RBF kernel function is applied. The experimental results are shown in Table 2 and Figure 6. Obviously, the optimal value of weight balance factor µ varied in different data batches. This showed the importance of marginal and conditional distribution differences across domains. In each batch of data used in the test, the µ value corresponding to the best accuracy had no obvious law. Some batches dominated the conditional distribution (for example, Batch 4), and some batches tended to have a certain ratio of the joint distribution of the two (for example, Batch 8).

58In order to get the best results, the PSO algorithm was combined to search for the best µ of each set of data in a wide range. The parameters in the PSO algorithm were set as follows: the population size was 20; the maximum number of iterations was 10; the weight balance factor optimization limit range was 0 to 1, and the two values of 0 and 1 were considered in advance; the speed limit range was −0.3 to 0.3; and the inertia weight was 0.8.

Performance Verification

59The experiment followed Setting 1 and Setting 2 in turn. We implemented the proposed BDA drift compensation method, which included the primal BDA method, the RBF kernel, and the linear kernel. Tables 3 and 4 show the best µ value and the corresponding best accuracy of each batch of data after the PSO process. The factor µ retained three decimal places and was compared with the JDA algorithm with the same kernel. In addition, a non-domain adaptive algorithm using NN as the standard classifier was added. The above drift compensation method based on machine learning using the same dataset is given in [20]. Table 5 shows the accuracy of different methods for 9 batches under experimental Setting 1. Figure 7 intuitively shows the recognition accuracy of all methods.

60First, the overall recognition accuracy of the BDA method was higher than that of the comparison method. The BDA method of the RBF kernel optimized by the POS process had the highest average recognition accuracy of 68.92%. Second, compared with the best comparison method JDA, the recognition accuracy was increased by 4.54%, considering that JDA can only adjust marginal and conditional distributions with equal weights (µ = 0.5). However, BDA can significantly improve accuracy by adjusting the weight balance parameter µ to adapt to different situations. Last, due to the huge distribution gap between the drift data sets, the non-transfer learning method NN only achieved an average recognition accuracy of 56.69%. This showed that the performance of domain adaptation methods was better than that of non-domain adaptation methods. This showed the effectiveness of the transfer learning method, and BDA had the best performance among the three. According to the results, the gas recognition accuracy of the BDA method for Batches 8 and 10 showed the lowest performances, especially for Batch 8, the accuracy of which was only 38.10%. The same was true for other comparison methods, whose performance was much lower than other batches. After long-term operation of the MOS sensor, due to the deterioration of MOS-sensitive materials, the pollution of the MOS gas sensor unit, and the deterioration of the interface electrical contact, the sensor data for Batches 8, 9, and 10 may have been seriously deteriorated. In order to analyze the validity of the data, we applied principal component analysis (PCA) to this data set, and then projected the data into a 2D subspace based on the first two PCs. As shown in Figure 8, the data space distribution of Batch 8 had significant changes compared with other batches. Zhang et al. [14] believed that these changes were caused by drift over time. However, the data space distributions of Batch 9 and 10 were similar to the other batches. Therefore, we believe that the changes in Batch 8 may not have been entirely caused by the drift. Another possible reason was that Batch 8 had a smaller amount of data, and only contained 294 measurement samples. Their combined influence resulted in a huge difference in the distribution for Batch 8. First, the overall recognition accuracy of the BDA method was higher than that of the comparison method. The BDA method of the RBF kernel optimized by the POS process had the highest average recognition accuracy of 68.92%. Second, compared with the best comparison method JDA, the recognition accuracy was increased by 4.54%, considering that JDA can only adjust marginal and conditional distributions with equal weights (μ = 0.5). However, BDA can significantly improve accuracy by adjusting the weight balance parameter μ to adapt to different situations. Last, due to the huge distribution gap between the drift data sets, the non-transfer learning method NN only achieved an average recognition accuracy of 56.69%. This showed that the performance of domain adaptation methods was better than that of non-domain adaptation methods. This showed the effectiveness of the transfer learning method, and BDA had the best performance among the three.

61According to the results, the gas recognition accuracy of the BDA method for Batches 8 and 10 showed the lowest performances, especially for Batch 8, the accuracy of which was only 38.10%. The same was true for other comparison methods, whose performance was much lower than other batches. After long-term operation of the MOS sensor, due to the deterioration of MOS-sensitive materials, the pollution of the MOS gas sensor unit, and the deterioration of the interface electrical contact, the sensor data for Batches 8, 9, and 10 may have been seriously deteriorated. In order to analyze the validity of the data, we applied principal component analysis (PCA) to this data set, and then projected the data into a 2D subspace based on the first two PCs. As shown in Figure 8, the data space distribution of Batch 8 had significant changes compared with other batches. Zhang et al. [14] believed that these changes were caused by drift over time. However, the data space distributions of Batch 9 and 10 were similar to the other batches. Therefore, we believe that the changes in Batch 8 may not have been entirely caused by the drift. Another possible reason was that Batch 8 had a smaller amount of data, and only contained 294 measurement samples. Their combined influence resulted in a huge difference in the distribution for Batch 8. As shown in Figure 9, the performance of all methods for Setting 2 was better than for Setting 1. The possible reason was that the drift influences between batches in Setting 2 were smaller than those in Setting 1, which resulted in a small difference in classification and recognition tasks. The best performance was still the RBF kernel BDA method, with As shown in Figure 9, the performance of all methods for Setting 2 was better than for Setting 1. The possible reason was that the drift influences between batches in Setting 2 were smaller than those in Setting 1, which resulted in a small difference in classification and recognition tasks. The best performance was still the RBF kernel BDA method, with an average recognition accuracy of 81.06%. It is worth noting that the optimal factor µ of the RBF kernel BDA in multiple batches was closer to 1, which showed that the conditional distribution was dominant among them. The drift data set of adjacent batches may be more similar. In Batch 2 → 3, Batch 4 → 5, and Batch 8 → 9, the recognition accuracy reached 97.95%, 96.36%, and 98.28%, respectively. In addition, as in Setting1, the recognition accuracy based on the transfer learning method was still much higher than the non-transfer learning NN method. However, in the last batch, the accuracy dropped drastically. We believe that this phenomenon was related to the data collection work of the MOS sensor array. The last collection of sensor array data occurred five months after the previous time. During this time, the sensors were kept powered off. Due to the lack of normal operating temperature, external contaminants may have adhered to the sensitive material layer of sensors. This process is usually irreversible, and sensors were contaminated. This maximized the difference in data distribution between Batch 9 and Batch 10. Although the data in Batch 10 was severely disturbed due to these reasons, the BDA method we proposed was still better than the comparison method when tested for Setting 2. The detailed values of the recognition accuracy of each batch for Setting 2 are recorded in Table 6.

Conclusions

62In this paper, a BDA-based transfer learning method to solve the drift problem of MOS gas sensor arrays was proposed. Specifically, cross-domain feature extraction was performed using the BDA method, and the BDA method simultaneously minimized the difference between the marginal and conditional distributions between domains through the weight balance factor. The PSO algorithm was used to find the best weight balance factor between different data sets to achieve the best classification and recognition accuracy. Experiments on the long-term sensor drift data set collected by the MOS sensor arrays clearly demonstrated the effectiveness of our proposed compensation method. In two different setting groups, the optimized BDA recognition accuracies were 4.54% and 1.62% ahead of the JDA method, and 12.23% and 15.83% ahead of the KNN method. Experiments showed that BDA was significantly better than the JDA domain adaptive method and the KNN basic classifier method in terms of drift recognition accuracy.

63In future work, we will further explore and enhance the accuracy of drift compensation to realize real-time drift regression compensation.

참고문헌 27건

  1. Gas Recognition under Sensor Drift by Using Deep Learning International Journal of Intelligent Systems · Wiley · 2015 10.1002/int.21731
  2. First Fifty Years of Chemoresistive Gas Sensors Chemosensors · Multidisciplinary Digital Publishing Institute · 2015 10.3390/chemosensors3010001
  3. Semi-Supervised Learning Techniques in Artificial Olfaction: A Novel Approach to Classification Problems and Drift Counteraction IEEE Sensors Journal · IEEE Sensors Council · 2012 10.1109/jsen.2012.2192425
  4. Asymmetric and Category Invariant Feature Transformations for Domain Adaptation International Journal of Computer Vision · Springer Science+Business Media · 2014 10.1007/s11263-014-0719-3
  5. Chemical gas sensor drift compensation using classifier ensembles Sensors and Actuators B Chemical · Elsevier BV · 2012 10.1016/j.snb.2012.01.074
  6. Domain Adaptation Extreme Learning Machines for Drift Compensation in E-Nose Systems IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2014 10.1109/tim.2014.2367775
  7. On the calibration of sensor arrays for pattern recognition using the minimal number of experiments Chemometrics and Intelligent Laboratory Systems · Elsevier BV · 2013 10.1016/j.chemolab.2013.10.012
  8. Visual Event Recognition in Videos by Learning from Web Data IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2011 10.1109/tpami.2011.265
  9. A Survey on Transfer Learning IEEE Transactions on Knowledge and Data Engineering · IEEE Computer Society · 2009 10.1109/tkde.2009.191
  10. Analysis and Review of Tin Oxide-Based Chemoresistive Gas Sensor IETE Technical Review · Taylor & Francis · 2015 10.1080/02564602.2015.1080603
  11. Electronic nose sensor drift compensation based on deep belief network 2016 10.1109/chicc.2016.7553969
  12. Learning Domain-Invariant Subspace Using Domain Features and Independence Maximization IEEE Transactions on Cybernetics · Institute of Electrical and Electronics Engineers · 2017 10.1109/tcyb.2016.2633306
  13. Plant Pest Detection Using an Artificial Nose System: A Review Sensors · Multidisciplinary Digital Publishing Institute · 2018 10.3390/s18020378
  14. Estimation of the limit of detection in semiconductor gas sensors through linearized calibration models Analytica Chimica Acta · Elsevier BV · 2018 10.1016/j.aca.2018.01.062
  15. Health Management Decision of Sensor System Based on Health Reliability Degree and Grey Group Decision-Making Sensors · Multidisciplinary Digital Publishing Institute · 2018 10.3390/s18072316
  16. The Electronic Nose’s Emerging Role in Respiratory Medicine Sensors · Multidisciplinary Digital Publishing Institute · 2018 10.3390/s18093029
  17. Development of a Dual MOS Electronic Nose/Camera System for Improving Fruit Ripeness Classification Sensors · Multidisciplinary Digital Publishing Institute · 2018 10.3390/s18103256
  18. Balanced Distribution Adaptation for Transfer Learning 2017 10.1109/icdm.2017.150
  19. Review on Smart Gas Sensing Technology Sensors · Multidisciplinary Digital Publishing Institute · 2019 10.3390/s19173760
  20. Drift Compensation for an Electronic Nose by Adaptive Subspace Learning IEEE Sensors Journal · IEEE Sensors Council · 2019 10.1109/jsen.2019.2941993
  21. Domain Transfer Broad Learning System for Long-Term Drift Compensation in Electronic Nose Systems IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2943188
  22. Informative Feature Selection for Domain Adaptation IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2944226
  23. A Review of Domain Adaptation without Target Labels IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2019 10.1109/tpami.2019.2945942
  24. Studies of NO2 Gas-Sensing Characteristics of a Novel Room-Temperature Surface-Photovoltage Gas Sensor Device Sensors · Multidisciplinary Digital Publishing Institute · 2020 10.3390/s20020408
  25. Joint Distribution Adaptation for Drift Correction in Electronic Nose Type Sensor Arrays IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.3010711
  26. High-accuracy health prediction of sensor systems using improved relevant vector-machine ensemble regression Knowledge-Based Systems · Elsevier BV · 2020 10.1016/j.knosys.2020.106555
  27. Semiconductor Gas Sensors: Materials, Technology, Design, and Application Sensors · Multidisciplinary Digital Publishing Institute · 2020 10.3390/s20226694