Because of the low accuracy of the current machine olfactory algorithms in detecting two mixed gases, this study proposes a hybrid gas detection algorithm based on an extreme random tree to greatly improve the classification accuracy and time efficiency. The method mainly uses the dynamic time warping algorithm (DTW) to perform data pre-processing and then extracts the gas characteristics from gas signals at different concentrations by applying a principal component analysis (PCA). Finally, the model is established by using a new extreme random tree algorithm to achieve the target gas classification. The sample data collected by the experiment was verified by comparison experiments with the proposed algorithm. The analysis results show that the proposed DTW algorithm improves the gas classification accuracy by 26.87%. Compared with the random forest algorithm, extreme gradient boosting (XGBoost) algorithm and gradient boosting decision tree (GBDT) algorithm, the accuracy rate increased by 4.53%, 5.11% and 8.10%, respectively, reaching 99.28%. In terms of the time efficiency of the algorithms, the actual runtime of the extreme random tree algorithm is 66.85%, 90.27%, and 81.61% lower than that of the random forest algorithm, XGBoost algorithm, and GBDT algorithm, respectively, reaching 103.2568 s.
Machine learning algorithms play an important role in fault detection and fault diagnosis of gas sensor arrays. Because the gas sensor array will see stability degradation and a shift in output signal amplitude under long-term operation, it is very important to detect the abnormal output signal of the gas sensor array in time and achieve accurate fault location. In order to solve the problem of low detection accuracy of micro-faults in gas sensor arrays, this paper adopts the serial principal component analysis (SPCA) method, which combines the advantages of principal component analysis (PCA) in the linear part and the advantages of kernel principal component analysis (KPCA) in the nonlinear part. The experimental results show that this method is more sensitive to micro-faults and has better fault detection accuracy than the fault detection methods of PCA and KPCA. In addition, in order to solve the current problem of low accuracy of multiple-fault isolation, a SPCA-based reconstruction contribution fault isolation method is proposed in this paper. The experimental results show that this method has higher fault isolation accuracy than the method based on contribution graph.