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

Gas Sensor Array Fault Diagnosis Based on Multi-Dimensional Fusion, an Attention Mechanism, and Multi-Task Learning

관련 수소연료전지 · (7) MEA(막전극접합체)

기본 정보

저자
  1. Pengyu Huang — State Key Laboratory of Integrated Optoelectronics, College of Electronic Science and Engineering, Jilin University, Changchun 130012, China
  2. Qingfeng Wang — State Key Laboratory of Integrated Optoelectronics, College of Electronic Science and Engineering, Jilin University, Changchun 130012, China
  3. Haotian Chen — State Key Laboratory of Integrated Optoelectronics, College of Electronic Science and Engineering, Jilin University, Changchun 130012, China
  4. Geyu Lu — State Key Laboratory of Integrated Optoelectronics, College of Electronic Science and Engineering, Jilin University, Changchun 130012, China
DOI
10.3390/s23187836
저널
Sensors
발행년도
2023
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
2
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/s23187836
토픽
Analytical Chemistry and Sensors
OpenAlex ID
W4386629232

평가 내용

관련도
관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > MEA(막전극접합체)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

With the development of gas sensor arrays and computational technology, machine olfactory systems have been widely used in environmental monitoring, medical diagnosis, and other fields. The reliable and stable operation of gas sensing systems depends heavily on the accuracy of the sensors outputs. Therefore, the realization of accurate gas sensor array fault diagnosis is essential to monitor the working status of sensor arrays and ensure the normal operation of the whole system. The existing methods extract features from a single dimension and require the separate training of models for multiple diagnosis tasks, which limits diagnostic accuracy and efficiency. To address these limitations, for this study, a novel fault diagnosis network based on multi-dimensional feature fusion, an attention mechanism, and multi-task learning, MAM-Net, was developed and applied to gas sensor arrays. First, feature fusion models were applied to extract deep and comprehensive features from the original data in multiple dimensions. A residual network equipped with convolutional block attention modules and a Bi-LSTM network were designed for two-dimensional and one-dimensional signals to capture spatial and temporal features simultaneously. Subsequently, a concatenation layer was constructed using feature stitching to integrate the fault details of different dimensions and avoid ignoring useful information. Finally, a multi-task learning module was designed for the parallel learning of the sensor fault diagnosis to effectively improve the diagnosis capability. The experimental results derived from using the proposed framework on gas sensor datasets across different amounts of data, balanced and unbalanced datasets, and different experimental settings show that the proposed framework outperforms the other available methods and demonstrates good recognition accuracy and robustness.

본문 63,579자

