Abstract
Gas sensor has been widely used in flammable gas detection. In order to solve the problem that gas sensors are susceptible to drift in hydrogen leakage detection in confined spaces, a drift compensation framework based on subspace alignment is proposed. First, global domains and subdomains are aligned simultaneously in the new subspace, thus reducing the distribution difference between the source domain and the target domain. Then, the proposed method utilizes extreme learning machine (ELM) to iteratively refine the prediction results of the target domain, and continuously optimizes the subspace and classifier. In this way, the proposed method realizes drift compensation at the feature level. Compared with the existing methods, the proposed method achieves the highest accuracy of 79.83% in the long-term drift scenario. Therefore, the experimental results show that the proposed method is competent for hydrogen leakage detection with drift, and can provide a reference for the design of drift compensation method based on gas sensors.
You have full access to this open access chapter, Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
Compared with oil and natural gas, hydrogen energy has a higher conversion rate and lower carbon emissions, which is regarded as one of the feasible solutions to solve the problem of fossil fuel environmental pollution and energy crisis [1]. However, hydrogen is a flammable gas and hydrogen leakage in confined spaces may occur in the process of hydrogen transportation and hydrogen storage. In this case, it has potential risks of combustion and explosion. Therefore, it is necessary to design hydrogen leakage methods.
With the development of material science and artificial intelligence, gas sensors have been widely used in the field of explosive detection [2]. Most gas detection methods utilize gas sensors + machine learning to identify flammable gases. They generally assume that the training and test sets are independent and equally distributed. The prediction model is built on the training set and applied to the test set. However, due to aging, temperature and humidity interference, even the same concentration of the target gas, the response of the gas sensor is still different, i.e., sensor drift. In this context, the methods which assume that the training set and the test are identically distributed are not competent for gas detection in the drift scene in practical application.
For gas detection with sensor drift, Zhang et al. [3] proposed a machine learning method based on subspace projection to suppress gas sensor drift. Artursson et al. [4] introduced a drift counteraction method based on principal component analysis and partial least squares, and thus suppress sensor drift by removing drift direction component. Vergara et al. [5] designed a machine learning approach, namely the integration of classifiers, to solve the problem of gas identification over long periods of time. However, the accuracy of existing methods is still low. Therefore, a gas sensor compensation method based on subspace alignment is proposed. This method is suitable for gas identification in drift scene with high accuracy by aligning global domains and subdomains in the new subspace.
2 Methodology
The source domain with D-dimension are denoted as \(X_{S} = [x_{s}^{1} ,x_{s}^{2} , \cdots ,x_{s}^{{N_{S} }} ] \in \Re^{{D \times N_{S} }}\), and the target domain with D-dimension are denoted as \(X_{T} = [x_{T}^{1} ,x_{T}^{2} , \cdots ,x_{T}^{{N_{T} }} ] \in \Re^{{D \times N_{T} }}\). \(P \in \Re^{D \times d}\) represents a base matrix. \(\left\| \cdot \right\|_{2}\) is the l2-norm. \(tr\left( \cdot \right)\) denotes the trace operator.
2.1 Subspace Alignment Method (SAM)
To suppress sensor drift, the proposed SAM utilizes P to achieve domain alignment, and thus reduce distribution divergence between source domain and target domain. First, we focus on the alignment of the global distribution based on marginal distribution distance in the subspace.
where \(\mu\) denotes the centre of the domain in the subspace. \(y_{S}^{i} = P^{T} x_{S}^{i}\) (\(i = 1,2,...,N_{S}\)) and \(y_{T}^{j} = P^{T} x_{T}^{j}\) (\(j = 1,2,...,N_{T}\)) are the projected samples in the subspace. Then we rewrite (3) as:
where \(u\) is the centre of the domain in the original space. For example, \(u_{S} = \frac{1}{{N_{S} }}\sum\nolimits_{i = 1}^{{N_{S} }} {x_{{_{S} }}^{i} }\) and \(u_{T} = \frac{1}{{N_{T} }}\sum\nolimits_{j = 1}^{{N_{T} }} {x_{{_{T} }}^{j} }\).
We then consider aligning subdomains with the same category between domains, which is formulated as follows
where \(\hat{y}_{T}^{j}\) represents the j-th sample whose classifier prediction result belong to class c from the target domain. \(\hat{N}_{{_{T} }}^{c}\) is the number of samples whose classifier prediction result belong to class c. \(\hat{u}_{{_{T} }}^{c}\) is the centre of c-class samples from the target domain.
To prevent data distortion from source and target domains, it is necessary to maximize the following term
where \(\alpha_{1} \in [0,1][0,1]\).
Finally, the proposed SAM simultaneously optimizes (2), (3) and (4), which is formulated as:
To achieve a unique solution, (5) is rewritten as
where \(I \in \Re^{d \times d}\) is the identity matrix.
After that, the Lagrange function L is introduced:
where \(\Phi = {\text{diag}}(\phi_{1} ,\phi_{2} , \ldots ,\phi_{d} ) \in \Re^{d \times d}\) denote the Lagrange multipliers.
According to \(\frac{\partial L}{{\partial P}} = 0\), we can get
P can be solved by eigenvalue decomposition based on A. i.e.,
where
Therefor, \(P^{*}\) is formulated as
where \(P_{k}\) (\(k = 1,2,...,d\)) denotes the eigenvector with respect to the k-th minimum eigenvalue.
2.2 The Proposed Framework
The proposed framework first calculates P according to (10), and the source domain and target domain are projected into the subspace, thus reducing the distribution differences between domains. Then, the data of the subspace is input into ELM [6] for training, and thus obtain the prediction result of the target domain. Finally, the target domain is iteratively optimized to predict the results and P (see Fig. 1).
3 Experiments
3.1 Dataset
The benchmark sensor drift dataset was collected over 36-month from UCSD [5], including acetone, acetaldehyde, ethanol, ethylene, ammonia, and toluene. There are 13,910 samples in the data set and each sample consists of 128-dimensional feature vector. The benchmark sensor drift dataset is divided into ten batches, as shown in Table 1.
3.2 Experimental Results
The experimental environment is an Intel(R) core (TM) i7-10750H CPU@2.60 GHz, 16 GB memory, Windows 11 and Python 3.6. We set batch 1 as the training set (source domain) and batch t (t = 2, 3, …, 10) as the test set (target domain). The proposed method is compared with several drift compensation methods, including SVM, ELM and DRCA [3].
The experimental results are shown in Table 2. Compared with SVM, ELM and DRCA, the proposed method achieves the highest classification accuracy by reducing the distribution difference. Therefore, these results show that the proposed drift compensation strategy is competent for gas detection in long-term drift scenarios.
During training we hope to use as few iterations as possible to achieve the highest accuracy. Figure 2 shows the average accuracy of the proposed method with iterations. The results show that the proposed method is effective and the highest average accuracy is achieved in fewer iterations.
4 Conclusion
Hydrogen leakage detection in confined spaces is the guarantee of successful hydrogen transport and hydrogen storage technology. In this paper, focusing on the practical application scenario, a drift compensation method for gas sensor is proposed. In this method, subspace alignment is realized by aligning subdomains and global domains, and thus reducing the distribution difference due to sensor drift. Experimental results show that the proposed method achieves the highest classification accuracy in the long-term drift with an average accuracy of 79.83%.
References
Hao, D., Wang, X., Zhang, Y., et al.: Experimental study on hydrogen leakage and emission of fuel cell vehicles in confined spaces. Autom. Innov. 3(19), 111–122 (2020)
Brudzewski, K., Osowski, S., Pawlowski, W.: Metal oxide sensor arrays for detection of explosives at sub-parts-per million concentration levels by the differential electronic nose. Sens. Actuators B Chem. 161(1), 528–533 (2012)
Zhang, L., Liu, Y., He, Z., et al.: Anti-drift in E-nose: a subspace projection approach with drift reduction. Sens. Actuators B Chem. 253, 407–417 (2017)
Artursson, T., Eklov, T., Lundstrom, I., et al.: Drift correction for gas sensors using multivariate methods. J. Chemom.Chemom. 14(5–6), 711–723 (2015)
Vergara, A., Vembu, S., Ayhan, T., et al.: Chemical gas sensor drift compensation using classifier ensembles. Sens. Actuators B Chem. 166, 320–329 (2012)
Ding, X., Liu, J., Yang, F., et al.: Random compact Gaussian kernel: application to ELM classification and regression. Knowl.-Based Syst..-Based Syst. 217, 106848 (2021)
Acknowledgments
This work was supported by the Central Science and Technology Commission of China under grant JZKJW20200036.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made.
The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
Copyright information
© 2024 The Author(s)
About this paper
Cite this paper
Se, H., Jiang, J., Sun, C., Song, K. (2024). Hydrogen Leakage Detection in Confined Spaces with Drift Suppression Based on Subspace Alignment. In: Sun, H., Pei, W., Dong, Y., Yu, H., You, S. (eds) Proceedings of the 10th Hydrogen Technology Convention, Volume 1. WHTC 2023. Springer Proceedings in Physics, vol 393. Springer, Singapore. https://doi.org/10.1007/978-981-99-8631-6_20
Download citation
DOI: https://doi.org/10.1007/978-981-99-8631-6_20
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-99-8630-9
Online ISBN: 978-981-99-8631-6
eBook Packages: Physics and AstronomyPhysics and Astronomy (R0)