| Literature DB >> 34068297 |
Zongze Jiang1, Peng Xu2, Yongbin Du1, Feng Yuan1, Kai Song3.
Abstract
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.Entities:
Keywords: balanced distribution adaptation; domain adaption; drift compensation; feature extraction; sensor array; transfer learning
Year: 2021 PMID: 34068297 PMCID: PMC8153337 DOI: 10.3390/s21103403
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1The differences between the transfer learning approach and the traditional machine learning approach.
Figure 2Target domain data with different data distribution.
Figure 3Flowchart of BDA algorithm.
Experimental data of sensor drift in MOS gas sensor array.
| Batch ID | Month | 1 Ethanol | 2 Ethylene | 3 Ammonia | 4 Acetaldehyde | 5 Acetone | 6 Toluene |
|---|---|---|---|---|---|---|---|
| Batch 1 | 1, 2 | 83 | 30 | 70 | 98 | 90 | 74 |
| Batch 2 | 3~10 | 100 | 109 | 532 | 334 | 164 | 5 |
| Batch 3 | 11~13 | 216 | 240 | 275 | 490 | 365 | 0 |
| Batch 4 | 14, 15 | 12 | 30 | 12 | 43 | 64 | 0 |
| Batch 5 | 16 | 20 | 46 | 63 | 40 | 28 | 0 |
| Batch 6 | 17~20 | 110 | 29 | 606 | 574 | 514 | 467 |
| Batch 7 | 21 | 360 | 744 | 630 | 662 | 649 | 568 |
| Batch 8 | 22, 23 | 40 | 33 | 143 | 30 | 30 | 18 |
| Batch 9 | 24, 30 | 100 | 75 | 78 | 55 | 61 | 101 |
| Batch 10 | 36 | 600 | 600 | 600 | 600 | 600 | 600 |
Figure 4Original sensor array response and normalized sensor array response. (a) Original sensor array output response. (b) Normalized sensor array output response.
Figure 5Steps of the BDA developed drift compensation methodology.
The relationship between weighting factor and precision.
| Factor | 0 | 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1.0 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Batch 2 | 81.11 | 78.78 | 78.78 | 78.78 | 78.86 | 78.86 | 78.78 | 78.62 | 78.70 | 78.62 | 61.49 |
| Batch 3 | 69.29 | 76.23 | 79.89 | 80.08 | 80.01 | 80.01 | 79.89 | 79.89 | 79.82 | 79.76 | 61.49 |
| Batch 4 | 58.39 | 63.35 | 63.98 | 62.11 | 62.11 | 62.11 | 64.60 | 65.84 | 67.70 | 68.32 | 61.49 |
| Batch 5 | 55.84 | 69.04 | 59.39 | 54.31 | 53.81 | 54.82 | 55.33 | 55.33 | 55.33 | 55.33 | 75.13 |
| Batch 6 | 82.74 | 74.70 | 82.26 | 82.61 | 82.78 | 82.43 | 81.91 | 81.30 | 81.30 | 81.48 | 76.65 |
| Batch 7 | 52.92 | 68.09 | 67.92 | 67.17 | 64.90 | 64.68 | 64.13 | 63.85 | 63.22 | 62.44 | 66.21 |
| Batch 8 | 23.13 | 36.73 | 35.71 | 18.03 | 36.73 | 37.41 | 22.79 | 37.41 | 23.47 | 16.33 | 31.29 |
| Batch 9 | 56.17 | 67.23 | 67.66 | 67.87 | 67.23 | 67.45 | 67.23 | 67.23 | 67.66 | 67.23 | 62.34 |
| Batch 10 | 44.06 | 52.19 | 55.97 | 54.89 | 55.61 | 55.75 | 55.78 | 55.06 | 51.44 | 52.58 | 49.78 |
| Average | 58.18 | 65.15 | 65.73 | 62.87 | 64.67 | 64.84 | 63.38 | 64.95 | 63.18 | 62.45 | 60.65 |
Figure 6The impact of different weight balance factors μ on classification accuracy.
The optimal weight balance factor and accuracy of the BDA drift compensation method for Setting 1.
| Method | BDA RBF | BDA Linear | BDA Primal | |||
|---|---|---|---|---|---|---|
|
| Acc |
| Acc |
| Acc | |
| Batch 2 | 0.000 | 81.11 | 0.000 | 80.23 | 0.012 | 82.23 |
| Batch 3 | 0.251 | 80.71 | 0.928 | 76.17 | 0.256 | 84.17 |
| Batch 4 | 0.931 | 68.32 | 0.842 | 68.94 | 0.658 | 68.94 |
| Batch 5 | 0.134 | 71.07 | 0.078 | 57.36 | 0.367 | 60.91 |
| Batch 6 | 0.912 | 84.65 | 0.033 | 86.61 | 0.148 | 84.61 |
| Batch 7 | 0.084 | 69.78 | 0.917 | 69.80 | 0.803 | 69.28 |
| Batch 8 | 0.533 | 38.10 | 0.297 | 32.65 | 0.700 | 32.31 |
| Batch 9 | 0.188 | 68.09 | 0.700 | 67.23 | 0.907 | 55.74 |
| Batch 10 | 0.690 | 58.44 | 0.651 | 59.56 | 0.961 | 53.72 |
| Average | 68.92 | 66.45 | 65.77 | |||
The optimal weight balance factor and accuracy of the BDA drift compensation method for Setting 2.
| Method | BDA RBF | BDA Linear | BDA Primal | |||
|---|---|---|---|---|---|---|
|
| Acc |
| Acc |
| Acc | |
| Batch 1 | 0.000 | 82.72 | 0.000 | 80.23 | 0.012 | 82.24 |
| Batch 2 | 0.387 | 97.95 | 0.762 | 87.45 | 0.068 | 93.00 |
| Batch 3 | 0.785 | 73.83 | 0.683 | 90.06 | 0.700 | 81.99 |
| Batch 4 | 0.914 | 96.36 | 0.848 | 95.43 | 0.462 | 96.45 |
| Batch 5 | 0.903 | 76.25 | 0.537 | 74.30 | 0.798 | 73.87 |
| Batch 6 | 0.922 | 89.19 | 0.474 | 86.91 | 0.997 | 86.41 |
| Batch 7 | 0.888 | 66.85 | 0.730 | 61.90 | 0.000 | 58.16 |
| Batch 8 | 0.966 | 98.28 | 0.055 | 88.51 | 0.551 | 88.94 |
| Batch 9 | 0.001 | 48.15 | 0.892 | 48.50 | 0.509 | 50.72 |
| Average | 81.06 | 79.26 | 79.09 | |||
Drift compensation results of BDA and other methods for Setting 1.
| Method | Batch 2 | Batch 3 | Batch 4 | Batch 5 | Batch 6 | Batch 7 | Batch 8 | Batch 9 | Batch 10 | Average |
|---|---|---|---|---|---|---|---|---|---|---|
| BDA RBF | 81.11 | 80.71 | 68.32 |
| 84.65 | 69.78 | 38.10 |
| 58.44 |
|
| BDA Linear | 80.23 | 76.17 | 68.94 | 57.36 |
| 69.80 | 32.65 | 67.23 |
| 66.45 |
| BDA Primal |
|
| 68.94 | 60.91 | 84.61 | 69.28 | 32.31 | 55.74 | 53.72 | 65.77 |
| JDA RBF | 78.54 | 79.26 |
| 56.35 | 83.09 | 73.12 |
| 55.53 | 34.00 | 64.38 |
| JDA Linear | 78.38 | 60.97 | 67.08 | 49.24 | 75.00 |
| 23.13 | 54.04 | 35.83 | 57.82 |
| JDA Primal | 79.42 | 79.45 | 62.73 | 70.56 | 70.48 | 62.75 | 16.67 | 67.87 | 51.28 | 62.36 |
| NN | 73.23 | 76.10 | 60.25 | 64.47 | 71.91 | 51.95 | 31.97 | 45.96 | 34.39 | 56.69 |
Figure 7Comparison of recognition accuracy of different methods for Setting 1.
Figure 8Distribution of principal components of 10 batches.
Figure 9Comparison of recognition accuracy of different methods for Setting 2.
Drift compensation results of BDA and other methods for Setting 2.
| Method | 1 → 2 | 2 → 3 | 3 → 4 | 4 → 5 | 5 → 6 | 6 → 7 | 7 → 8 | 8 → 9 | 9 → 10 | Average |
|---|---|---|---|---|---|---|---|---|---|---|
| BDA RBF | 82.72 |
| 73.83 | 96.36 | 76.25 | 89.19 | 66.85 |
| 48.15 |
|
| BDA Linear | 80.23 | 87.45 |
| 95.43 | 74.30 | 86.91 | 61.90 | 88.51 | 48.50 | 79.26 |
| BDA Primal |
| 93.00 | 81.99 | 96.45 | 73.87 | 86.41 | 58.16 | 88.94 |
| 79.09 |
| JDA RBF | 78.54 | 48.49 | 79.50 | 83.76 | 73.74 | 90.04 | 69.73 | 87.87 | 37.92 | 72.18 |
| JDA Linear | 78.28 | 51.60 | 78.26 | 95.43 | 67.35 | 87.79 | 62.93 | 89.57 | 45.11 | 75.55 |
| JDA Primal | 79.42 | 97.29 | 77.02 |
| 74.70 |
|
| 70.00 | 37.80 | 79.44 |
| NN | 73.23 | 0.79.7 | 83.23 | 55.84 | 61.83 | 78.88 | 88.10 | 34.68 | 31.58 | 65.23 |