본문 펼치기
With the development of gas sensor arrays and computational technology, machine olfactory systems have been widely used in environmental monitoring, medical diagnosis, and other fields.The reliable and stable operation of gas sensing systems depends heavily on the accuracy of the sensors outputs.Therefore, the realization of accurate gas sensor array fault diagnosis is essential to monitor the working status of sensor arrays and ensure the normal operation of the whole system.The existing methods extract features from a single dimension and require the separate training of models for multiple diagnosis tasks, which limits diagnostic accuracy and efficiency.To address these limitations, for this study, a novel fault diagnosis network based on multi-dimensional feature fusion, an attention mechanism, and multi-task learning, MAM-Net, was developed and applied to gas sensor arrays.First, feature fusion models were applied to extract deep and comprehensive features from the original data in multiple dimensions.A residual network equipped with convolutional block attention modules and a Bi-LSTM network were designed for two-dimensional and one-dimensional signals to capture spatial and temporal features simultaneously.Subsequently, a concatenation layer was constructed using feature stitching to integrate the fault details of different dimensions and avoid ignoring useful information.Finally, a multi-task learning module was designed for the parallel learning of the sensor fault diagnosis to effectively improve the diagnosis capability.The experimental results derived from using the proposed framework on gas sensor datasets across different amounts of data, balanced and unbalanced datasets, and different experimental settings show that the proposed framework outperforms the other available methods and demonstrates good recognition accuracy and robustness. Introduction With the development of sensor technology, gas sensor arrays are playing an increasingly important role in machine olfaction applications such as environmental monitoring [1], gas quality detection [2], food quality control [3], and medical diagnosis [4].A machine olfactory system (e.g., an electronic nose) identifies gases by analyzing the data returned from a gas sensor array using pattern recognition methods.Metal-oxide semiconductor (MOX) gas sensors are widely used because of their low cost, high sensitivity, and fast response times.For example, Ref. [5] proposed an ultrasensitive gas sensor established on hollow tungsten trioxide-nickel oxide nanoflowers, which had a fast response time and outstanding gas sensitivity.A pattern recognition algorithm is an important part of electronic noses in analyzing gas characteristics, and this type of algorithm is often used to classify gas mixtures.Common methods include principal component analysis (PCA) [6], artificial neural networks (ANNs) [7], and convolutional neural networks (CNNs) [8].These methods are implemented on the basis of data from healthy sensors.A gas sensor array is the source of the machine olfactory system used to obtain measured gas/odor information, and its measurement quality significantly determines the overall performance of the system. Introduction However, the MOX gas sensor array inevitably suffers from external interference (corrosive gas influence, dust adhesion, temperature, and humidity changes) or self-failure (aging, poisoning, and damage to gas sensing materials) during operation.Once the sensor fails, the application of inaccurate measurements will lead to decreases in the accuracy and reliability of the classification results or even complete errors [9].Therefore, appropriate fault diagnosis algorithms must be employed to monitor the abnormal states of the gas sensor array (fault detection), identify fault types (fault identification), and locate faulty gas sensors (fault localization). Introduction With the advancement of automation and integration in modern industry, there has been an increasing demand for the reliability and safety of related equipment.Fault diagnosis and health management techniques have been used in various industrial applications in recent years, such as the physics-informed residual network (PIResNet) for rolling element bearing fault diagnostics [10], digital twin-driven intelligent assessment of gear surface degradation [11], and a novel vibration-based prognostic scheme for gear health management in the surface wear progression of the intelligent manufacturing system [12].All these methods can provide effective solutions for health management and the predictive maintenance of working systems in industrial processes.In addition, there has been a surge in research focused on monitoring the fault status of sensors commonly used in modern industry.These studies aim to enhance the reliability of measurement signals.Currently, sensor fault diagnosis is primarily based on data-driven methods [13].This approach can directly discover and analyze hidden information in the training data instead of building complex mathematical models to describe the fault characterization principle in advance.Machine learning (ML) and deep learning (DL) are the most frequently used data-driven methods for fault diagnosis.Traditional ML methods are widely utilized for early sensor fault diagnosis.Common methods include the k-nearest neighbor algorithm [14], support vector machine [15], PCA [16], and ANN [17].However, as the size and complexity of the processed samples increases, ML methods have difficulty determining the appropriate hyperparameters for feature extraction, which is a challenging task without sufficient prior knowledge. Introduction With improvements in computer-processing capabilities, DL-based fault diagnosis methods have emerged as alternatives to traditional ML methods.DL-based methods can automatically extract classification features from large-scale data, overcoming the limitations of traditional feature extraction [18,19].Therefore, deep learning is widely used to process large amounts of complex sensor data.Common DL-based approaches include CNN, long short-term memory (LSTM), and generative adversarial networks (GANs).To overcome the tediousness of ML in data preprocessing, many DL-based methods convert the original data into a two-dimensional (2D) image format suitable for CNN processing.In [20], a deep CNN-based diagnostic model was constructed for the fault classification of the sensors and actuators of robot joints.A CNN fault identification approach based on the time-frequency characteristics of UAV sensor signals was proposed in [21].Both methods improve recognition accuracy compared with traditional ML methods.With the development of CNNs, improved models have been applied in sensor fault diagnosis.Ref. [22] described a fault detection method for aeroengine sensors based on the Inception-CNN model.Compared with an ordinary CNN, this model can extract more sensor information at different scales to increase the diagnostic accuracy of fault state detection.LSTM is also an effective method for processing sensor data, as it is capable of extracting one-dimensional (1D) temporal dependencies directly from sequence data.Ref. [23] used an LSTM model for voltage sensor fault identification in battery energy storage systems in 1D temporal dimensions.A method based on a 1D CNN and LSTM was proposed for the fault identification and recovery of Hall sensors in [24].This method further extracts features from a temporal perspective and exhibits high diagnostic accuracy.GANs are commonly applied to generate samples similar to real samples through their adversarial structures, which usually consist of a generator and a discriminator [25].Additionally, GANs have also been employed in various fault diagnosis tasks due to their feature extraction capabilities.In [26], a fault detection model was proposed based on a one-dimensional residual GANomaly network, which effectively enhanced training efficiency and diagnostic accuracy.Ref. [27] developed a fault identification method based on Bi-LSTM, GAN, and autoencoder (AE).This method utilizes the reconstructed features obtained by GAN and AE to identify sensor faults with excellent performance. Introduction Several methods based on DL have also been proposed for gas sensor fault diagnosis.Sun et al. [28] employed an improved CNN and random forests to classify the fault types of gas sensors.In [29], the authors used transfer learning combined with LeNet-5 for gas sensor fault identification.A method that combines a CNN and deep convolutional GAN to address dataset imbalances in fault type classification was proposed in [30].These methods employed the basic CNN structure for feature extraction when classifying fault types in a sensor array comprising a limited number of gas sensors. Introduction Although the models proposed above have achieved good results, some shortcomings remain in dealing with increasingly high-dimensional complex data for gas sensor fault diagnosis.(1) These methods can only extract features from a single dimension and ignore potential features from other perspectives, which limits the feature extraction capabilities of such models in complex situations.(2) These models cannot selectively focus on or ignore features based on their level of contribution to the classification results, which may fail to capture key features and waste considerable amounts of computational resources. Introduction (3) These diagnostic methods are trained for only a single diagnostic task, which loses potential correlation features between samples, limiting the diagnostic performance and utilization of the extracted features and the need to perform multiple diagnosis tasks. Introduction The multi-feature fusion strategy is a solution for capturing the comprehensive features of samples across different scales [31][32][33].Three types of multi-feature fusion algorithms are commonly used nowadays.The first involves converting the original samples into frequency-domain signals, time-frequency diagrams, or amplitude-modulated-frequencymodulated components using techniques such as Fourier transform, wavelet transform, and empirical modal decomposition.Feature extraction and fusion are subsequently performed on these different forms of signals [34,35].However, this approach is limited in obtaining additional feature information when applied to the smoothed data from gas sensors, and it also increases the complexity of the entire process.The second approach involves utilizing different deep learning models to extract and fuse features from the same perspective.In [36], a fault prediction model based on a hybrid deep neural network model was proposed, and Qian et al. [37] developed a parallel deep learning framework based on multiple models for the abnormal prediction of data in industrial production.Both of these methods use a parallel structure consisting of a 1D CNN and LSTM to capture temporal features.However, this type of approach tends to ignore features that exist in other perspectives.The third approach involves fusing features from different perspectives or scales.CNNs with convolutional kernels of different sizes were used in [32,33] to extract multi-scale features simultaneously.In [38], LSTM and CNN were used to extract both the temporal and spatial features of the samples used. Introduction Although these methods improve the amount of information for feature extraction, they are prone to ignore some decisive feature details because they are unable to select features that actively contribute significantly to classification for learning.Reportedly, a combination of network models and attention mechanisms can effectively improve the feature extraction quality.In [39], the authors proposed a fault type classification strategy for aircraft attitude sensors using the RepVGG and SENet attention mechanisms.Ref. [40] developed an attention mechanism for deep residual shrinkage networks using a fault identification model.This mechanism can effectively improve the identification of fault features using a model in a signal with noise.Unfortunately, each of these methods [29][30][31][32][33] was only trained for a single task, which limits their recognition accuracy and efficiency.Multi-task learning is a paradigm in machine learning that can process multiple tasks simultaneously and improve the generalization performance and classification accuracy of a model [41].In [42], multi-task learning was applied to the fault type classification and fault level detection of wind turbine blades and obtained better results than single-task learning.Similarly, in another study, multi-task learning was used to diagnose bearing faults and proved capable of elucidating the type and size of each fault in parallel [43].These methods demonstrate the advantages and feasibility of multi-task learning for fault diagnosis. Introduction Above all, the existing methods for the fault diagnosis of gas sensors extract features from a single dimension, ignoring the potentially discriminative features in other dimensions.Additionally, the single-task learning methods for three diagnostic tasks require diagnostic models to be trained separately, which increases complexity and limits diagnostic accuracy.Therefore, in this paper, a novel network based on multi-dimensional feature fusion, attention mechanism, and multi-task learning (MAM-Net) for gas sensor array fault diagnosis is proposed.The main contributions of this paper are as follows: Introduction (1) A multi-dimensional feature fusion method integrating a residual network (ResNet) and Bi-LSTM is proposed.Deep and comprehensive features can be extracted by fusing the 2D spatial features and 1D temporal features of samples for the fault diagnosis of a gas sensor array.(2) A ResNet equipped with convolutional block attention module (CBAM) is proposed for the 2D feature extraction of gas sensor data to capture and refine important fault features more effectively, and the diagnostic accuracy of the model is further improved.(3) A multi-task learning module was designed for gas sensor fault detection, fault identification, and fault localization.This approach can fully utilize the extracted comprehensive features to perform the three tasks in unison.The diagnostic accuracy can be improved by parameter sharing and the mutual promotion of simultaneous training between related tasks. Introduction The remainder of this paper is structured as follows: In Section 2, the theoretical background for our proposed framework is described.Section 3 provides a systematic description of the proposed framework and its internal modules.Section 4 introduces the datasets used in our experiments.Section 5 presents the results and analysis.In Section 6, we discuss and analyze the performance of the proposed method in other cases.Finally, Section 7 states the conclusions of this study. ResNet As an updated version of a traditional CNN, ResNet aims to avoid gradient disappearance and explosion as the depth of the neural network increases [44].A ResNet is generally built using several residual blocks with a mapping function designed as follows: ResNet where x is the residual block input, F(x) is the residual mapping, and H(x) is the residual block output.The constant mapping x connects the residual block input and output, which facilitates backpropagation of the loss function and the optimization of the model parameters [45].Due to the structure and advantages of ResNet, this network can easily fit various complex data in two dimensions and is highly effective for feature extraction during fault diagnosis.In [46], the authors used ResNet for the feature extraction of the wavelet coefficients of the original letter decomposition from 2D to identify wind turbine gearbox faults.Ref. [47] converted the original signal into an image using a Markov transfer field and subsequently applied ResNet to extract 2D features to achieve the classification of rolling bearing health conditions.Therefore, in this study, ResNet with an attention mechanism was designed as the 2D feature encoder for the proposed framework. CBAM The CBAM is a lightweight attention module [48].It consists of a channel attention module (CAM) and a spatial attention module (SAM).Its structure is illustrated in Figure 1.Within the intermediate feature maps of a network, the CBAM can sequentially infer attention maps along the channel and spatial dimensions to obtain refined features [49].In the CAM, the intermediate feature map F as input is pooled by global maximum pooling and global average pooling (GAP) based on the channel.The resulting vectors are then sent to the fully connected (linear) layer separately for information sharing and are stitched together to obtain the channel attention map.Subsequently, the channel attention activated by the sigmoid function is multiplied times F to obtain the channel refinement feature map F .In the SAM, F is pooled by global maximum and average according to space, and the resulting 2D vectors are connected.A spatial attention map is then generated by convolving and activating the combined vectors.Finally, the spatial attention is multiplied times F to obtain the output feature map F of CBAM.This process is represented by the following equations: CBAM where F, F , and F represent the input feature map, feature map of the channel attention output, and feature map of the spatial attention output, respectively.Mc (F) is the out- put of the CAM, and Ms (F ) is the output of the SAM.⊗ denotes element-by-element multiplication. CBAM Due to the attention mechanism, CBAM can allocate weights to different feature maps, helping the model focus on positions with outstanding features and suppress the regions that contribute little to the results, which improves the recognition effectiveness of the feature extraction model.Ref. [50] employed CNN and CBAM to improve the accuracy for classifying rolling bearing fault types.In [51], the authors used CBAM and ResNet for fault detection in reciprocating compressors to enhance the model's representation of key features.Therefore, we introduced this module into ResNet in this study to improve gas sensor array fault diagnosis. Bi-LSTM LSTM is a derivative of a recurrent neural network (RNN).It learns features by considering the order of sequential data, thereby overcoming the problems of gradient explosions and vanishing gradients in RNN by capturing long-distance dependencies [52,53].LSTM consists of three gate cells (forget, input, and output gates) and a memory cell (cell state), as shown in Figure 2. The cell state runs across all LSTM cells to transfer information over long distances.The input and forget gates decide whether to retain or discard information about the cell states, and the output gate generates the output vector Y i based on the cell state and input vector X i .This architecture enables it to maintain important features effectively during long-term processes [27].Bi-LSTM is an extension of LSTM.It comprises two LSTM that can simultaneously process time-series information in the forward and reverse directions.This approach effectively increases the amount of information available to the network [54] and enhances the understanding of fault features in the model [55].Therefore, we utilized Bi-LSTM as a 1D feature-encoding module in this study to complement the 2D features extracted by ResNet, thus enhancing the feature extraction capability of the model. Proposed Method This section introduces the proposed method for gas sensor array fault diagnosis in detail, and its structure is illustrated in Figure 3.The sensor array is composed of the gas sensors S 1 -S N .The data matrix, which consists of the output value of each sensor during gas detection, is preprocessed to transform it into a 2D image (the input data of the proposed model).The outputs of this method are labels with multiple fault descriptions of the sensor array.The proposed MAM-Net comprises two main parts: a multi-dimensional feature fusion module and multi-task learning module.The multi-dimensional feature fusion module contains 1D and 2D encoders, which are used to obtain sufficient information from the training data to improve the accuracy of fault diagnosis.The multi-task learning module is utilized to conduct fault detection, fault identification, and fault localization and then outputs the status, type, and location of the fault simultaneously.The details of each module are as follows. Multi-Dimensional Feature Fusion Module The proposed multi-dimensional feature fusion module consists of two parallel paths-1D and 2D encoders-and concatenate and linear layers, as shown in Figure 4a.The two encoders are utilized to encode fault features in the temporal and spatial dimensions in parallel.The concatenate and linear layers are employed to fuse the feature information from the two dimensions.In the 2D encoder, ResNet is used as the backbone network to extract the 2D spatial features of the faulty data.The network consists of a convolutional block, multiple improved residual blocks, and a GAP layer, as illustrated in Figure 4a. Multi-Dimensional Feature Fusion Module To satisfy the requirements of the multi-dimensional feature fusion module in the proposed method for the image format of the sensor array data, the original input data are converted into a 2D data structure, X ∈ R C×H×W , where C, H, and W correspond to the number of channels, height, and width of the image, respectively.H also represents the number of sensors, W denotes the period length of the sample, and C = 1.The input data X first proceed through a convolutional layer (kernel size = 3 × 3), batch normalization (BN) layer, ReLU activation function, and max pooling layer in the convolution block to obtain the basic feature map Y 1 ∈ R C 1 ×H 1 ×W 1 (C 1 , H 1 , and W 1 are the corresponding sizes after convolution).Subsequently, Y 1 is fed into multiple stacks of improved residual blocks to obtain additional fault characteristics.The improved residual block is formed by adding CBAM to the traditional residual block.The structure is shown in Figure 4b.In this residual block structure, the feature map is first processed using two convolutional layers, two BN layers, and one ReLU activation function layer for the overall features.Subsequently, the CBAM is employed to enhance the representation of effective features and suppress the interference of invalid features by changing the weight parameters of different feature information in the feature map.This approach enables the model to focus more on the locally important features of the data, such as the moment of the peak in the spike fault and the moment at which the return value approaches zero in the broken circuit fault.Thus, a feature map Y 2 ∈ R C 2 ×H 2 ×W 2 can be obtained after several improved residual blocks.Finally, GAP is used to summarize all fault feature information extracted by the 2D encoder.GAP can efficiently represent the classification information contained in each channel by averaging the H 2 × W 2 feature values in each channel (i.e., C 2 channels) of feature map Y 2 .Then, the vector formed by the obtained C 2 averages is employed as feature map Y 3 . Multi-Dimensional Feature Fusion Module The Bi-LSTM is the main body of the 1D encoder, as shown in Figure 4c, and it can extract fault features from sensor data in the temporal dimension.The channel dimension in X is removed by the squeeze layer to obtain feature map Y 4 ∈ R H×W (where H denotes the number of sensors and also represents the number of channels in 1D feature extraction).The network learns the time-sequence features in a manner similar to natural language processing.It considers the relationships among multiple sensor data points at each sampling point as the embedding of information for that moment.The relationships among different moments of information are used as features.Compared to the 2D encoder, which captures the spatial relationships between data in a sample as features, this network focuses on the backward and forward dependencies of time-series data as features.This approach overcomes the limitations of 2D feature extraction.For example, high similarities exist between the local spatial features of spike faults and noise faults, and one cannot distinguish the two types of faults well by only using a 2D encoder for feature extraction.However, the characteristics of these two fault types differ significantly from one another from a temporal perspective.Therefore, with the assistance of a 1D encoder, the model can perform well in distinguishing fault types.The temporal feature map Y 5 is obtained after Bi-LSTM processing. Multi-Dimensional Feature Fusion Module Finally, the model concatenates the 1D feature map Y 5 with the 2D feature map Y 3 along the feature dimension and passes it to a linear layer to integrate the information and obtain the final feature map Y 6 .This feature map can provide more adequate and effective fault feature information for subsequent multi-task learning models. Multi-Task Learning Module As shown in Figure 5, the multi-task learning module consists of three different classifiers: a fault state classifier, a fault type classifier, and a fault location classifier.It obtains multi-dimensional feature maps from the multi-dimensional feature fusion module and passes them to different classifiers.Each classifier has the same structure with different parameter settings; each contains two dropout layers, two linear layers, and a ReLU activation function.The dropout layers are used to limit the number of participating training neurons to avoid overfitting.The linear layer can be utilized to establish linear functions to fit the relationship between sample labels and features by adjusting the weights.The ReLU activation function can enhance the generalization ability of each classifier by introducing nonlinear relationships between linear layers.Unlike single-task learning, multi-task learning can calculate the loss values of multiple classification tasks in a single training session and update the network parameters based on these loss values.This approach enables several related diagnostic tasks to share feature information, improving the diagnostic accuracy and generalizability of each classification task. Fault Detection Classifier This classification model is designed to determine whether a sample is faulty and can categorize samples into two classes, namely, "normal" and "faulty", with corresponding labels of 0 and 1, respectively.Because this classification task is binary, the final linear layer of the classifier is connected to a sigmoid activation function to transform the model output into a range from 0 to 1.This approach enables the probability of a sample being "normal" to be calculated, where a probability of 0.5 is used as the threshold.Subsequently, binary cross-entropy is utilized as a loss function of fault detection to calculate the loss values Loss 1 based on the output values of the classifier and its corresponding labels.Finally, the network parameters are updated using the Adam optimizer.The loss function is defined as follows: Fault Detection Classifier where the batch size represents the number of samples in a single training epoch, y i represents the label of the ith sample, and p i is the probability that the result predicted by the model is the true label. Fault Identification and Localization Classifier The fault type and location classifiers differ from the fault detection classifier in that they are both multi-classification classifiers.The fault identification classifier can classify the samples into N 1 types according to the fault type, such as no fault, broken circuit fault, spike fault, or noise fault.These fault types correspond to labels ranging from 0 to N 1 .For a gas sensor array consisting of N 2 sensors, the fault location, as the output of the fault localization classifier, can be labeled from 0 to N 2 , where 0 indicates that no fault has occurred in the array. Fault Identification and Localization Classifier To perform these multiple classification tasks, the classifier first normalizes the model output vector using the softmax activation function to obtain the vector ŷ.Values ranging from 0 to 1 within ŷ represent the probabilities of different classes, and the class corresponding to the maximum value is the prediction result of the model.Subsequently, the cross-entropy loss function is used to calculate the loss values between the model outputs ŷ and the true label y of the samples to update the parameters of the model. Fault Identification and Localization Classifier The loss values for fault identification and localization are calculated using the crossentropy loss functions Loss 2 and Loss 3 and can be mathematically defined as follows: Fault Identification and Localization Classifier where y ji represents the true value of the ith class for the jth sample in a batch; ŷji is the corresponding predicted value; and C represents the number of classes, which, in fault identification and localization, is N 1 and N 2 , respectively. MAM-Net Model Training The training of the MAM-Net is a process of constantly optimizing the loss values corresponding to the three classifiers.First, the loss values Loss 1 , Loss 2 , and Loss 3 are calculated based on the multiple fault labels of the input samples with the predictions of the model.Subsequently, a backpropagation (BP) algorithm is used to calculate the gradient from the output layer to the input layer based on three sequential loss values.Finally, the Adam optimizer is employed to update the parameters of the model based on the gradient information calculated in the model to minimize the loss function.Due to the application of the multi-task learning method, Adam can update the model based on three types of gradient information simultaneously during training.This method realizes parameter sharing and cross-task learning across three tasks. Dataset Description A carbon monoxide gas sensor dataset collected by Javier Burgués et al. [56,57] was used in the experiments.This dataset was obtained from 14 temperature-modulated MOX gas sensors, including 7 SB-500-12 units from Nissha FIS and 7 TGS3870-A04 units from Figaro Engineering.The experimental setup for the data collection of gas sensors is shown in Figure 6.The dataset was obtained by exposing the sensor array to mixtures of carbon monoxide and humid synthetic air in a gas chamber.During the experiment, the heating unit inside the sensor was voltage-modulated with 20 s and 25 s interval cycles, as recommended by the manufacturer.The entire measurement process took 3 weeks.[56] for data collection of gas sensors. Dataset Description To ensure that the data format was consistent, we used samples with the same period length and stable gas concentration as those used in the training data through data prepro-cessing.The final sample size obtained was 75 × 14 (where 75 denotes the period length and 14 represents the number of sensors).Figure 7 shows the output curves of the 14 gas sensors at different gas concentrations for some of the samples.To achieve accurate fault diagnosis predictions, balanced data should be trained using deep neural networks [30].Therefore, in this study, the number of samples in the preprocessed dataset was adjusted to ensure that the amount of data for each sensor at various concentrations was consistent.The number of samples for each gas concentration was adjusted to 266 (14 × 19, where 14 represents the number of sensors and 19 represents the number of samples allocated to each sensor at each concentration).The diagnosis performance in the case of imbalanced data is discussed in Section 6. Fault Injection Fault injection is a suitable method of testing the validity of a diagnostic model.The fault injection method can be utilized to test the efficacy of a model by adding fault features to sensor measurements to simulate the actual fault data.Subsequently, the fault occurrence time and fault intensity can be randomly changed via fault injection to generate a more representative fault dataset and test the generalization ability of the model [58]. Fault Injection In the experiments, we considered five types of sensor faults based on the existing studies on sensor fault characteristics: broken circuit, bias, spike, noise, and gain faults [19,59].The characteristics of each fault type can be described as follows: Fault Injection • Fault Injection Broken circuit fault: The value returned by the gas sensor drops to zero and stops changing because of a circuit break or short circuit in the system. • Bias fault: The output value is stabilized around a fixed value due to the reactionsensitive unit of the semiconductor gas sensor with the heating wire off. • Spike fault: The output value appears as a pulse value because of an abnormal voltage spike pulse in the sensor circuit. • Noise fault: The output values appear irregular and strongly disturbed because of external disturbances. • Gain fault: The output value has a constant ratio to the ideal value because of internal circuit issues. • The relationship between the original health data x(t) and fault data y(t) after the fault injection is summarized as follows: • where K and B(t) are parameters for which the settings for each fault type are listed in Table 1.Examples of the corresponding data curves after fault injection into the health dataset and normal signals are shown in Figure 8.To compare the fault diagnosis performance for different amounts of data, we divided the dataset obtained after fault injection into three datasets while maintaining data balance, which, from largest to smallest, were Dataset1 (Ds1), Dataset2 (Ds2), and Dataset3 (Ds3).Ds1 contained 12,768 samples, Ds2 contained 6720 samples, and Ds3 contained 3360 samples.The numbers of occurrences of the various fault types in each dataset are listed in Table 2. Finally, each synthetic fault dataset was divided into training, validation, and testing datasets in a ratio of 8:1:1. Experimental Results A series of two of experiments were conducted to validate the effectiveness and superiority of the proposed model. Experimental Results One type of experiment aims to explore the optimal network structure under different components, combinations, and module parameters in our proposed MAM-Net structure and to verify the advantages of each component module (2D-ResNet 34, ResNet with CBAM, multi-dimensional feature extraction based on ResNet with CBAM and Bi-LSTM, multi-task learning module) in the proposed model.The type of experiments is carried out through the following three comparisons: (1) comparing the performance of the 2D encoder with different network depths, dimensions, and attention modules; (2) comparing the effect of multi-dimensional feature extraction with that of single-dimensional feature extraction on the model recognition accuracy; (3) comparing the classification effect of multi-task learning with that of single-task learning. Experimental Results The other type of experiment aims to demonstrate the superiority of the proposed MAM-Net by conducting comparisons with existing gas sensor fault diagnosis methods on three fault diagnostic tasks. Experimental Results All experiments were performed on a computer (Intel Xeon E5-1603 V4 CPU and NVIDIA GeForce GTX 1080Ti GPU) on a PyTorch platform built with a Jupyter notebook.During the training of the model, the batch size and iteration epochs were set to 32 and 50, respectively.The test results were the averages of the best accuracies obtained after training the model five separate times on the training set. Two-Dimensional Encoder Performance Comparison To validate the advantages of the depth, dimension, and attention mechanism of ResNet used by the 2D encoder in the proposed model, we conducted the following experiments. Performance Comparison of ResNet with Different Depths and Dimensions In the field of machine vision, the recognition accuracy of a model can typically be improved by increasing the network depth [60].The recognition accuracies (Acc) of the ResNet with different depths (Dep) in the three classification tasks for Ds1, Ds2, and Ds3 are listed in Table 3. ResNet34 exhibits good classification performance for all three datasets.Although ResNet50 can perform the best on Ds1, which has a larger amount of data, its accuracy gradually decreases as the amount of data decreases and eventually falls below that of ResNet34.Due to the challenges in collecting substantial amounts of fault data in real-world situations, we selected ResNet34 as the main body of the 2D encoder.The best values for each experiment are in bold. Performance Comparison of ResNet with Different Depths and Dimensions Furthermore, ResNet, which is currently employed in sensor arrays, typically utilizes 1D or 2D convolutional kernels; the 1D convolutional kernel version replaced all the 3 × 3 convolutional kernels of the 2D version into a 3 × feature-dimension, and the pooling operation was transformed from 2D to 1D [61].In contrast, the average diagnostic accuracy of the 1D convolutional version was lower than that of the 2D version, as shown in Table 3. Performance Comparison of ResNet with Different Depths and Dimensions Therefore, feature extraction module formed by the 2D version of ResNet has stronger feature capturing capabilities. Performance Comparison of Different Attention Modules To discuss the advantages of using a CBAM in the proposed method, we compared the enhancement effects of different attentional modules on the 2D encoder feature learning ability in this experiment.The average recognition accuracies of ResNets with different attention mechanisms, including SENet [52], DRSN [29], and CBAM [37] for fault detection, fault identification, and fault localization on Ds1, Ds2, and Ds3, respectively, are listed in Table 4.The best values for each experiment are in bold. Performance Comparison of Different Attention Modules The results indicated that the combination of ResNet and CBAM performed the best in the classification tasks of fault detection and identification.Meanwhile, the ResNet with SENet and ResNet with DRSN only performed well in fault localization when the amount of data was large and did not maintain their advantages when the amount of data was small.However, the ResNet with CBAM achieved the highest classification accuracy for the three diagnostic tasks on Ds3, which had a small amount of data.Therefore, the adopted CBAM enhanced the 2D spatial feature extraction capability of the 2D encoder. Multi-Dimensional Feature Extraction vs. Single-Dimension Feature Extraction The advantages of the proposed multi-dimensional feature extraction method are discussed in this section.In this experiment, the multi-dimensional feature extraction method with the 2D and 1D encoders was trained.On three datasets, the average fault diagnosis accuracies of the 2D feature extraction consisting of Resnet and different attention modules, the 1D feature extraction based on Bi-LSTM, and the multi-dimensional extraction consisting of the 1D and 2D encoders were compared.The results are summarized in Table 4.The average classification accuracy for all three diagnostic tasks is improved by adding the Bi-LSTM to the ResNet and CBAM combination. Multi-Dimensional Feature Extraction vs. Single-Dimension Feature Extraction In terms of the average accuracy across the three datasets, the multi-dimensional feature extraction method outperforms the combination of ResNet and CBAM, which is the best-performing single-dimensional feature extraction method, by 0.04% and 0.02% in fault detection and identification, with accuracies of 99.64% and 99.62%, respectively.In fault localization, although the combination of ResNet and SENet performs well among the single-dimensional methods, it still lags behind the multi-dimensional methods by 0.06%.Additionally, it can be noticed that Bi-LSTM does not perform well on the three diagnostic tasks compared to other single-dimensional methods.However, the highest diagnostic accuracy was achieved when using Bi-LSTM as the 1D encoder and the combination of ResNet and CBAM as the 2D encoder for multi-dimensional feature extraction. Multi-Task Learning vs. Single-Task Learning This describes the verification of the effectiveness of the proposed multi-task learning structure.To demonstrate that the multi-task learning structure can enhance the classification accuracy of the proposed model on the three fault diagnosis tasks, a comparative experiment between multi-task and single-task learning was conducted.The average diagnostic accuracies of the proposed multi-task model and single-task learning models for fault detection, fault identification, and fault localization on Ds1, Ds2, and Ds3 are listed in Table 5.The single-task learning structure for each classification task in the experiments was identical to that of the corresponding branch in the multi-task learning structure.The best values for each experiment are in bold. Multi-Task Learning vs. Single-Task Learning It can be seen from Table 5 that multi-task learning enables the model to achieve outstanding classification accuracy in multiple diagnostic tasks simultaneously.Although multi-task learning does not perform as well as single-task learning in fault localization, it outperforms single-task learning in terms of fault detection and identification.This finding further demonstrates that multi-task learning can increase the accuracy in multiple classification tasks. Multi-Task Learning vs. Single-Task Learning By comparing the experimental results, the specific parameters of the proposed MAM-Net model were obtained; they are listed in Table 6.To further demonstrate the superiority of the proposed MAM-Net method, a comparative experiment was performed using the existing fault diagnosis methods.These existing methods include single-dimensional feature extraction, multi-dimensional feature extraction, single-task learning, and multi-task learning approaches.We adjusted certain parameters of these models to align their input-output with the experiments of this study and fine-tuned certain model parameters using insights gained from multiple experiments in order to enhance the comparability of each model.Considering that the amount of fault data is small in practice, Ds3 was used as the dataset to train the models in the experiments described in this section.The parameters or structures of each model were as follows. Multi-Task Learning vs. Single-Task Learning (1) MLP This model consisted of linear layers, and the ReLU activation function was added between layers to improve the generalization ability of this model [62].The structure of the MLP was as follows: {Input (75 × 14), linear (75 × 14, 512), linear (512, 256), linear (256, Class)}. Multi-Task Learning vs. Single-Task Learning (2) LeNet This model consisted of a combined stack of convolution and max pooling layers.The structure of LeNet was as follows: {Input (1,75,14), convolution (1,64,3), max pool (2, 2), convolution (64,128,3), max pool (2, 2), linear (1024, 512), linear (512, Class)} [28]. Multi-Task Learning vs. Single-Task Learning (3) DenseNet This model consisted of multiple dense blocks containing a CNN.The network could alleviate the gradient problem caused by the deepening of the network by considering the output of all of the previous layers as the input into a deeper layer.The parameters of DenseNet were as follows: {Input (1,75,14), init_channels = 64, growth rate = 2, blocks = [6,12,24,16], dropout = (0.5), linear (4352, 1024), linear (1024, 512), dropout (0.5), linear (512, Class)}. Multi-Task Learning vs. Single-Task Learning (4) RepVGG RepVGG was based on the VGG network and introduced a ResNet-like branching structure that improved the speed and accuracy of the network [39].The parameters of the model were as follows: {Input (1,75,14), blocks = [1, 2, 4, 14, 1], width multiplier = [1, 1, 1, 2.5], dropout = (0.5), linear (512 × 2.5, 256), dropout (0.5), linear (256, Class)}. Multi-Task Learning vs. Single-Task Learning (5) CNN CNN are commonly used as models in DL.In this study, the CNN structure consisted of a convolutional layer and maximum pooling layer, whose details were as follows: {Input (1,75,14), convolution (1, 64, 3, 1, 1), max pool (3, 2, 1), convolution (64, 128, 3, 1, 1), max pool (3, 2, 1), convolution (128, 256, 3, 1, 1), max pool (3, 2, 1), GAP (1, 1), linear (5120, 512), dropout (0.5), linear (512, Class)}. (6) Inception Inception is a network model that can capture more feature information by simultaneously using multiple convolutional kernels of different sizes for feature extraction from the data [22].In this study, the parameters of Inception were as follows: {Input (1,75,14), inception type = V2, dropout = (0.5), linear (1024, 512), dropout (0.5), linear (512, Class)}.(7) CNN-LSTM This type of model consists of a parallel network structure of CNN and LSTM models, using CNN and LSTM to extract temporal dimensional features simultaneously [37].In this study, the following structure was used: {the CNN had the same structure as above, LSTM (14,64), concatenate (256, 128), dropout (0.5), LSTM (64,128), linear (256 + 128, 128), dropout (0.5), linear (128, Class)}. (6) Inception (8) MFSMTP MFSMTP is a multi-task learning network that can extract features from data using different sizes of convolutional kernels to capture more feature information [32].The parameters of MFSMTP were as follows: {Input (1, 75, 14), convolution1 (5, 1, 2), convolution2 (3, 1, 1), convolution3 (1, 1, 0), linear (192, Class)}. (6) Inception (9) MTL-CNN MTL-CNN is a multi-task learning model that takes a traditional CNN as the main body of feature extraction.This approach enables the model to maintain both rapid diagnosis speed and high classification accuracy when addressing multiple diagnostic tasks [63].The structure of MTL-CNN was as follows: {Convolution (1, 64, 3, 1, 1), convolution (1, 64, 3, 1, 1), convolution (1, 64, 3, 1, 1), max pool (3, 2, 1), convolution (1, 64, 3, 1, 1), convolution (1, 64, 3, 1, 1), max pool (3, 2, 1), linear (228, 128), linear (128, class)}. (6) Inception The Precision, Recall, and F1 score were used to evaluate and compare the fault diagnosis performances of different models [64].The formulae for these evaluation metrics are as follows: (6) Inception where TP and FP refer to the numbers of samples correctly and incorrectly classified as positive, respectively, and TN and FN refer to the numbers of samples correctly and incorrectly classified as negative, respectively. Comparison of Fault Detection Performance In this experiment, we compared the three metrics of the proposed model with other methods in terms of fault detection.Table 7 lists the fault diagnosis performance of the different models after 50 training epochs.The best values of each metric are highlighted in bold.The number of epochs was set at 50 based on the observation that the proposed model and other comparative models have achieved stability in terms of loss and classification accuracy.The best values of each metric are in bold, ↑ represents the improvement achieved by the proposed model compared to the other models with the highest accuracy. Comparison of Fault Detection Performance The results show that the proposed model is superior the other models in all fault detection metrics.MAM-Net outperforms MSFMTP, which is the best performer among the other models, in terms of Precision, Recall, and F1 by 0.71%, 1.76%, and 1.25%, respectively.It is worth noting that although MTL-CNN, MSFMTP, and MAM-Net are all multi-task learning methods, the proposed model outperforms MTL-CNN in all three metrics by a margin of 5.33%, 3.64%, and 4.55%, respectively.This is because MTL-CNN can only extract features from a single dimension at a fixed scale.Although MSFMTP can utilize multi-scale extraction to obtain more feature information, its accuracy is still lower than the proposed model MAM-Net due to the limitation of its extraction dimension. Comparison of Fault Detection Performance To visually display the classification results, a confusion matrix was introduced as a visualization tool, as shown in Figure 9. Evidently, the proposed MAM-Net model can predict the fault states of the samples with minimal error.In contrast, the other models exhibit confusion between the fault and health states during fault detection, especially the MLP, which makes accurate fault state classification difficult. Comparison of Fault Identification Performance As shown in Table 7, for fault type identification, MAM-Net has a higher classification accuracy than the other models.DenseNet performed well in fault type identification; however, it was still outperformed by MAM-Net in each metric.In terms of Precision, MAM-Net performed 0.94% better than DenseNet.In terms of Recall and F1, the proposed method exceeded DenseNet by 1.09% and 1.03%, with values of 99.80% and 99.81%, respectively. Comparison of Fault Identification Performance For a clearer comparison of the classification results of the different methods, T-SNE was introduced downscale the high-dimensional feature maps extracted by the model to a 2D space, as shown in Figure 10.Evidently, the proposed method can easily classify and aggregate samples from different fault types.By contrast, MLP and LeNet performed poorly in distinguishing the fault classes.In the other methods, although models such as DenseNet, RepVGG, CNN, and MTL-CNN can cluster some fault types, there is still no clear boundary between certain fault types.Models such as Inception, CNN-LSTM, and MSFMTP are able to make a relatively clear distinction between each fault type by capturing multiple features simultaneously, but there are still some samples that are confused.7, CNN, LeNet, MSFMTP, and the proposed MAM-Net all perform well in fault localization.The highest classification accuracy is still achieved by MAM-Net. Figure 11 shows that the intra-class shrinkage of MLP, CNN, LeNet, and MTL-CNN is worse than the other methods.This finding indicates that several models with better classification results may exhibit decreases in accuracy as data complexity increases.However, the MAM-Net method proposed in this study can increase the inter-class distance well to distinguish each location and also shorten the intra-class distance effectively to aggregate samples with the same fault location.Fault data are typically difficult to collect when a fault diagnosis model is applied in practice, such that the number of samples within the training dataset is small.Therefore, the classification performances of each method on Ds3, which contained a small amount of data, were compared in the model validation experiments described in Section 5.4.The classification accuracies of deep learning models usually improve as the amount of data in the training set increases [65].Therefore, the advantages of the proposed MAM-Net model for the three diagnostic tasks when the amount of data increases were verified as described in this section.The settings of the experiments in this section are the same as those described in Section 5.4.1 for the experiments conducted on Ds3.The performances of each model on Ds1 and Ds2, two datasets containing more data than Ds3, are presented in Table 8. Comparison of Fault Identification Performance As shown in Table 8, the best performance of the proposed model is reflected in fault detection, identification, and localization, with accuracies of 98.39%, 99.46%, and 99.75%, respectively, when trained on Ds2 with a moderate amount of data.For Ds1, which has a large amount of data, the classification accuracy performances of the other models are close to that of MAM-Net but still lower in terms of overall performance.For example, MAM-Net has the highest accuracy of 99.99% for fault localization, and RepVGG achieves the same accuracy as the proposed model (99.92%) for fault identification.Although the proposed method lags behind Inception in fault detection, it still outperforms Inception in the other classification tasks.Therefore, the solution proposed in this study can achieve better performance with different amounts of data.The best values for each experiment are in bold, ↑ represents the improvement achieved by the proposed model compared to the other models with the highest accuracy; -represents no improvement. Diagnostic Performance of MAM-Net on Imbalanced Dataset To achieve accurate diagnostic predictions, balanced data are required to train deep neural networks.However, the collection of faulty samples in some cases is not easy.Therefore, the problem of imbalanced training data samples exists.Imbalanced data samples make training a model to achieve accurate sensor fault diagnosis relatively difficult.This section examines the fault diagnosis effectiveness of the proposed MAM-Net method for imbalanced samples.The dataset used here was the original dataset without balancing the number of samples at each gas concentration; that is, the number of fault samples was not the same for different gas concentrations.Table 9 lists the fault diagnosis accuracies of the models for the unbalanced dataset.From the table, it can be seen that the average accuracies of the proposed model for fault detection and localization are 99.74% and 99.90%, respectively.Compared to the highest accuracies obtained among the other methods, MAM-Net achieves accuracy improvements of 0.53% and 0.11% for fault detection and localization, respectively.For fault identification, the classification accuracy of the proposed model is 99.78%, which is only 0.06% below the highest accuracy.Therefore, MAM-Net still outperforms the other methods in terms of overall performance on the imbalanced dataset.The best values for each experiment are in bold, ↑ represents the improvement achieved by the proposed model compared to the other models with the highest accuracy, -represents no improvement. Generalization Performance of MAM-Net In the practical application of fault diagnosis models, in addition to the importance of fault diagnostic accuracy, the generalizability of the model (i.e., consistently excellent performance across different data sources) should also be considered.Therefore, to test the generalization of the proposed model on different datasets, dataset of gas mixtures collected by Fonollosa [66] was used for the experiments described in this section.The dataset was obtained from 16 MOX gas sensors exposed to the two gas mixtures for 12 h of continuous measurements.The two gas mixtures were ethylene and methane in air and ethylene and carbon monoxide in air. Generalization Performance of MAM-Net The experiments discussed in this section were started by using the same method to preprocess the data as described above, and the sample size obtained was 75 × 16 (where 75 denotes the length of the sampling period, and 16 denotes the number of sensors).Subsequently, fault injection was applied to generate the fault dataset and divide the obtained fault dataset into training, validation, and testing datasets in the same ratio.Finally, the generalization of the proposed MAM-Net method was verified by training each model on these datasets and comparing their accuracies on the three classification tasks.Table 10 shows the classification accuracies of each model in the three fault diagnosis tasks.The best values for each experiment are in bold, ↑ represents the improvement achieved by the proposed model compared to the other models with the highest accuracy, -represents no improvement. Generalization Performance of MAM-Net In Table 10, similar to the situation for the previous dataset, the proposed method exhibits the best overall performance in the three classification tasks.The accuracy of MAM-Net in fault identification reaches 98.70%, exceeding that of the CNN, which was the best among the other methods, by 1.08%.It also surpassed the CNN in fault localization performance by 0.12%.In fault detection, although not the best, the proposed approach achieves an accuracy only 0.09% away from the highest accuracy.Therefore, the proposed MAM-Net model provides good generalization and enables the application of gas sensor data in different situations for fault diagnosis. Real-Time Analysis of the Proposed Methods In practical implementations of fault diagnosis systems, beyond the essential criteria of accuracy, it is critical to take into account the model's diagnostic time for gas-based real-time fault detection.The prediction time of the model must be sufficiently short to meet the requirements of real-time diagnosis.We recorded the time (in seconds) taken by each method to perform prediction on a batch of test dataset to reflect the computational burden, as the computation time for a single sample is exceptionally short.The prediction model used was obtained through 50 epochs of training on Ds3.The recorded times are presented individually and summarized in Table 11.In the experiment, the carbon monoxide gas sensor dataset had a heating period of 25 s and a sampling rate of 0.333 s.The data cycle for fault diagnosis was based on the sensor heating cycle.For example, to accurately distinguish between different fault types within a sample period, such as distinguishing spike faults from noise faults, a heating cycle is necessary to obtain the characteristics of this fault.We record the time (in seconds) taken by each method to perform prediction on a batch of test data to reflect the computational burden, as the computation time for a single sample is exceptionally short.From Table 11, it can be observed that its diagnostic time (0.462554 s for a batch, i.e., 0.01445 s for one sample) is far less than the duration of a single sample cycle and a sampling rate of 0.333 s.Therefore, the proposed MAM-Net method can meet the real-time requirements of practical applications while achieving high diagnostic accuracy. Conclusions In this study, we developed a novel gas sensor array fault diagnosis method called MAM-Net based on multi-dimensional feature fusion, an attention mechanism, and multitask learning.The multi-dimensional feature fusion module can obtain sufficient and effective diagnostic feature information from sensor array data by integrating fault feature representations from different dimensions.With this module, the diagnostic performance of the model can be improved by providing better feature capture capabilities.The multi-task learning module developed in this study can simultaneously perform classification tasks for fault detection, identification, and localization.The module can integrate and supplement more diagnostic information through parameter sharing between multiple tasks to improve the fault diagnostic accuracy of the model further.The experimental results show that the MAM-Net method is significantly better than other methods in terms of classification metrics and result visualization for fault diagnosis with different amounts of data, different experimental settings, and balanced and unbalanced datasets. Conclusions In future work, considering the requirement of real-time fault diagnosis for various gas-based applications, we will focus on lightening the structure of the proposed model to shorten the diagnosis time and minimize the computational burden.Meanwhile, we will conduct further research on data reconstruction strategies for faulty sensors based on GAN methods. Figure 1 . Figure 1.Basic structure of CBAM. Figure 2 . Figure 2. Basic structure of LSTM. Figure 3 . Figure 3. Framework of the proposed method. Figure 4 . Figure 4. Schematic of the developed multi-dimensional feature fusion method.(a) Architecture of multi-dimensional feature fusion module.(b) Internal structure of the improved residual block in the 2D encoder in (a).(c) Internal structure of the Bi-LSTM in the 1D encoder in (a). Figure 5 . Figure 5. Structure of the multi-task learning module. Figure 6 . Figure 6.Experimental setup[56] for data collection of gas sensors. Figure 7 . Figure 7. Output curves from the 14 gas sensors (S 1 -S 14 ) for some samples with CO concentrations of (a) 20 ppm, (b) 17.78 ppm, (c) 15.56 ppm, (d) 11.11 ppm, (e) 8.89 ppm, (f) 6.67 ppm, (g) 4.44 ppm, and (h) 2.22 ppm. Figure 8 . Figure 8. Example comparisons between various types of faults and normal signals. Figure 9 . Figure 9. Confusion matrices of different fault detection methods. Figure 10 . Figure 10.T-SNE visualization for different fault identification methods.0 represents no fault, and 1, 2, 3, 4, and 5 represent break fault, bias fault, spike fault, noise fault, and gain fault, respectively.5.4.4.Comparison of Fault Localization Performance Fault location information also plays an important role in fault diagnosis.The data in Table 7 and T-SNE visualization results in Figure 11 emphasize the strength of the proposed framework in fault localization.As shown in Table7, CNN, LeNet, MSFMTP, and the proposed MAM-Net all perform well in fault localization.The highest classification accuracy is still achieved by MAM-Net.Figure11shows that the intra-class shrinkage of MLP, CNN, LeNet, and MTL-CNN is worse than the other methods.This finding indicates that several models with better classification results may exhibit decreases in accuracy as data complexity increases.However, the MAM-Net method proposed in this study can increase the inter-class distance well to distinguish each location and also shorten the intra-class distance effectively to aggregate samples with the same fault location. Figure 11 . Figure 11.T-SNE visualization results obtained using different methods fault localization, where 0 represents no sensor with a fault, and 1-14 represent the 14 sensors with faults. 1 . Diagnostic Performance of Different Methods on Different Amounts of Data Table 1 . Settings for each type of fault. Table 2 . Number of various types of faults and health signals in fault datasets.The "8" in the table represents the eight gas concentration cases. Table 3 . Acc of ResNet with different Dep and Dim. Table 4 . Diagnostic accuracies of different attentional modules under single-dimensional feature extraction methods and the diagnostic accuracy of the multi-dimensional feature extraction method. Table 5 . Diagnosis accuracies of single-and multi-task learning. Table 6 . Details of the proposed model. Table 7 . Diagnostic performance of each model. Table 8 . Diagnostic accuracies of each model on different amounts of data. Table 9 . Diagnostic accuracies of each model on the imbalanced dataset. Table 10 . [66]nostic accuracies of each method on the dataset from[66]. Table 11 . Diagnostic time for a batch of samples on different diagnostic tasks. Table 11 . Author Contributions: Conceptualization, P.H.; methodology, P.H., Q.W., H.C. and G.L.; software, P.H.; validation, P.H., Q.W. and H.C.; formal analysis, P.H. and Q.W.; investigation, P.H. and H.C.; resources, G.L. and Q.W.; data curation, P.H. and H.C.; writing-original draft preparation, P.H.; writing-review and editing, Q.W.; visualization, P.H.; supervision, Q.W.; project administration, G.L. and Q.W.; funding acquisition, G.L. and Q.W.All authors have read and agreed to the published version of the manuscript.

섹션 본문 106문단 · 60,901자

(제목 없음)

1With the development of gas sensor arrays and computational technology, machine olfactory systems have been widely used in environmental monitoring, medical diagnosis, and other fields.The reliable and stable operation of gas sensing systems depends heavily on the accuracy of the sensors outputs.Therefore, the realization of accurate gas sensor array fault diagnosis is essential to monitor the working status of sensor arrays and ensure the normal operation of the whole system.The existing methods extract features from a single dimension and require the separate training of models for multiple diagnosis tasks, which limits diagnostic accuracy and efficiency.To address these limitations, for this study, a novel fault diagnosis network based on multi-dimensional feature fusion, an attention mechanism, and multi-task learning, MAM-Net, was developed and applied to gas sensor arrays.First, feature fusion models were applied to extract deep and comprehensive features from the original data in multiple dimensions.A residual network equipped with convolutional block attention modules and a Bi-LSTM network were designed for two-dimensional and one-dimensional signals to capture spatial and temporal features simultaneously.Subsequently, a concatenation layer was constructed using feature stitching to integrate the fault details of different dimensions and avoid ignoring useful information.Finally, a multi-task learning module was designed for the parallel learning of the sensor fault diagnosis to effectively improve the diagnosis capability.The experimental results derived from using the proposed framework on gas sensor datasets across different amounts of data, balanced and unbalanced datasets, and different experimental settings show that the proposed framework outperforms the other available methods and demonstrates good recognition accuracy and robustness.

Introduction

2With the development of sensor technology, gas sensor arrays are playing an increasingly important role in machine olfaction applications such as environmental monitoring [1], gas quality detection [2], food quality control [3], and medical diagnosis [4].A machine olfactory system (e.g., an electronic nose) identifies gases by analyzing the data returned from a gas sensor array using pattern recognition methods.Metal-oxide semiconductor (MOX) gas sensors are widely used because of their low cost, high sensitivity, and fast response times.For example, Ref. [5] proposed an ultrasensitive gas sensor established on hollow tungsten trioxide-nickel oxide nanoflowers, which had a fast response time and outstanding gas sensitivity.A pattern recognition algorithm is an important part of electronic noses in analyzing gas characteristics, and this type of algorithm is often used to classify gas mixtures.Common methods include principal component analysis (PCA) [6], artificial neural networks (ANNs) [7], and convolutional neural networks (CNNs) [8].These methods are implemented on the basis of data from healthy sensors.A gas sensor array is the source of the machine olfactory system used to obtain measured gas/odor information, and its measurement quality significantly determines the overall performance of the system.

3However, the MOX gas sensor array inevitably suffers from external interference (corrosive gas influence, dust adhesion, temperature, and humidity changes) or self-failure (aging, poisoning, and damage to gas sensing materials) during operation.Once the sensor fails, the application of inaccurate measurements will lead to decreases in the accuracy and reliability of the classification results or even complete errors [9].Therefore, appropriate fault diagnosis algorithms must be employed to monitor the abnormal states of the gas sensor array (fault detection), identify fault types (fault identification), and locate faulty gas sensors (fault localization).

4With the advancement of automation and integration in modern industry, there has been an increasing demand for the reliability and safety of related equipment.Fault diagnosis and health management techniques have been used in various industrial applications in recent years, such as the physics-informed residual network (PIResNet) for rolling element bearing fault diagnostics [10], digital twin-driven intelligent assessment of gear surface degradation [11], and a novel vibration-based prognostic scheme for gear health management in the surface wear progression of the intelligent manufacturing system [12].All these methods can provide effective solutions for health management and the predictive maintenance of working systems in industrial processes.In addition, there has been a surge in research focused on monitoring the fault status of sensors commonly used in modern industry.These studies aim to enhance the reliability of measurement signals.Currently, sensor fault diagnosis is primarily based on data-driven methods [13].This approach can directly discover and analyze hidden information in the training data instead of building complex mathematical models to describe the fault characterization principle in advance.Machine learning (ML) and deep learning (DL) are the most frequently used data-driven methods for fault diagnosis.Traditional ML methods are widely utilized for early sensor fault diagnosis.Common methods include the k-nearest neighbor algorithm [14], support vector machine [15], PCA [16], and ANN [17].However, as the size and complexity of the processed samples increases, ML methods have difficulty determining the appropriate hyperparameters for feature extraction, which is a challenging task without sufficient prior knowledge.

5With improvements in computer-processing capabilities, DL-based fault diagnosis methods have emerged as alternatives to traditional ML methods.DL-based methods can automatically extract classification features from large-scale data, overcoming the limitations of traditional feature extraction [18,19].Therefore, deep learning is widely used to process large amounts of complex sensor data.Common DL-based approaches include CNN, long short-term memory (LSTM), and generative adversarial networks (GANs).To overcome the tediousness of ML in data preprocessing, many DL-based methods convert the original data into a two-dimensional (2D) image format suitable for CNN processing.In [20], a deep CNN-based diagnostic model was constructed for the fault classification of the sensors and actuators of robot joints.A CNN fault identification approach based on the time-frequency characteristics of UAV sensor signals was proposed in [21].Both methods improve recognition accuracy compared with traditional ML methods.With the development of CNNs, improved models have been applied in sensor fault diagnosis.Ref. [22] described a fault detection method for aeroengine sensors based on the Inception-CNN model.Compared with an ordinary CNN, this model can extract more sensor information at different scales to increase the diagnostic accuracy of fault state detection.LSTM is also an effective method for processing sensor data, as it is capable of extracting one-dimensional (1D) temporal dependencies directly from sequence data.Ref. [23] used an LSTM model for voltage sensor fault identification in battery energy storage systems in 1D temporal dimensions.A method based on a 1D CNN and LSTM was proposed for the fault identification and recovery of Hall sensors in [24].This method further extracts features from a temporal perspective and exhibits high diagnostic accuracy.GANs are commonly applied to generate samples similar to real samples through their adversarial structures, which usually consist of a generator and a discriminator [25].Additionally, GANs have also been employed in various fault diagnosis tasks due to their feature extraction capabilities.In [26], a fault detection model was proposed based on a one-dimensional residual GANomaly network, which effectively enhanced training efficiency and diagnostic accuracy.Ref. [27] developed a fault identification method based on Bi-LSTM, GAN, and autoencoder (AE).This method utilizes the reconstructed features obtained by GAN and AE to identify sensor faults with excellent performance.

6Several methods based on DL have also been proposed for gas sensor fault diagnosis.Sun et al. [28] employed an improved CNN and random forests to classify the fault types of gas sensors.In [29], the authors used transfer learning combined with LeNet-5 for gas sensor fault identification.A method that combines a CNN and deep convolutional GAN to address dataset imbalances in fault type classification was proposed in [30].These methods employed the basic CNN structure for feature extraction when classifying fault types in a sensor array comprising a limited number of gas sensors.

7Although the models proposed above have achieved good results, some shortcomings remain in dealing with increasingly high-dimensional complex data for gas sensor fault diagnosis.(1) These methods can only extract features from a single dimension and ignore potential features from other perspectives, which limits the feature extraction capabilities of such models in complex situations.(2) These models cannot selectively focus on or ignore features based on their level of contribution to the classification results, which may fail to capture key features and waste considerable amounts of computational resources.

8(3) These diagnostic methods are trained for only a single diagnostic task, which loses potential correlation features between samples, limiting the diagnostic performance and utilization of the extracted features and the need to perform multiple diagnosis tasks.

9The multi-feature fusion strategy is a solution for capturing the comprehensive features of samples across different scales [31][32][33].Three types of multi-feature fusion algorithms are commonly used nowadays.The first involves converting the original samples into frequency-domain signals, time-frequency diagrams, or amplitude-modulated-frequencymodulated components using techniques such as Fourier transform, wavelet transform, and empirical modal decomposition.Feature extraction and fusion are subsequently performed on these different forms of signals [34,35].However, this approach is limited in obtaining additional feature information when applied to the smoothed data from gas sensors, and it also increases the complexity of the entire process.The second approach involves utilizing different deep learning models to extract and fuse features from the same perspective.In [36], a fault prediction model based on a hybrid deep neural network model was proposed, and Qian et al. [37] developed a parallel deep learning framework based on multiple models for the abnormal prediction of data in industrial production.Both of these methods use a parallel structure consisting of a 1D CNN and LSTM to capture temporal features.However, this type of approach tends to ignore features that exist in other perspectives.The third approach involves fusing features from different perspectives or scales.CNNs with convolutional kernels of different sizes were used in [32,33] to extract multi-scale features simultaneously.In [38], LSTM and CNN were used to extract both the temporal and spatial features of the samples used.

10Although these methods improve the amount of information for feature extraction, they are prone to ignore some decisive feature details because they are unable to select features that actively contribute significantly to classification for learning.Reportedly, a combination of network models and attention mechanisms can effectively improve the feature extraction quality.In [39], the authors proposed a fault type classification strategy for aircraft attitude sensors using the RepVGG and SENet attention mechanisms.Ref. [40] developed an attention mechanism for deep residual shrinkage networks using a fault identification model.This mechanism can effectively improve the identification of fault features using a model in a signal with noise.Unfortunately, each of these methods [29][30][31][32][33] was only trained for a single task, which limits their recognition accuracy and efficiency.Multi-task learning is a paradigm in machine learning that can process multiple tasks simultaneously and improve the generalization performance and classification accuracy of a model [41].In [42], multi-task learning was applied to the fault type classification and fault level detection of wind turbine blades and obtained better results than single-task learning.Similarly, in another study, multi-task learning was used to diagnose bearing faults and proved capable of elucidating the type and size of each fault in parallel [43].These methods demonstrate the advantages and feasibility of multi-task learning for fault diagnosis.

11Above all, the existing methods for the fault diagnosis of gas sensors extract features from a single dimension, ignoring the potentially discriminative features in other dimensions.Additionally, the single-task learning methods for three diagnostic tasks require diagnostic models to be trained separately, which increases complexity and limits diagnostic accuracy.Therefore, in this paper, a novel network based on multi-dimensional feature fusion, attention mechanism, and multi-task learning (MAM-Net) for gas sensor array fault diagnosis is proposed.The main contributions of this paper are as follows:

12(1) A multi-dimensional feature fusion method integrating a residual network (ResNet) and Bi-LSTM is proposed.Deep and comprehensive features can be extracted by fusing the 2D spatial features and 1D temporal features of samples for the fault diagnosis of a gas sensor array.(2) A ResNet equipped with convolutional block attention module (CBAM) is proposed for the 2D feature extraction of gas sensor data to capture and refine important fault features more effectively, and the diagnostic accuracy of the model is further improved.(3) A multi-task learning module was designed for gas sensor fault detection, fault identification, and fault localization.This approach can fully utilize the extracted comprehensive features to perform the three tasks in unison.The diagnostic accuracy can be improved by parameter sharing and the mutual promotion of simultaneous training between related tasks.

13The remainder of this paper is structured as follows: In Section 2, the theoretical background for our proposed framework is described.Section 3 provides a systematic description of the proposed framework and its internal modules.Section 4 introduces the datasets used in our experiments.Section 5 presents the results and analysis.In Section 6, we discuss and analyze the performance of the proposed method in other cases.Finally, Section 7 states the conclusions of this study.

ResNet

14As an updated version of a traditional CNN, ResNet aims to avoid gradient disappearance and explosion as the depth of the neural network increases [44].A ResNet is generally built using several residual blocks with a mapping function designed as follows:

15where x is the residual block input, F(x) is the residual mapping, and H(x) is the residual block output.The constant mapping x connects the residual block input and output, which facilitates backpropagation of the loss function and the optimization of the model parameters [45].Due to the structure and advantages of ResNet, this network can easily fit various complex data in two dimensions and is highly effective for feature extraction during fault diagnosis.In [46], the authors used ResNet for the feature extraction of the wavelet coefficients of the original letter decomposition from 2D to identify wind turbine gearbox faults.Ref. [47] converted the original signal into an image using a Markov transfer field and subsequently applied ResNet to extract 2D features to achieve the classification of rolling bearing health conditions.Therefore, in this study, ResNet with an attention mechanism was designed as the 2D feature encoder for the proposed framework.

CBAM

16The CBAM is a lightweight attention module [48].It consists of a channel attention module (CAM) and a spatial attention module (SAM).Its structure is illustrated in Figure 1.Within the intermediate feature maps of a network, the CBAM can sequentially infer attention maps along the channel and spatial dimensions to obtain refined features [49].In the CAM, the intermediate feature map F as input is pooled by global maximum pooling and global average pooling (GAP) based on the channel.The resulting vectors are then sent to the fully connected (linear) layer separately for information sharing and are stitched together to obtain the channel attention map.Subsequently, the channel attention activated by the sigmoid function is multiplied times F to obtain the channel refinement feature map F .In the SAM, F is pooled by global maximum and average according to space, and the resulting 2D vectors are connected.A spatial attention map is then generated by convolving and activating the combined vectors.Finally, the spatial attention is multiplied times F to obtain the output feature map F of CBAM.This process is represented by the following equations:

17where F, F , and F represent the input feature map, feature map of the channel attention output, and feature map of the spatial attention output, respectively.Mc (F) is the out- put of the CAM, and Ms (F ) is the output of the SAM.⊗ denotes element-by-element multiplication.

18Due to the attention mechanism, CBAM can allocate weights to different feature maps, helping the model focus on positions with outstanding features and suppress the regions that contribute little to the results, which improves the recognition effectiveness of the feature extraction model.Ref. [50] employed CNN and CBAM to improve the accuracy for classifying rolling bearing fault types.In [51], the authors used CBAM and ResNet for fault detection in reciprocating compressors to enhance the model's representation of key features.Therefore, we introduced this module into ResNet in this study to improve gas sensor array fault diagnosis.

Bi-LSTM

19LSTM is a derivative of a recurrent neural network (RNN).It learns features by considering the order of sequential data, thereby overcoming the problems of gradient explosions and vanishing gradients in RNN by capturing long-distance dependencies [52,53].LSTM consists of three gate cells (forget, input, and output gates) and a memory cell (cell state), as shown in Figure 2. The cell state runs across all LSTM cells to transfer information over long distances.The input and forget gates decide whether to retain or discard information about the cell states, and the output gate generates the output vector Y i based on the cell state and input vector X i .This architecture enables it to maintain important features effectively during long-term processes [27].Bi-LSTM is an extension of LSTM.It comprises two LSTM that can simultaneously process time-series information in the forward and reverse directions.This approach effectively increases the amount of information available to the network [54] and enhances the understanding of fault features in the model [55].Therefore, we utilized Bi-LSTM as a 1D feature-encoding module in this study to complement the 2D features extracted by ResNet, thus enhancing the feature extraction capability of the model.

Proposed Method

20This section introduces the proposed method for gas sensor array fault diagnosis in detail, and its structure is illustrated in Figure 3.The sensor array is composed of the gas sensors S 1 -S N .The data matrix, which consists of the output value of each sensor during gas detection, is preprocessed to transform it into a 2D image (the input data of the proposed model).The outputs of this method are labels with multiple fault descriptions of the sensor array.The proposed MAM-Net comprises two main parts: a multi-dimensional feature fusion module and multi-task learning module.The multi-dimensional feature fusion module contains 1D and 2D encoders, which are used to obtain sufficient information from the training data to improve the accuracy of fault diagnosis.The multi-task learning module is utilized to conduct fault detection, fault identification, and fault localization and then outputs the status, type, and location of the fault simultaneously.The details of each module are as follows.

Multi-Dimensional Feature Fusion Module

21The proposed multi-dimensional feature fusion module consists of two parallel paths-1D and 2D encoders-and concatenate and linear layers, as shown in Figure 4a.The two encoders are utilized to encode fault features in the temporal and spatial dimensions in parallel.The concatenate and linear layers are employed to fuse the feature information from the two dimensions.In the 2D encoder, ResNet is used as the backbone network to extract the 2D spatial features of the faulty data.The network consists of a convolutional block, multiple improved residual blocks, and a GAP layer, as illustrated in Figure 4a.

22To satisfy the requirements of the multi-dimensional feature fusion module in the proposed method for the image format of the sensor array data, the original input data are converted into a 2D data structure, X ∈ R C×H×W , where C, H, and W correspond to the number of channels, height, and width of the image, respectively.H also represents the number of sensors, W denotes the period length of the sample, and C = 1.The input data X first proceed through a convolutional layer (kernel size = 3 × 3), batch normalization (BN) layer, ReLU activation function, and max pooling layer in the convolution block to obtain the basic feature map Y 1 ∈ R C 1 ×H 1 ×W 1 (C 1 , H 1 , and W 1 are the corresponding sizes after convolution).Subsequently, Y 1 is fed into multiple stacks of improved residual blocks to obtain additional fault characteristics.The improved residual block is formed by adding CBAM to the traditional residual block.The structure is shown in Figure 4b.In this residual block structure, the feature map is first processed using two convolutional layers, two BN layers, and one ReLU activation function layer for the overall features.Subsequently, the CBAM is employed to enhance the representation of effective features and suppress the interference of invalid features by changing the weight parameters of different feature information in the feature map.This approach enables the model to focus more on the locally important features of the data, such as the moment of the peak in the spike fault and the moment at which the return value approaches zero in the broken circuit fault.Thus, a feature map Y 2 ∈ R C 2 ×H 2 ×W 2 can be obtained after several improved residual blocks.Finally, GAP is used to summarize all fault feature information extracted by the 2D encoder.GAP can efficiently represent the classification information contained in each channel by averaging the H 2 × W 2 feature values in each channel (i.e., C 2 channels) of feature map Y 2 .Then, the vector formed by the obtained C 2 averages is employed as feature map Y 3 .

23The Bi-LSTM is the main body of the 1D encoder, as shown in Figure 4c, and it can extract fault features from sensor data in the temporal dimension.The channel dimension in X is removed by the squeeze layer to obtain feature map Y 4 ∈ R H×W (where H denotes the number of sensors and also represents the number of channels in 1D feature extraction).The network learns the time-sequence features in a manner similar to natural language processing.It considers the relationships among multiple sensor data points at each sampling point as the embedding of information for that moment.The relationships among different moments of information are used as features.Compared to the 2D encoder, which captures the spatial relationships between data in a sample as features, this network focuses on the backward and forward dependencies of time-series data as features.This approach overcomes the limitations of 2D feature extraction.For example, high similarities exist between the local spatial features of spike faults and noise faults, and one cannot distinguish the two types of faults well by only using a 2D encoder for feature extraction.However, the characteristics of these two fault types differ significantly from one another from a temporal perspective.Therefore, with the assistance of a 1D encoder, the model can perform well in distinguishing fault types.The temporal feature map Y 5 is obtained after Bi-LSTM processing.

24Finally, the model concatenates the 1D feature map Y 5 with the 2D feature map Y 3 along the feature dimension and passes it to a linear layer to integrate the information and obtain the final feature map Y 6 .This feature map can provide more adequate and effective fault feature information for subsequent multi-task learning models.

Multi-Task Learning Module

25As shown in Figure 5, the multi-task learning module consists of three different classifiers: a fault state classifier, a fault type classifier, and a fault location classifier.It obtains multi-dimensional feature maps from the multi-dimensional feature fusion module and passes them to different classifiers.Each classifier has the same structure with different parameter settings; each contains two dropout layers, two linear layers, and a ReLU activation function.The dropout layers are used to limit the number of participating training neurons to avoid overfitting.The linear layer can be utilized to establish linear functions to fit the relationship between sample labels and features by adjusting the weights.The ReLU activation function can enhance the generalization ability of each classifier by introducing nonlinear relationships between linear layers.Unlike single-task learning, multi-task learning can calculate the loss values of multiple classification tasks in a single training session and update the network parameters based on these loss values.This approach enables several related diagnostic tasks to share feature information, improving the diagnostic accuracy and generalizability of each classification task.

Fault Detection Classifier

26This classification model is designed to determine whether a sample is faulty and can categorize samples into two classes, namely, "normal" and "faulty", with corresponding labels of 0 and 1, respectively.Because this classification task is binary, the final linear layer of the classifier is connected to a sigmoid activation function to transform the model output into a range from 0 to 1.This approach enables the probability of a sample being "normal" to be calculated, where a probability of 0.5 is used as the threshold.Subsequently, binary cross-entropy is utilized as a loss function of fault detection to calculate the loss values Loss 1 based on the output values of the classifier and its corresponding labels.Finally, the network parameters are updated using the Adam optimizer.The loss function is defined as follows:

27where the batch size represents the number of samples in a single training epoch, y i represents the label of the ith sample, and p i is the probability that the result predicted by the model is the true label.

Fault Identification and Localization Classifier

28The fault type and location classifiers differ from the fault detection classifier in that they are both multi-classification classifiers.The fault identification classifier can classify the samples into N 1 types according to the fault type, such as no fault, broken circuit fault, spike fault, or noise fault.These fault types correspond to labels ranging from 0 to N 1 .For a gas sensor array consisting of N 2 sensors, the fault location, as the output of the fault localization classifier, can be labeled from 0 to N 2 , where 0 indicates that no fault has occurred in the array.

29To perform these multiple classification tasks, the classifier first normalizes the model output vector using the softmax activation function to obtain the vector ŷ.Values ranging from 0 to 1 within ŷ represent the probabilities of different classes, and the class corresponding to the maximum value is the prediction result of the model.Subsequently, the cross-entropy loss function is used to calculate the loss values between the model outputs ŷ and the true label y of the samples to update the parameters of the model.

30The loss values for fault identification and localization are calculated using the crossentropy loss functions Loss 2 and Loss 3 and can be mathematically defined as follows:

31where y ji represents the true value of the ith class for the jth sample in a batch; ŷji is the corresponding predicted value; and C represents the number of classes, which, in fault identification and localization, is N 1 and N 2 , respectively.

MAM-Net Model Training

32The training of the MAM-Net is a process of constantly optimizing the loss values corresponding to the three classifiers.First, the loss values Loss 1 , Loss 2 , and Loss 3 are calculated based on the multiple fault labels of the input samples with the predictions of the model.Subsequently, a backpropagation (BP) algorithm is used to calculate the gradient from the output layer to the input layer based on three sequential loss values.Finally, the Adam optimizer is employed to update the parameters of the model based on the gradient information calculated in the model to minimize the loss function.Due to the application of the multi-task learning method, Adam can update the model based on three types of gradient information simultaneously during training.This method realizes parameter sharing and cross-task learning across three tasks.

Dataset Description

33A carbon monoxide gas sensor dataset collected by Javier Burgués et al. [56,57] was used in the experiments.This dataset was obtained from 14 temperature-modulated MOX gas sensors, including 7 SB-500-12 units from Nissha FIS and 7 TGS3870-A04 units from Figaro Engineering.The experimental setup for the data collection of gas sensors is shown in Figure 6.The dataset was obtained by exposing the sensor array to mixtures of carbon monoxide and humid synthetic air in a gas chamber.During the experiment, the heating unit inside the sensor was voltage-modulated with 20 s and 25 s interval cycles, as recommended by the manufacturer.The entire measurement process took 3 weeks.[56] for data collection of gas sensors.

34To ensure that the data format was consistent, we used samples with the same period length and stable gas concentration as those used in the training data through data prepro-cessing.The final sample size obtained was 75 × 14 (where 75 denotes the period length and 14 represents the number of sensors).Figure 7 shows the output curves of the 14 gas sensors at different gas concentrations for some of the samples.To achieve accurate fault diagnosis predictions, balanced data should be trained using deep neural networks [30].Therefore, in this study, the number of samples in the preprocessed dataset was adjusted to ensure that the amount of data for each sensor at various concentrations was consistent.The number of samples for each gas concentration was adjusted to 266 (14 × 19, where 14 represents the number of sensors and 19 represents the number of samples allocated to each sensor at each concentration).The diagnosis performance in the case of imbalanced data is discussed in Section 6.

Fault Injection

35Fault injection is a suitable method of testing the validity of a diagnostic model.The fault injection method can be utilized to test the efficacy of a model by adding fault features to sensor measurements to simulate the actual fault data.Subsequently, the fault occurrence time and fault intensity can be randomly changed via fault injection to generate a more representative fault dataset and test the generalization ability of the model [58].

36In the experiments, we considered five types of sensor faults based on the existing studies on sensor fault characteristics: broken circuit, bias, spike, noise, and gain faults [19,59].The characteristics of each fault type can be described as follows:

37•

38Broken circuit fault: The value returned by the gas sensor drops to zero and stops changing because of a circuit break or short circuit in the system.

•

39Bias fault: The output value is stabilized around a fixed value due to the reactionsensitive unit of the semiconductor gas sensor with the heating wire off.

40Spike fault: The output value appears as a pulse value because of an abnormal voltage spike pulse in the sensor circuit.

41Noise fault: The output values appear irregular and strongly disturbed because of external disturbances.

42Gain fault: The output value has a constant ratio to the ideal value because of internal circuit issues.

43The relationship between the original health data x(t) and fault data y(t) after the fault injection is summarized as follows:

44where K and B(t) are parameters for which the settings for each fault type are listed in Table 1.Examples of the corresponding data curves after fault injection into the health dataset and normal signals are shown in Figure 8.To compare the fault diagnosis performance for different amounts of data, we divided the dataset obtained after fault injection into three datasets while maintaining data balance, which, from largest to smallest, were Dataset1 (Ds1), Dataset2 (Ds2), and Dataset3 (Ds3).Ds1 contained 12,768 samples, Ds2 contained 6720 samples, and Ds3 contained 3360 samples.The numbers of occurrences of the various fault types in each dataset are listed in Table 2. Finally, each synthetic fault dataset was divided into training, validation, and testing datasets in a ratio of 8:1:1.

Experimental Results

45A series of two of experiments were conducted to validate the effectiveness and superiority of the proposed model.

46One type of experiment aims to explore the optimal network structure under different components, combinations, and module parameters in our proposed MAM-Net structure and to verify the advantages of each component module (2D-ResNet 34, ResNet with CBAM, multi-dimensional feature extraction based on ResNet with CBAM and Bi-LSTM, multi-task learning module) in the proposed model.The type of experiments is carried out through the following three comparisons: (1) comparing the performance of the 2D encoder with different network depths, dimensions, and attention modules; (2) comparing the effect of multi-dimensional feature extraction with that of single-dimensional feature extraction on the model recognition accuracy; (3) comparing the classification effect of multi-task learning with that of single-task learning.

47The other type of experiment aims to demonstrate the superiority of the proposed MAM-Net by conducting comparisons with existing gas sensor fault diagnosis methods on three fault diagnostic tasks.

48All experiments were performed on a computer (Intel Xeon E5-1603 V4 CPU and NVIDIA GeForce GTX 1080Ti GPU) on a PyTorch platform built with a Jupyter notebook.During the training of the model, the batch size and iteration epochs were set to 32 and 50, respectively.The test results were the averages of the best accuracies obtained after training the model five separate times on the training set.

Two-Dimensional Encoder Performance Comparison

49To validate the advantages of the depth, dimension, and attention mechanism of ResNet used by the 2D encoder in the proposed model, we conducted the following experiments.

Performance Comparison of ResNet with Different Depths and Dimensions

50In the field of machine vision, the recognition accuracy of a model can typically be improved by increasing the network depth [60].The recognition accuracies (Acc) of the ResNet with different depths (Dep) in the three classification tasks for Ds1, Ds2, and Ds3 are listed in Table 3. ResNet34 exhibits good classification performance for all three datasets.Although ResNet50 can perform the best on Ds1, which has a larger amount of data, its accuracy gradually decreases as the amount of data decreases and eventually falls below that of ResNet34.Due to the challenges in collecting substantial amounts of fault data in real-world situations, we selected ResNet34 as the main body of the 2D encoder.The best values for each experiment are in bold.

51Furthermore, ResNet, which is currently employed in sensor arrays, typically utilizes 1D or 2D convolutional kernels; the 1D convolutional kernel version replaced all the 3 × 3 convolutional kernels of the 2D version into a 3 × feature-dimension, and the pooling operation was transformed from 2D to 1D [61].In contrast, the average diagnostic accuracy of the 1D convolutional version was lower than that of the 2D version, as shown in Table 3.

52Therefore, feature extraction module formed by the 2D version of ResNet has stronger feature capturing capabilities.

Performance Comparison of Different Attention Modules

53To discuss the advantages of using a CBAM in the proposed method, we compared the enhancement effects of different attentional modules on the 2D encoder feature learning ability in this experiment.The average recognition accuracies of ResNets with different attention mechanisms, including SENet [52], DRSN [29], and CBAM [37] for fault detection, fault identification, and fault localization on Ds1, Ds2, and Ds3, respectively, are listed in Table 4.The best values for each experiment are in bold.

54The results indicated that the combination of ResNet and CBAM performed the best in the classification tasks of fault detection and identification.Meanwhile, the ResNet with SENet and ResNet with DRSN only performed well in fault localization when the amount of data was large and did not maintain their advantages when the amount of data was small.However, the ResNet with CBAM achieved the highest classification accuracy for the three diagnostic tasks on Ds3, which had a small amount of data.Therefore, the adopted CBAM enhanced the 2D spatial feature extraction capability of the 2D encoder.

Multi-Dimensional Feature Extraction vs. Single-Dimension Feature Extraction

55The advantages of the proposed multi-dimensional feature extraction method are discussed in this section.In this experiment, the multi-dimensional feature extraction method with the 2D and 1D encoders was trained.On three datasets, the average fault diagnosis accuracies of the 2D feature extraction consisting of Resnet and different attention modules, the 1D feature extraction based on Bi-LSTM, and the multi-dimensional extraction consisting of the 1D and 2D encoders were compared.The results are summarized in Table 4.The average classification accuracy for all three diagnostic tasks is improved by adding the Bi-LSTM to the ResNet and CBAM combination.

56In terms of the average accuracy across the three datasets, the multi-dimensional feature extraction method outperforms the combination of ResNet and CBAM, which is the best-performing single-dimensional feature extraction method, by 0.04% and 0.02% in fault detection and identification, with accuracies of 99.64% and 99.62%, respectively.In fault localization, although the combination of ResNet and SENet performs well among the single-dimensional methods, it still lags behind the multi-dimensional methods by 0.06%.Additionally, it can be noticed that Bi-LSTM does not perform well on the three diagnostic tasks compared to other single-dimensional methods.However, the highest diagnostic accuracy was achieved when using Bi-LSTM as the 1D encoder and the combination of ResNet and CBAM as the 2D encoder for multi-dimensional feature extraction.

Multi-Task Learning vs. Single-Task Learning

57This describes the verification of the effectiveness of the proposed multi-task learning structure.To demonstrate that the multi-task learning structure can enhance the classification accuracy of the proposed model on the three fault diagnosis tasks, a comparative experiment between multi-task and single-task learning was conducted.The average diagnostic accuracies of the proposed multi-task model and single-task learning models for fault detection, fault identification, and fault localization on Ds1, Ds2, and Ds3 are listed in Table 5.The single-task learning structure for each classification task in the experiments was identical to that of the corresponding branch in the multi-task learning structure.The best values for each experiment are in bold.

58It can be seen from Table 5 that multi-task learning enables the model to achieve outstanding classification accuracy in multiple diagnostic tasks simultaneously.Although multi-task learning does not perform as well as single-task learning in fault localization, it outperforms single-task learning in terms of fault detection and identification.This finding further demonstrates that multi-task learning can increase the accuracy in multiple classification tasks.

59By comparing the experimental results, the specific parameters of the proposed MAM-Net model were obtained; they are listed in Table 6.To further demonstrate the superiority of the proposed MAM-Net method, a comparative experiment was performed using the existing fault diagnosis methods.These existing methods include single-dimensional feature extraction, multi-dimensional feature extraction, single-task learning, and multi-task learning approaches.We adjusted certain parameters of these models to align their input-output with the experiments of this study and fine-tuned certain model parameters using insights gained from multiple experiments in order to enhance the comparability of each model.Considering that the amount of fault data is small in practice, Ds3 was used as the dataset to train the models in the experiments described in this section.The parameters or structures of each model were as follows.

60(1) MLP This model consisted of linear layers, and the ReLU activation function was added between layers to improve the generalization ability of this model [62].The structure of the MLP was as follows: {Input (75 × 14), linear (75 × 14, 512), linear (512, 256), linear (256, Class)}.

61(2) LeNet This model consisted of a combined stack of convolution and max pooling layers.The structure of LeNet was as follows: {Input (1,75,14), convolution (1,64,3), max pool (2, 2), convolution (64,128,3), max pool (2, 2), linear (1024, 512), linear (512, Class)} [28].

62(3) DenseNet This model consisted of multiple dense blocks containing a CNN.The network could alleviate the gradient problem caused by the deepening of the network by considering the output of all of the previous layers as the input into a deeper layer.The parameters of DenseNet were as follows: {Input (1,75,14), init_channels = 64, growth rate = 2, blocks = [6,12,24,16], dropout = (0.5), linear (4352, 1024), linear (1024, 512), dropout (0.5), linear (512, Class)}.

63(4) RepVGG RepVGG was based on the VGG network and introduced a ResNet-like branching structure that improved the speed and accuracy of the network [39].The parameters of the model were as follows: {Input (1,75,14), blocks = [1, 2, 4, 14, 1], width multiplier = [1, 1, 1, 2.5], dropout = (0.5), linear (512 × 2.5, 256), dropout (0.5), linear (256, Class)}.

64(5) CNN CNN are commonly used as models in DL.In this study, the CNN structure consisted of a convolutional layer and maximum pooling layer, whose details were as follows: {Input (1,75,14), convolution (1, 64, 3, 1, 1), max pool (3, 2, 1), convolution (64, 128, 3, 1, 1), max pool (3, 2, 1), convolution (128, 256, 3, 1, 1), max pool (3, 2, 1), GAP (1, 1), linear (5120, 512), dropout (0.5), linear (512, Class)}.

(6) Inception

65Inception is a network model that can capture more feature information by simultaneously using multiple convolutional kernels of different sizes for feature extraction from the data [22].In this study, the parameters of Inception were as follows: {Input (1,75,14), inception type = V2, dropout = (0.5), linear (1024, 512), dropout (0.5), linear (512, Class)}.(7) CNN-LSTM This type of model consists of a parallel network structure of CNN and LSTM models, using CNN and LSTM to extract temporal dimensional features simultaneously [37].In this study, the following structure was used: {the CNN had the same structure as above, LSTM (14,64), concatenate (256, 128), dropout (0.5), LSTM (64,128), linear (256 + 128, 128), dropout (0.5), linear (128, Class)}.

66(8) MFSMTP MFSMTP is a multi-task learning network that can extract features from data using different sizes of convolutional kernels to capture more feature information [32].The parameters of MFSMTP were as follows: {Input (1, 75, 14), convolution1 (5, 1, 2), convolution2 (3, 1, 1), convolution3 (1, 1, 0), linear (192, Class)}.

67(9) MTL-CNN MTL-CNN is a multi-task learning model that takes a traditional CNN as the main body of feature extraction.This approach enables the model to maintain both rapid diagnosis speed and high classification accuracy when addressing multiple diagnostic tasks [63].The structure of MTL-CNN was as follows: {Convolution (1, 64, 3, 1, 1), convolution (1, 64, 3, 1, 1), convolution (1, 64, 3, 1, 1), max pool (3, 2, 1), convolution (1, 64, 3, 1, 1), convolution (1, 64, 3, 1, 1), max pool (3, 2, 1), linear (228, 128), linear (128, class)}.

68The Precision, Recall, and F1 score were used to evaluate and compare the fault diagnosis performances of different models [64].The formulae for these evaluation metrics are as follows:

69where TP and FP refer to the numbers of samples correctly and incorrectly classified as positive, respectively, and TN and FN refer to the numbers of samples correctly and incorrectly classified as negative, respectively.

Comparison of Fault Detection Performance

70In this experiment, we compared the three metrics of the proposed model with other methods in terms of fault detection.Table 7 lists the fault diagnosis performance of the different models after 50 training epochs.The best values of each metric are highlighted in bold.The number of epochs was set at 50 based on the observation that the proposed model and other comparative models have achieved stability in terms of loss and classification accuracy.The best values of each metric are in bold, ↑ represents the improvement achieved by the proposed model compared to the other models with the highest accuracy.

71The results show that the proposed model is superior the other models in all fault detection metrics.MAM-Net outperforms MSFMTP, which is the best performer among the other models, in terms of Precision, Recall, and F1 by 0.71%, 1.76%, and 1.25%, respectively.It is worth noting that although MTL-CNN, MSFMTP, and MAM-Net are all multi-task learning methods, the proposed model outperforms MTL-CNN in all three metrics by a margin of 5.33%, 3.64%, and 4.55%, respectively.This is because MTL-CNN can only extract features from a single dimension at a fixed scale.Although MSFMTP can utilize multi-scale extraction to obtain more feature information, its accuracy is still lower than the proposed model MAM-Net due to the limitation of its extraction dimension.

72To visually display the classification results, a confusion matrix was introduced as a visualization tool, as shown in Figure 9. Evidently, the proposed MAM-Net model can predict the fault states of the samples with minimal error.In contrast, the other models exhibit confusion between the fault and health states during fault detection, especially the MLP, which makes accurate fault state classification difficult.

Comparison of Fault Identification Performance

73As shown in Table 7, for fault type identification, MAM-Net has a higher classification accuracy than the other models.DenseNet performed well in fault type identification; however, it was still outperformed by MAM-Net in each metric.In terms of Precision, MAM-Net performed 0.94% better than DenseNet.In terms of Recall and F1, the proposed method exceeded DenseNet by 1.09% and 1.03%, with values of 99.80% and 99.81%, respectively.

74For a clearer comparison of the classification results of the different methods, T-SNE was introduced downscale the high-dimensional feature maps extracted by the model to a 2D space, as shown in Figure 10.Evidently, the proposed method can easily classify and aggregate samples from different fault types.By contrast, MLP and LeNet performed poorly in distinguishing the fault classes.In the other methods, although models such as DenseNet, RepVGG, CNN, and MTL-CNN can cluster some fault types, there is still no clear boundary between certain fault types.Models such as Inception, CNN-LSTM, and MSFMTP are able to make a relatively clear distinction between each fault type by capturing multiple features simultaneously, but there are still some samples that are confused.7, CNN, LeNet, MSFMTP, and the proposed MAM-Net all perform well in fault localization.The highest classification accuracy is still achieved by MAM-Net. Figure 11 shows that the intra-class shrinkage of MLP, CNN, LeNet, and MTL-CNN is worse than the other methods.This finding indicates that several models with better classification results may exhibit decreases in accuracy as data complexity increases.However, the MAM-Net method proposed in this study can increase the inter-class distance well to distinguish each location and also shorten the intra-class distance effectively to aggregate samples with the same fault location.Fault data are typically difficult to collect when a fault diagnosis model is applied in practice, such that the number of samples within the training dataset is small.Therefore, the classification performances of each method on Ds3, which contained a small amount of data, were compared in the model validation experiments described in Section 5.4.The classification accuracies of deep learning models usually improve as the amount of data in the training set increases [65].Therefore, the advantages of the proposed MAM-Net model for the three diagnostic tasks when the amount of data increases were verified as described in this section.The settings of the experiments in this section are the same as those described in Section 5.4.1 for the experiments conducted on Ds3.The performances of each model on Ds1 and Ds2, two datasets containing more data than Ds3, are presented in Table 8.

75As shown in Table 8, the best performance of the proposed model is reflected in fault detection, identification, and localization, with accuracies of 98.39%, 99.46%, and 99.75%, respectively, when trained on Ds2 with a moderate amount of data.For Ds1, which has a large amount of data, the classification accuracy performances of the other models are close to that of MAM-Net but still lower in terms of overall performance.For example, MAM-Net has the highest accuracy of 99.99% for fault localization, and RepVGG achieves the same accuracy as the proposed model (99.92%) for fault identification.Although the proposed method lags behind Inception in fault detection, it still outperforms Inception in the other classification tasks.Therefore, the solution proposed in this study can achieve better performance with different amounts of data.The best values for each experiment are in bold, ↑ represents the improvement achieved by the proposed model compared to the other models with the highest accuracy; -represents no improvement.

Diagnostic Performance of MAM-Net on Imbalanced Dataset

76To achieve accurate diagnostic predictions, balanced data are required to train deep neural networks.However, the collection of faulty samples in some cases is not easy.Therefore, the problem of imbalanced training data samples exists.Imbalanced data samples make training a model to achieve accurate sensor fault diagnosis relatively difficult.This section examines the fault diagnosis effectiveness of the proposed MAM-Net method for imbalanced samples.The dataset used here was the original dataset without balancing the number of samples at each gas concentration; that is, the number of fault samples was not the same for different gas concentrations.Table 9 lists the fault diagnosis accuracies of the models for the unbalanced dataset.From the table, it can be seen that the average accuracies of the proposed model for fault detection and localization are 99.74% and 99.90%, respectively.Compared to the highest accuracies obtained among the other methods, MAM-Net achieves accuracy improvements of 0.53% and 0.11% for fault detection and localization, respectively.For fault identification, the classification accuracy of the proposed model is 99.78%, which is only 0.06% below the highest accuracy.Therefore, MAM-Net still outperforms the other methods in terms of overall performance on the imbalanced dataset.The best values for each experiment are in bold, ↑ represents the improvement achieved by the proposed model compared to the other models with the highest accuracy, -represents no improvement.

Generalization Performance of MAM-Net

77In the practical application of fault diagnosis models, in addition to the importance of fault diagnostic accuracy, the generalizability of the model (i.e., consistently excellent performance across different data sources) should also be considered.Therefore, to test the generalization of the proposed model on different datasets, dataset of gas mixtures collected by Fonollosa [66] was used for the experiments described in this section.The dataset was obtained from 16 MOX gas sensors exposed to the two gas mixtures for 12 h of continuous measurements.The two gas mixtures were ethylene and methane in air and ethylene and carbon monoxide in air.

78The experiments discussed in this section were started by using the same method to preprocess the data as described above, and the sample size obtained was 75 × 16 (where 75 denotes the length of the sampling period, and 16 denotes the number of sensors).Subsequently, fault injection was applied to generate the fault dataset and divide the obtained fault dataset into training, validation, and testing datasets in the same ratio.Finally, the generalization of the proposed MAM-Net method was verified by training each model on these datasets and comparing their accuracies on the three classification tasks.Table 10 shows the classification accuracies of each model in the three fault diagnosis tasks.The best values for each experiment are in bold, ↑ represents the improvement achieved by the proposed model compared to the other models with the highest accuracy, -represents no improvement.

79In Table 10, similar to the situation for the previous dataset, the proposed method exhibits the best overall performance in the three classification tasks.The accuracy of MAM-Net in fault identification reaches 98.70%, exceeding that of the CNN, which was the best among the other methods, by 1.08%.It also surpassed the CNN in fault localization performance by 0.12%.In fault detection, although not the best, the proposed approach achieves an accuracy only 0.09% away from the highest accuracy.Therefore, the proposed MAM-Net model provides good generalization and enables the application of gas sensor data in different situations for fault diagnosis.

Real-Time Analysis of the Proposed Methods

80In practical implementations of fault diagnosis systems, beyond the essential criteria of accuracy, it is critical to take into account the model's diagnostic time for gas-based real-time fault detection.The prediction time of the model must be sufficiently short to meet the requirements of real-time diagnosis.We recorded the time (in seconds) taken by each method to perform prediction on a batch of test dataset to reflect the computational burden, as the computation time for a single sample is exceptionally short.The prediction model used was obtained through 50 epochs of training on Ds3.The recorded times are presented individually and summarized in Table 11.In the experiment, the carbon monoxide gas sensor dataset had a heating period of 25 s and a sampling rate of 0.333 s.The data cycle for fault diagnosis was based on the sensor heating cycle.For example, to accurately distinguish between different fault types within a sample period, such as distinguishing spike faults from noise faults, a heating cycle is necessary to obtain the characteristics of this fault.We record the time (in seconds) taken by each method to perform prediction on a batch of test data to reflect the computational burden, as the computation time for a single sample is exceptionally short.From Table 11, it can be observed that its diagnostic time (0.462554 s for a batch, i.e., 0.01445 s for one sample) is far less than the duration of a single sample cycle and a sampling rate of 0.333 s.Therefore, the proposed MAM-Net method can meet the real-time requirements of practical applications while achieving high diagnostic accuracy.

Conclusions

81In this study, we developed a novel gas sensor array fault diagnosis method called MAM-Net based on multi-dimensional feature fusion, an attention mechanism, and multitask learning.The multi-dimensional feature fusion module can obtain sufficient and effective diagnostic feature information from sensor array data by integrating fault feature representations from different dimensions.With this module, the diagnostic performance of the model can be improved by providing better feature capture capabilities.The multi-task learning module developed in this study can simultaneously perform classification tasks for fault detection, identification, and localization.The module can integrate and supplement more diagnostic information through parameter sharing between multiple tasks to improve the fault diagnostic accuracy of the model further.The experimental results show that the MAM-Net method is significantly better than other methods in terms of classification metrics and result visualization for fault diagnosis with different amounts of data, different experimental settings, and balanced and unbalanced datasets.

82In future work, considering the requirement of real-time fault diagnosis for various gas-based applications, we will focus on lightening the structure of the proposed model to shorten the diagnosis time and minimize the computational burden.Meanwhile, we will conduct further research on data reconstruction strategies for faulty sensors based on GAN methods.

Figure 1 .

83Figure 1.Basic structure of CBAM.

Figure 2 .

84Figure 2. Basic structure of LSTM.

Figure 3 .

85Figure 3. Framework of the proposed method.

Figure 4 .

86Figure 4. Schematic of the developed multi-dimensional feature fusion method.(a) Architecture of multi-dimensional feature fusion module.(b) Internal structure of the improved residual block in the 2D encoder in (a).(c) Internal structure of the Bi-LSTM in the 1D encoder in (a).

Figure 5 .

87Figure 5. Structure of the multi-task learning module.

Figure 6 .

88Figure 6.Experimental setup[56] for data collection of gas sensors.

Figure 7 .

89Figure 7. Output curves from the 14 gas sensors (S 1 -S 14 ) for some samples with CO concentrations of (a) 20 ppm, (b) 17.78 ppm, (c) 15.56 ppm, (d) 11.11 ppm, (e) 8.89 ppm, (f) 6.67 ppm, (g) 4.44 ppm, and (h) 2.22 ppm.

Figure 8 .

90Figure 8. Example comparisons between various types of faults and normal signals.

Figure 9 .

91Figure 9. Confusion matrices of different fault detection methods.

Figure 10 .

92Figure 10.T-SNE visualization for different fault identification methods.0 represents no fault, and 1, 2, 3, 4, and 5 represent break fault, bias fault, spike fault, noise fault, and gain fault, respectively.5.4.4.Comparison of Fault Localization Performance Fault location information also plays an important role in fault diagnosis.The data in Table 7 and T-SNE visualization results in Figure 11 emphasize the strength of the proposed framework in fault localization.As shown in Table7, CNN, LeNet, MSFMTP, and the proposed MAM-Net all perform well in fault localization.The highest classification accuracy is still achieved by MAM-Net.Figure11shows that the intra-class shrinkage of MLP, CNN, LeNet, and MTL-CNN is worse than the other methods.This finding indicates that several models with better classification results may exhibit decreases in accuracy as data complexity increases.However, the MAM-Net method proposed in this study can increase the inter-class distance well to distinguish each location and also shorten the intra-class distance effectively to aggregate samples with the same fault location.

Figure 11 .

93Figure 11.T-SNE visualization results obtained using different methods fault localization, where 0 represents no sensor with a fault, and 1-14 represent the 14 sensors with faults.

1 .

94Diagnostic Performance of Different Methods on Different Amounts of Data

Table 1 .

95Settings for each type of fault.

Table 2 .

96Number of various types of faults and health signals in fault datasets.The "8" in the table represents the eight gas concentration cases.

Table 3 .

97Acc of ResNet with different Dep and Dim.

Table 4 .

98Diagnostic accuracies of different attentional modules under single-dimensional feature extraction methods and the diagnostic accuracy of the multi-dimensional feature extraction method.

Table 5 .

99Diagnosis accuracies of single-and multi-task learning.

Table 6 .

100Details of the proposed model.

Table 7 .

101Diagnostic performance of each model.

Table 8 .

102Diagnostic accuracies of each model on different amounts of data.

Table 9 .

103Diagnostic accuracies of each model on the imbalanced dataset.

Table 10 .

104[66]nostic accuracies of each method on the dataset from[66].

Table 11 .

105Diagnostic time for a batch of samples on different diagnostic tasks.

106Author Contributions: Conceptualization, P.H.; methodology, P.H., Q.W., H.C. and G.L.; software, P.H.; validation, P.H., Q.W. and H.C.; formal analysis, P.H. and Q.W.; investigation, P.H. and H.C.; resources, G.L. and Q.W.; data curation, P.H. and H.C.; writing-original draft preparation, P.H.; writing-review and editing, Q.W.; visualization, P.H.; supervision, Q.W.; project administration, G.L. and Q.W.; funding acquisition, G.L. and Q.W.All authors have read and agreed to the published version of the manuscript.

참고문헌 64건

  1. Reservoir computing compensates slow response of chemosensor arrays exposed to fast varying gas concentrations in continuous monitoring Sensors and Actuators B Chemical · Elsevier BV · 2015 10.1016/j.snb.2015.03.028
  2. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  3. Fault Detection Using the Clustering-kNN Rule for Gas Sensor Arrays Sensors · Multidisciplinary Digital Publishing Institute · 2016 10.3390/s16122069
  4. Learning face recognition from limited training data using deep neural networks 2016 10.1109/icpr.2016.7899840
  5. Monitoring Real-Time Urban Carbon Monoxide (CO) Emissions Using Wireless Sensor Networks Smart innovation, systems and technologies · Springer Nature · 2017 10.1007/978-3-319-63645-0_32
  6. Sensor fault diagnosis of aero-engine based on divided flight status Review of Scientific Instruments · American Institute of Physics · 2017 10.1063/1.5000105
  7. 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
  8. Multivariate estimation of the limit of detection by orthogonal partial least squares in temperature-modulated MOX sensors Analytica Chimica Acta · Elsevier BV · 2018 10.1016/j.aca.2018.03.005
  9. A novel modular ANN architecture for efficient monitoring of gases/odours in real-time Materials Research Express · IOP Publishing · 2018 10.1088/2053-1591/aabe09
  10. CBAM: Convolutional Block Attention Module Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-01234-2_1
  11. Ultrasensitive gas sensor based on hollow tungsten trioxide-nickel oxide (WO3-NiO) nanoflowers for fast and selective xylene detection Journal of Colloid and Interface Science · Elsevier BV · 2018 10.1016/j.jcis.2018.10.010
  12. Mixture Gases Classification Based on Multi-Label One-Dimensional Deep Convolutional Neural Network IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2892754
  13. A multimodal and hybrid deep neural network model for Remaining Useful Life estimation Computers in Industry · Elsevier BV · 2019 10.1016/j.compind.2019.02.004
  14. Fault diagnosis method of self-validating metal oxide semiconductor gas sensor based on t-distribution stochastic neighbor embedding and random forest Review of Scientific Instruments · American Institute of Physics · 2019 10.1063/1.5090142
  15. A Bi–LSTM and k-NN Based Method for Detecting Major Time Zones of Overloaded Vehicles Symmetry · Multidisciplinary Digital Publishing Institute · 2019 10.3390/sym11091160
  16. Deep Residual Shrinkage Networks for Fault Diagnosis IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tii.2019.2943898
  17. Generative Adversarial Networks With Comprehensive Wavelet Feature for Fault Diagnosis of Analog Circuits IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2020 10.1109/tim.2020.2969008
  18. MEMS Inertial Sensor Fault Diagnosis Using a CNN-Based Data-Driven Method International Journal of Pattern Recognition and Artificial Intelligence · World Scientific · 2020 10.1142/s021800142059048x
  19. A New Convolutional Neural Network With Random Forest Method for Hydrogen Sensor Fault Diagnosis IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2992231
  20. Visual object tracking based on residual network and cascaded correlation filters Journal of Ambient Intelligence and Humanized Computing · Springer Science+Business Media · 2020 10.1007/s12652-020-02572-0
  21. Low Cost Sensor With IoT LoRaWAN Connectivity and Machine Learning-Based Calibration for Air Pollution Monitoring IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2020 10.1109/tim.2020.3034109
  22. Bearing fault diagnosis based on combined multi-scale weighted entropy morphological filtering and bi-LSTM Applied Intelligence · Springer Science+Business Media · 2021 10.1007/s10489-021-02229-1
  23. A Multi-Input and Multi-Task Convolutional Neural Network for Fault Diagnosis Based on Bearing Vibration Signal IEEE Sensors Journal · IEEE Sensors Council · 2021 10.1109/jsen.2021.3061595
  24. Multi-Sensor Fault Detection, Identification, Isolation and Health Forecasting for Autonomous Vehicles Sensors · Multidisciplinary Digital Publishing Institute · 2021 10.3390/s21072547
  25. Multi-task learning based Encoder-Decoder: A comprehensive detection and diagnosis system for multi-sensor data Advances in Mechanical Engineering · SAGE Publishing · 2021 10.1177/16878140211013138
  26. A New Hydrogen Sensor Fault Diagnosis Method Based on Transfer Learning With LeNet-5 Frontiers in Neurorobotics · Frontiers Media · 2021 10.3389/fnbot.2021.664135
  27. A fault diagnosis method for wind turbines gearbox based on adaptive loss weighted meta-ResNet under noisy labels Mechanical Systems and Signal Processing · Elsevier BV · 2021 10.1016/j.ymssp.2021.107963
  28. Sensor and Actuator Fault Diagnosis for Robot Joint Based on Deep CNN Entropy · Multidisciplinary Digital Publishing Institute · 2021 10.3390/e23060751
  29. Recognition of binary mixture of NO2 and NO gases using a chemiresistive sensors array combined with principal component analysis Sensors and Actuators A Physical · Elsevier BV · 2021 10.1016/j.sna.2021.112980
  30. Multi-scale deep coupling convolutional neural network with heterogeneous sensor data for intelligent fault diagnosis Journal of Intelligent & Fuzzy Systems · IOS Press · 2021 10.3233/jifs-210932
  31. Dual redundancy fault diagnosis and reconstruction system of sensors based on BP neural network 2022 IEEE 17th Conference on Industrial Electronics and Applications (ICIEA) · 2021 10.1109/iciea51954.2021.9516120
  32. Imbalanced data fault diagnosis of hydrogen sensors using deep convolutional generative adversarial network with convolutional neural network Review of Scientific Instruments · American Institute of Physics · 2021 10.1063/5.0057059
  33. Intelligent fault diagnosis of rolling bearings under imbalanced data conditions using attention-based deep learning method Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.110500
  34. Generative adversarial network in mechanical fault diagnosis under small sample: A systematic review on applications and future perspectives ISA Transactions · Elsevier BV · 2021 10.1016/j.isatra.2021.11.040
  35. A Voltage Sensor Fault Diagnosis Method Based on Long Short-Term Memory Neural Networks for Battery Energy Storage System 2021 10.1109/icpsasia52756.2021.9621560
  36. LSTM-GAN-AE: A Promising Approach for Fault Diagnosis in Machine Health Monitoring IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2021 10.1109/tim.2021.3135328
  37. Online Pattern Recognition of Time-series Gas Sensor Data with Adaptive 2D-CNN Ensemble 2021 11th IEEE International Conference on Intelligent Data Acquisition and Advanced Computing Systems: Technology and Applications (IDAACS) · 2021 10.1109/idaacs53288.2021.9660930
  38. Deep learning-based monitoring of surface residual stress and efficient sensing of AE for laser shock peening Journal of Materials Processing Technology · Elsevier BV · 2022 10.1016/j.jmatprotec.2022.117515
  39. A Novel Fault Diagnosis Method for Analog Circuits Based on Multi-Input Deep Residual Networks with an Improved Empirical Wavelet Transform Applied Sciences · Multidisciplinary Digital Publishing Institute · 2022 10.3390/app12031675
  40. A Novel Multi-task Learning Method with Attention Mechanism for Wind Turbine Blades Imbalance Fault Diagnosis 2022 4th Asia Energy and Electrical Engineering Symposium (AEEES) · 2022 10.1109/aeees54426.2022.9759816
  41. Smart Electronic Nose Enabled by an All‐Feature Olfactory Algorithm Advanced Intelligent Systems · Wiley · 2022 10.1002/aisy.202200074
  42. Intelligent Fault Detection and Classification Based on Hybrid Deep Learning Methods for Hardware-in-the-Loop Test of Automotive Software Systems Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22114066
  43. Research on Micro-Fault Detection and Multiple-Fault Isolation for Gas Sensor Arrays Based on Serial Principal Component Analysis Electronics · Multidisciplinary Digital Publishing Institute · 2022 10.3390/electronics11111755
  44. Cross-scenario transfer diagnosis of reciprocating compressor based on CBAM and ResNet Journal of Intelligent & Fuzzy Systems · IOS Press · 2022 10.3233/jifs-213340
  45. Rolling Bearing Fault Diagnosis Based on Markov Transition Field and Residual Network Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22103936
  46. Fault Detection of Aero-Engine Sensor Based on Inception-CNN Aerospace · Multidisciplinary Digital Publishing Institute · 2022 10.3390/aerospace9050236
  47. RAANet: A Residual ASPP with Attention Framework for Semantic Segmentation of High-Resolution Remote Sensing Images Remote Sensing · Multidisciplinary Digital Publishing Institute · 2022 10.3390/rs14133109
  48. Gases in Food Production and Monitoring: Recent Advances in Target Chemiresistive Gas Sensors Chemosensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/chemosensors10080338
  49. TCM in milling processes based on attention mechanism-combined long short-term memory using a sound sensor under different working conditions International Journal of Hydromechatronics · Inderscience Enterprises Ltd. · 2022 10.1504/ijhm.2022.125090
  50. Design of an Artificial Opal/Photonic Crystal Interface for Alcohol Intoxication Assessment: Capillary Condensation in Pores and Photonic Materials Work Together Analytical Chemistry · American Chemical Society · 2022 10.1021/acs.analchem.2c00573
  51. Deep Residual Learning for Image Recognition: A Survey Applied Sciences · Multidisciplinary Digital Publishing Institute · 2022 10.3390/app12188972
  52. M2FN: An end-to-end multi-task and multi-sensor fusion network for intelligent fault diagnosis Measurement · Elsevier BV · 2022 10.1016/j.measurement.2022.112085
  53. Digital twin-driven intelligent assessment of gear surface degradation Mechanical Systems and Signal Processing · Elsevier BV · 2022 10.1016/j.ymssp.2022.109896
  54. High Precision Feature Fast Extraction Strategy for Aircraft Attitude Sensor Fault Based on RepVGG and SENet Attention Mechanism Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22249662
  55. A multi-task learning approach for chemical process abnormity locations and fault classifications Chemometrics and Intelligent Laboratory Systems · Elsevier BV · 2022 10.1016/j.chemolab.2022.104719
  56. A Multi-Task-Based Deep Multi-Scale Information Fusion Method for Intelligent Diagnosis of Bearing Faults Machines · Multidisciplinary Digital Publishing Institute · 2023 10.3390/machines11020198
  57. Aero-engine prognosis strategy based on multi-scale feature fusion and multi-task parallel learning Reliability Engineering & System Safety · Elsevier BV · 2023 10.1016/j.ress.2023.109182
  58. A novel vibration-based prognostic scheme for gear health management in surface wear progression of the intelligent manufacturing system Wear · Elsevier BV · 2023 10.1016/j.wear.2023.204697
  59. A Domain Adaption ResNet Model to Detect Faults in Roller Bearings Using Vibro-Acoustic Data Sensors · Multidisciplinary Digital Publishing Institute · 2023 10.3390/s23063068
  60. Gearbox fault diagnosis method based on deep learning multi-task framework International Journal of Structural Integrity · Emerald Publishing Limited · 2023 10.1108/ijsi-11-2022-0134
  61. Wearable Sensor-Based Human Activity Recognition System Employing Bi-LSTM Algorithm The Computer Journal · Oxford University Press · 2023 10.1093/comjnl/bxad035
  62. Fault-Diagnosis and Fault-Recovery System of Hall Sensors in Brushless DC Motor Based on Neural Networks Sensors · Multidisciplinary Digital Publishing Institute · 2023 10.3390/s23094330
  63. One-Dimensional Residual GANomaly Network-Based Deep Feature Extraction Model for Complex Industrial System Fault Detection IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2023 10.1109/tim.2023.3284940
  64. Physics-Informed Residual Network (PIResNet) for rolling element bearing fault diagnostics Mechanical Systems and Signal Processing · Elsevier BV · 2023 10.1016/j.ymssp.2023.110544