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

The Performance Analysis of PSO-ResNet for the Fault Diagnosis of Vibration Signals Based on the Pipeline Robot

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Zhaotao Yu — School of Mechanical, Electrical and Information Engineering, Shandong University, Weihai 264200, China
  2. Liang Zhang — School of Mechanical, Electrical and Information Engineering, Shandong University, Weihai 264200, China|||WeiHai Research Institute of Industrial Technology of Shandong University, 180 Wenhua Xilu, Shandong University, Weihai 264209, China
  3. Jongwon Kim — Department of Electromechanical Convergence Engineering, Korea University of Technology and Education, Cheonan-si 31253, Republic of Korea
DOI
10.3390/s23094289
저널
Sensors
발행년도
2023
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
11
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/s23094289
토픽
Gear and Bearing Dynamics Analysis
OpenAlex ID
W4367183381

평가 내용

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

초록

In the context of pipeline robots, the timely detection of faults is crucial in preventing safety incidents. In order to ensure the reliability and safety of the entire application process, robots' fault diagnosis techniques play a vital role. However, traditional diagnostic methods for motor drive end-bearing faults in pipeline robots are often ineffective when the operating conditions are variable. An efficient solution for fault diagnosis is the application of deep learning algorithms. This paper proposes a rolling bearing fault diagnosis method (PSO-ResNet) that combines a Particle Swarm Optimization algorithm (PSO) with a residual network. A number of vibration signal sensors are placed at different locations in the pipeline robot to obtain vibration signals from different parts. The input to the PSO-ResNet algorithm is a two-bit image obtained by continuous wavelet transform of the vibration signal. The accuracy of this fault diagnosis method is compared with different types of fault diagnosis algorithms, and the experimental analysis shows that PSO-ResNet has higher accuracy. The algorithm was also deployed on an Nvidia Jetson Nano and a Raspberry Pi 4B. Through comparative experimental analysis, the proposed fault diagnosis algorithm was chosen to be deployed on the Nvidia Jetson Nano and used as the core fault diagnosis control unit of the pipeline robot for practical scenarios. However, the PSO-ResNet model needs further improvement in terms of accuracy, which is the focus of future research work.

본문 51,407자

본문 펼치기
Introduction Currently, the world is facing pollution problems, and oil pollution is a growing concern. The handling technology for oil pollution is not very mature yet [1]. As the world is moving towards automation, integration, intelligence, and greening, robotic smart devices are being used more and more in various industries. Since the birth of industry, pipelines have been very important tools as they are used in many different industries for various applications such as transporting oil, gas, water, etc. Many defects can occur in pipelines, most of which are caused by aging, corrosion, cracks, blockages, and mechanical disasters that cause harm to human life and the environment. Therefore, the inspection of pipelines is extremely important to improve the reliability and safety of the industry. Currently, one of the most feasible solutions for the inspection of pipelines is the use of pipeline robots [2,3]. Introduction Pipeline robots are used for inspection work of large LPG pipelines, aiming to achieve efficient inspection of LPG pipelines and prevent safety accidents [4]. Since pipeline robots are mainly used in unmanned, high humidity, and other extreme and harsh conditions, the safety and reliability of the robots are particularly important. Pipeline robots have more complex structures, more degrees of freedom, and unstable motion accuracy, all of which bring efficiency and safety problems to the application of pipeline robots. Once a failure occurs, it is difficult and costly to repair, and collisions caused by motion problems can easily cause fires, resulting in unnecessary economic losses. The research of fault detection and diagnosis technology has become the focus of developing pipeline robots. Introduction Traditional fault detection and diagnosis methods for pipeline robots include using various physical and chemical principles and means to detect faults directly through various physical and chemical phenomena that accompany faults; using the signs corresponding to faults to diagnose faults, such as using the vibration of fault signals and their spectral characteristics to infer the type of faults [5,6]. Although these methods are fast and very effective, they can only detect some of the faults. Introduction Modern intelligent fault detection and diagnosis methods for pipeline robots are mainly based on the above-mentioned traditional diagnosis methods, and theories and methods of artificial intelligence are used for fault diagnosis to develop intelligent diagnosis methods. Intelligent fault diagnosis has been able to train learning algorithms from a large amount of feature data and diagnostic results. Deep learning algorithms, mainly represented by neural network learning, are now widely used, and neural networks include convolutional neural networks and recurrent neural networks [5,6]. The research of deep learning algorithms has become the main direction of equipment fault diagnosis. Introduction Highly integrated single-board computers can perform tasks such as fault detection and diagnosis independently, and the operation of a pipeline robot requires a processing unit that is responsible for processing digital images and implementing some of the pipeline robot's functions. Therefore, compact portable single-board computers are essential to support the functionality and performance of pipeline robots. The Raspberry Pi 4B and Nvidia Jetson Nano are two representative portable single-board computer devices, and the Raspberry Pi 4B and Nvidia Jetson Nano have been widely used in a number of real-world scenarios. They are widely used in a number of real-world scenarios. Introduction The main research of this paper is to improve the existing fault diagnosis model as a way to improve the accuracy and generalization performance of the model. In addition, a suitable fault detection and diagnosis algorithm is deployed to test the performance of the algorithm in different single-board computers. Through comparative experimental analysis, the best-performing single-board computer is embedded into the pipeline robot as the control unit for pipeline robot fault detection and diagnosis. The motivation and solution of the research in this paper can be summarized as follows. Introduction (1) As to ensure the pipeline robot works properly in the pipeline, the pipeline robot should have the function of automatic fault detection and diagnosis. The traditional fault detection and diagnosis algorithm cannot be intelligent; through researching various studies, the fault detection algorithm PSO-ResNet is proposed. This is a deep learning fault detection and diagnosis algorithm that combines particle swarm optimization algorithm and ResNet-50. Introduction (2) In the practical application of pipeline robots, the time and accuracy of fault detection and diagnosis and the influence of the temperature of the single-board computer on the operation of the algorithm are important indicators to ensure the safe work of pipeline robots in pipelines. In this paper, the PSO-ResNet algorithm is deployed on a single-board computer for comparison experiments. The time and accuracy of algorithm execution on different single-board computers and the temperature of the single-board computers are compared. The metrics are evaluated together to determine the Nvidia Jetson Nano as a fault detection and diagnosis unit for pipeline robots. Related Works Along with the continuous development of deep learning-based machine fault detection and diagnosis algorithms, more and more researchers are investigating the effective use of deep learning techniques on embedded platforms. In the study, while Raspberry Pi can provide lower power consumption and energy-efficient performance, it can also be concluded that Nvidia Jetson platforms such as Jetson Nano, Jetson TX1, and Jetson TX2 have higher performance because they have higher-speed GPUs [7]. The Nvidia Jetson is considered the most widely used gas pedal in the extraction phase of machine learning. In addition, the Nvidia Jetson Nano is energy efficient and portable, making it easy to use and has high performance in low-power situations [8]. Related Works The high-performance CPU and CUDA-compatible GPU make the Nvidia Jetson Nano development board perform well in benchmark tests. From the low-power perspective, the Nvidia Jetson Nano has higher performance, and the Raspberry Pi seems less suitable for high-performance deep-learning algorithm research [9]. Related Works Edgar Ruiz compared the performance metrics such as algorithm execution time, algorithm accuracy, CPU performance, and temperature of Raspberry PiCM4 and Nvidia Jetson Nano by using the SVM algorithm. In that study, only machine learning algorithms were compared. The complexity of the algorithms is relatively low and is not studied for more advanced and complex deep learning algorithms [10]. Gunawan Dewantoro used image processing and computer vision techniques to allow the patrol robot to identify objects and control robot motion. The performance of the patrol robot using different CPU controllers (Raspberry Pi and Jetson Nano) was compared. It was concluded that the GPU embedded in the Jetson Nano significantly affected the performance of processing video and graphics, so the robot with the Jetson Nano could perform faster image processing. However, only the accuracy of the algorithms was compared in this study, and the impact of factors such as single-board computer temperature and CPU occupancy on the performance of the single-board computer was not considered [11]. Related Works Xiaocui Hong compares the performance of single-board computers Nvidia Jetson Nano, Nvidia Jetson TX2, and Raspberry Pi 4 by using deep learning CNN algorithms. The parameters for performance analysis were defined as consumption (GPU, CPU, RAM, Power), algorithm accuracy, and single-board computer cost, and the data sets for training and testing of the models were classified as 5K, 10K, 20K, 30K, and 45K. Such an operation extends the variability of single-board computer performance [12]. There was no experimental study of algorithms for machine fault detection and diagnosis in this study, and the accuracy of the two-dimensional DNN algorithm for fault detection and diagnosis in pipeline robots was not high [13]. Related Works Traditional machine learning fault detection and diagnosis algorithms, such as k-NNbased, plain Bayesian-based, SVM-based, and ANN-based, are relatively low in complexity and easy to implement [5]. However, these traditional machine learning fault diagnosis methods have low recognition rates, poor robustness, and rely on manual feature extraction [14]. Deep learning provides an effective method to automatically learn features at multiple levels of abstraction so that complex input-to-output functions can be learned directly from data without relying on feature extractors, which can be of great benefit for fault diagnosis in pipeline robots [5]. Related Works Fault detection and diagnosis algorithms represented by deep learning such as BP neural networks, DNN, CNN, residual networks, and attention mechanism residual networks [13][14][15]. Deep learning networks do not require any feature extraction techniques and have high accuracy and robustness in noisy environments [16,17]. Related Works Kai Zhang improves the residual network. A hybrid attention improved residual network (HA-ResNet) based method is proposed to diagnose the fault of wind turbines gearbox by highlighting the essential frequency bands of wavelet coefficients and the fault features of convolution channels [12]. Xiaocui Hong proposed a new method for fusion diagnosis based on a multimodal residual network (M-ResNet) and discriminant correlation analysis (DCA). The M-ResNet consisting of one-dimensional ResNet (1D-ResNet) and twodimensional ResNet (2D-ResNet) is constructed to extract richer and more comprehensive fault features [13]. Long Wen studied a migrating convolutional neural network for fault diagnosis based on ResNet-50. ResNet-50 trained in ImageNet is used as a feature extractor for fault diagnosis by using a migration learning approach [18]. Kai Zhang proposed a novel method based on an adaptive loss-weighted meta-residual network (ALWM-ResNet). It is proposed to address fault diagnosis with noisy labels using a weighted network and a meta-network cloned from the original ResNet to establish a weighted function mapping to adaptively learn weights from data with clean labels [19]. Shaofeng Fu proposed a SE-ResNet PV array fault diagnosis algorithm based on a residual network (ResNet) and squeezed excitation network (SENet) with Bayesian optimization (BO) for parameters [20]. Xinjie Peng proposed a fault diagnosis method based on a combination of PCA and ResNet. The original data are denoised, and then the data are diagnosed and classified using a residual network. The practicality and robustness of the method were experimentally demonstrated [21]. As the amount of data on the Internet grows, deep learning models take advantage of big data processing. Deep residual networks with higher feature extraction and generalization capabilities are widely used in the field of machine fault detection and diagnosis. Related Works Based on the above research, we propose the PSO-ResNet algorithm model. This model can actively find the optimal hyperparameters in network training compared to other fault diagnosis models. It provides researchers with a more scientific approach to training the model. We also deployed PSO-ResNet to Nvidia Jetson Nanoh and Raspberry Pi 4B. We tested the performance of embedded devices through comparative experiments. The search for more price-performance devices is important for the development of pipeline robots. Description of the Proposed Method The overall process of this study is divided into three parts: signal acquisition and input, single-board computer fault diagnosis, and fault result output. The input signals used in the pipeline robot fault detection and diagnosis study are vibration signals, and the single-board computer is mainly Nvidia Jetson Nano and Raspberry Pi 4B. The fault diagnosis results are the types of faults occurring in the pipeline robot. The fault detection and diagnosis algorithm use a residual network combining continuous wavelet transform, particle swarm optimization algorithm, and ResNet-50. The main block diagram of the proposed method is shown in Figure 1. Description of the Proposed Method work (ALWM-ResNet). It is proposed to address fault diagnosis with noisy labels using a weighted network and a meta-network cloned from the original ResNet to establish a weighted function mapping to adaptively learn weights from data with clean labels [19] Shaofeng Fu proposed a SE-ResNet PV array fault diagnosis algorithm based on a residual network (ResNet) and squeezed excitation network (SENet) with Bayesian optimization (BO) for parameters [20]. Xinjie Peng proposed a fault diagnosis method based on a combination of PCA and ResNet. The original data are denoised, and then the data are diagnosed and classified using a residual network. The practicality and robustness of the method were experimentally demonstrated [21]. As the amount of data on the Internet grows, deep learning models take advantage of big data processing. Deep residual networks with higher feature extraction and generalization capabilities are widely used in the field of machine fault detection and diagnosis. Description of the Proposed Method Based on the above research, we propose the PSO-ResNet algorithm model. This model can actively find the optimal hyperparameters in network training compared to other fault diagnosis models. It provides researchers with a more scientific approach to training the model. We also deployed PSO-ResNet to Nvidia Jetson Nanoh and Raspberry Pi 4B. We tested the performance of embedded devices through comparative experiments The search for more price-performance devices is important for the development of pipeline robots. Description of the Proposed Method The overall process of this study is divided into three parts: signal acquisition and input, single-board computer fault diagnosis, and fault result output. The input signals used in the pipeline robot fault detection and diagnosis study are vibration signals, and the single-board computer is mainly Nvidia Jetson Nano and Raspberry Pi 4B. The fault diagnosis results are the types of faults occurring in the pipeline robot. The fault detection and diagnosis algorithm use a residual network combining continuous wavelet transform particle swarm optimization algorithm, and ResNet-50. The main block diagram of the proposed method is shown in Figure 1. Pipeline Robot The main work of pipeline robots is to inspect oil pipelines, obtain abnormal locations, and prevent LPG pipeline safety accidents. The pipeline robot can enter the pipeline in a relatively narrow space and replace the workers to complete the inspection and maintenance of the pipeline, which can greatly improve the efficiency of pipeline Pipeline Robot The main work of pipeline robots is to inspect oil pipelines, obtain abnormal locations, and prevent LPG pipeline safety accidents. The pipeline robot can enter the pipeline in a relatively narrow space and replace the workers to complete the inspection and maintenance of the pipeline, which can greatly improve the efficiency of pipeline maintenance and reduce maintenance costs. The pipeline robot has a reasonable ontology structure and control method to ensure that it does not slip, overturn, or jam inside the pipeline; the pipeline robot can accurately identify the early and minor faults that appear in itself to avoid the minor faults from evolving into serious faults that cause the robot to lose control and fail to exit the pipeline. Figure 2 shows the working situation of the pipeline robot. Pipeline Robot ors 2023, 23, x FOR PEER REVIEW 5 of maintenance and reduce maintenance costs. The pipeline robot has a reasonable ontolo structure and control method to ensure that it does not slip, overturn, or jam inside t pipeline; the pipeline robot can accurately identify the early and minor faults that appe in itself to avoid the minor faults from evolving into serious faults that cause the robot lose control and fail to exit the pipeline. Figure 2 shows the working situation of the pip line robot. Nvidia Jetson Nano Nvidia Jetson Nano is a small, powerful computer for embedded applications and IoT that delivers the power of modern AI. It has the comprehensive JetPack SDK w accelerated libraries for deep learning, computer vision, graphics, multimedia, and mo Meanwhile, the Nvidia Jetson Nano can run multiple neural networks in parallel for a plications such as image classification, object detection, segmentation, and speech p cessing. All on an easy-to-use platform that runs in as little as 5 watts. Figure 3 shows t Nvidia Jetson Nano with 2 GB RAM. The official Nvidia website shows a comparison b tween the performance of this single-board computer and the Raspberry Pi 3, Intel Neu Compute Stick 2, and Google Edge TPU Coral development motherboard, where the J son Nano outperforms the aforementioned platforms [10]. Raspberry Pi 4B The Raspberry Pi 4B is a microcomputer the size of a credit card. It has great spe and performance improvement over the earlier models. It has many features, such as e iting documents, opening a bunch of tabs to browse the web, working with spreadshee and editing presentations. The biggest advantage of the Raspberry Pi 4B is that it smaller, more energy efficient, and more economical. The overall architecture is shown Nvidia Jetson Nano Nvidia Jetson Nano is a small, powerful computer for embedded applications and AI IoT that delivers the power of modern AI. It has the comprehensive JetPack SDK with accelerated libraries for deep learning, computer vision, graphics, multimedia, and more. Meanwhile, the Nvidia Jetson Nano can run multiple neural networks in parallel for applications such as image classification, object detection, segmentation, and speech processing. All on an easy-to-use platform that runs in as little as 5 watts. Figure 3 shows the Nvidia Jetson Nano with 2 GB RAM. The official Nvidia website shows a comparison between the performance of this single-board computer and the Raspberry Pi 3, Intel Neural Compute Stick 2, and Google Edge TPU Coral development motherboard, where the Jetson Nano outperforms the aforementioned platforms [10]. maintenance and reduce maintenance costs. The pipeline robot has a reasonable on structure and control method to ensure that it does not slip, overturn, or jam insi pipeline; the pipeline robot can accurately identify the early and minor faults that a in itself to avoid the minor faults from evolving into serious faults that cause the ro lose control and fail to exit the pipeline. Figure 2 shows the working situation of th line robot. Nvidia Jetson Nano Nvidia Jetson Nano is a small, powerful computer for embedded applications IoT that delivers the power of modern AI. It has the comprehensive JetPack SDK accelerated libraries for deep learning, computer vision, graphics, multimedia, and Meanwhile, the Nvidia Jetson Nano can run multiple neural networks in parallel plications such as image classification, object detection, segmentation, and speec cessing. All on an easy-to-use platform that runs in as little as 5 watts. Figure 3 sho Nvidia Jetson Nano with 2 GB RAM. The official Nvidia website shows a comparis tween the performance of this single-board computer and the Raspberry Pi 3, Intel N Compute Stick 2, and Google Edge TPU Coral development motherboard, where t son Nano outperforms the aforementioned platforms [10]. Raspberry Pi 4B The Raspberry Pi 4B is a microcomputer the size of a credit card. It has great and performance improvement over the earlier models. It has many features, such iting documents, opening a bunch of tabs to browse the web, working with spread and editing presentations. The biggest advantage of the Raspberry Pi 4B is th smaller, more energy efficient, and more economical. The overall architecture is sho Figure 4. Raspberry Pi 4B The Raspberry Pi 4B is a microcomputer the size of a credit card. It has great speed and performance improvement over the earlier models. It has many features, such as editing documents, opening a bunch of tabs to browse the web, working with spreadsheets, and editing presentations. The biggest advantage of the Raspberry Pi 4B is that it is smaller, more energy efficient, and more economical. The overall architecture is shown in Figure 4. PSO-ResNet Model The continuous wavelet transform is developed on the basis of the Fourier transform [22]. The continuous wavelet transform can solve the problem that the Fourier transform exists where the time domain and frequency domain information of the signal cannot be localized at the same time. Real-world data or signals often exhibit a tendency to change slowly or oscillate due to transients [23]. On the other hand, images have smooth regions that are interrupted by edges or sudden changes in contrast, and the Fourier transform cannot effectively represent sudden changes because the Fourier transform represents data as a sum of sinusoids that are not localized in time or space, and these sinusoids oscillate forever [24,25]. In order to analyze abruptly changing signals and images well and accurately; the wavelet transform is used that is well localized in both time and frequency. Wavelet transforms are rapidly decaying waves and wavelets exist for a finite duration [26]. PSO-ResNet Model Particle Swarm Optimization (PSO) is a global optimization algorithm based on population intelligence. In the PSO algorithm, each solution is considered as a position of a particle, while each particle represents a candidate solution, and the optimal solution is searched by continuously updating the velocity and position of the particles. Specifically, each particle maintains two vectors: a position vector and a velocity vector [27]. During the search process, the position and velocity of each particle are continuously adjusted until the optimal solution is found or a preset stopping condition is reached. Figure 5 illustrates the overall flow of the particle swarm optimization algorithm. Particle swarm optimization algorithms are simple to implement and do not require many parameters to be adjusted. In general, it can be applied to a variety of complex problems to find globally optimal solutions with fast convergence and high efficiency. Currently, particle swarm optimization algorithms have been widely used in function optimization, neural network training, fuzzy system control, and other applications of genetic algorithms [28]. PSO-ResNet Model Optimization of residual network models using particle swarm optimization algorithms. The main use of the particle swarm optimization algorithm is to optimize the initialization parameters of the training model [27]. The optimization parameters are set for the particle swarm optimization algorithm, which includes: the number of particles, the maximum and minimum values of the parameters being optimized, the number of iterations of the optimization algorithm, and the maximum velocity of each particle per movement [29]. The particle swarm optimization algorithm can search for the optimal solution and find the best parameters for the network training in order to be used in the training of the residual network model. In addition, the particle swarm optimization algorithm is applied to optimize the weights and biases of each residual block in ResNet-50 in order to improve the performance of the network [30]. In each iteration, the PSO algorithm can be used to update the position and velocity of each particle in order to find the best solution. By continuously iterating, the optimal weights and deviations can be found, thus PSO-ResNet Model The continuous wavelet transform is developed on the basis of the Fourier transform [22]. The continuous wavelet transform can solve the problem that the Fourier transform exists where the time domain and frequency domain information of the signal cannot be localized at the same time. Real-world data or signals often exhibit a tendency to change slowly or oscillate due to transients [23]. On the other hand, images have smooth regions that are interrupted by edges or sudden changes in contrast, and the Fourier transform cannot effectively represent sudden changes because the Fourier transform represents data as a sum of sinusoids that are not localized in time or space, and these sinusoids oscillate forever [24,25]. In order to analyze abruptly changing signals and images well and accurately; the wavelet transform is used that is well localized in both time and frequency. Wavelet transforms are rapidly decaying waves and wavelets exist for a finite duration [26]. PSO-ResNet Model Particle Swarm Optimization (PSO) is a global optimization algorithm based on population intelligence. In the PSO algorithm, each solution is considered as a position of a particle, while each particle represents a candidate solution, and the optimal solution is searched by continuously updating the velocity and position of the particles. Specifically, each particle maintains two vectors: a position vector and a velocity vector [27]. During the search process, the position and velocity of each particle are continuously adjusted until the optimal solution is found or a preset stopping condition is reached. Figure 5 illustrates the overall flow of the particle swarm optimization algorithm. Particle swarm optimization algorithms are simple to implement and do not require many parameters to be adjusted. In general, it can be applied to a variety of complex problems to find globally optimal solutions with fast convergence and high efficiency. Currently, particle swarm optimization algorithms have been widely used in function optimization, neural network training, fuzzy system control, and other applications of genetic algorithms [28]. PSO-ResNet Model Optimization of residual network models using particle swarm optimization algorithms. The main use of the particle swarm optimization algorithm is to optimize the initialization parameters of the training model [27]. The optimization parameters are set for the particle swarm optimization algorithm, which includes: the number of particles, the maximum and minimum values of the parameters being optimized, the number of iterations of the optimization algorithm, and the maximum velocity of each particle per movement [29]. The particle swarm optimization algorithm can search for the optimal solution and find the best parameters for the network training in order to be used in the training of the residual network model. In addition, the particle swarm optimization algorithm is applied to optimize the weights and biases of each residual block in ResNet-50 in order to improve the performance of the network [30]. In each iteration, the PSO algorithm can be used to update the position and velocity of each particle in order to find the best solution. By continuously iterating, the optimal weights and deviations can be found, thus optimizing the performance of the residual network. The particle swarm optimization algorithm is combined with the residual network, which not only effectively improves the network model generalization ability and accuracy but also increases the speed at which the network model learns the differences between different faults and effectively distinguishes between impassable fault types [28]. optimizing the performance of the residual network. The particle swarm optimization algorithm is combined with the residual network, which not only effectively improves the network model generalization ability and accuracy but also increases the speed at which the network model learns the differences between different faults and effectively distinguishes between impassable fault types [28]. Start Initialize particle swarm parameters As a modified convolutional network, the residual network is based on a series of convolutional and pooling layers [16]. Convolutional layers achieve sparse interaction and parameter sharing during data transfer, reducing the number of model parameters [19]. ResNet implements a layer backoff mechanism by adding a Skip Connection between the input and output of the convolutional layers. Input x is passed through two convolutional layers to obtain the feature-transformed output ( ) F x , which is summed with the corresponding elements of input x to obtain the final output ( ) H x : Start ( ) H x is called the residual module [31]. The residual structure is shown in Figure 6. Start In the study of this paper, we used the ResNet structure shown in Figure 7, which was adopted for two main reasons: (1) the backward propagation basically conforms to the assumption that the information transfer is unhindered; (2) the BN layer acts as a preactivation and plays a role of regularization. This has a great effect on the network training to improve the accuracy of the model. As a modified convolutional network, the residual network is based on a series of convolutional and pooling layers [16]. Convolutional layers achieve sparse interaction and parameter sharing during data transfer, reducing the number of model parameters [19]. ResNet implements a layer backoff mechanism by adding a Skip Connection between the input and output of the convolutional layers. Input x is passed through two convolutional layers to obtain the feature-transformed output F(x), which is summed with the corresponding elements of input x to obtain the final output H(x): Start H(x) is called the residual module [31]. The residual structure is shown in Figure 6. Start In the study of this paper, we used the ResNet structure shown in Figure 7, which was adopted for two main reasons: (1) the backward propagation basically conforms to the assumption that the information transfer is unhindered; (2) the BN layer acts as a pre-activation and plays a role of regularization. This has a great effect on the network training to improve the accuracy of the model. As shown in Figure 8, PSO-ResNet mainly consists of the signal processing part and the ResNet-50 network learning part. ResNet-50 is mainly divided into 5 stages, in which the structure of Stage 0 is relatively simple and can be regarded as the pre-processing of the input, and the last 4 stages are composed of Bottleneck, which have a similar structure. Stage 1 contains 3 Bottlenecks, and the remaining 3 stages include 4, 6, and 3 Bottlenecks, respectively. Start The optimization algorithm for residual neural networks determines the optimal value of the parameters by minimizing the error in the cost function, which in turn improves the performance of the network. The choice of learning rate and parameter optimization algorithms for residual neural networks will affect the performance of the network to some extent for different problems. In the training of residual networks, the optimization of hyperparameters plays a very important role in the speed of network training as well as the robustness and extensiveness of the model. The learning rate is a hyperparameter that controls the extent to which the residual network adjusts the network weights in terms of loss gradient; momentum is a common acceleration technique used in gradient descent methods. A suitable momentum can achieve an accelerated convergence process and facilitate our training [28]. Start During the training of the PSO-ResNet, if the learning rate is set too large, the network will not converge and will hover around the optimum, thus neglecting to find the optimum; if the learning rate is set too small, the network will converge very slowly and will increase the time to find the optimum. Although it is possible to achieve better training results by setting a very small learning rate, this is likely to converge into the local extrema, with no real optimal solution found. In this paper, the initial value of the learning rate when first training the PSO-ResNet model is 0.00001. In general, the learning rate ranges from 0.00001 to 0.1. As the number of iterations increases, the learning rate decreases to accelerate the convergence of the loss function. Throughout the training period, the learning rate from the beginning to the end of training is reduced by a factor of one hundred of the initial value. As shown in Figure 8, PSO-ResNet mainly consists of the signal processing part and the ResNet-50 network learning part. ResNet-50 is mainly divided into 5 stages, in which the structure of Stage 0 is relatively simple and can be regarded as the pre-processing of the input, and the last 4 stages are composed of Bottleneck, which have a similar structure. Stage 1 contains 3 Bottlenecks, and the remaining 3 stages include 4, 6, and 3 Bottlenecks, respectively. Start The optimization algorithm for residual neural networks determines the optimal value of the parameters by minimizing the error in the cost function, which in turn improves the performance of the network. The choice of learning rate and parameter optimization algorithms for residual neural networks will affect the performance of the network to some extent for different problems. In the training of residual networks, the optimization of hyperparameters plays a very important role in the speed of network training as well as the robustness and extensiveness of the model. The learning rate is a hyperparameter that controls the extent to which the residual network adjusts the network weights in terms of loss gradient; momentum is a common acceleration technique used in gradient descent methods. A suitable momentum can achieve an accelerated convergence process and facilitate our training [28]. Start During the training of the PSO-ResNet, if the learning rate is set too large, the network will not converge and will hover around the optimum, thus neglecting to find the optimum; if the learning rate is set too small, the network will converge very slowly and will increase the time to find the optimum. Although it is possible to achieve better training results by setting a very small learning rate, this is likely to converge into the local extrema, with no real optimal solution found. In this paper, the initial value of the learning rate when first training the PSO-ResNet model is 0.00001. In general, the learning rate ranges from 0.00001 to 0.1. As the number of iterations increases, the learning rate decreases to accelerate the convergence of the loss function. Throughout the training period, the learning rate from the beginning to the end of training is reduced by a factor of one hundred of the initial value. As shown in Figure 8, PSO-ResNet mainly consists of the signal processing part and the ResNet-50 network learning part. ResNet-50 is mainly divided into 5 stages, in which the structure of Stage 0 is relatively simple and can be regarded as the pre-processing of the input, and the last 4 stages are composed of Bottleneck, which have a similar structure. Stage 1 contains 3 Bottlenecks, and the remaining 3 stages include 4, 6, and 3 Bottlenecks, respectively. Start The optimization algorithm for residual neural networks determines the optimal value of the parameters by minimizing the error in the cost function, which in turn improves the performance of the network. The choice of learning rate and parameter optimization algorithms for residual neural networks will affect the performance of the network to some extent for different problems. In the training of residual networks, the optimization of hyperparameters plays a very important role in the speed of network training as well as the robustness and extensiveness of the model. The learning rate is a hyperparameter that controls the extent to which the residual network adjusts the network weights in terms of loss gradient; momentum is a common acceleration technique used in gradient descent methods. A suitable momentum can achieve an accelerated convergence process and facilitate our training [28]. Start During the training of the PSO-ResNet, if the learning rate is set too large, the network will not converge and will hover around the optimum, thus neglecting to find the optimum; if the learning rate is set too small, the network will converge very slowly and will increase the time to find the optimum. Although it is possible to achieve better training results by setting a very small learning rate, this is likely to converge into the local extrema, with no real optimal solution found. In this paper, the initial value of the learning rate when first training the PSO-ResNet model is 0.00001. In general, the learning rate ranges from 0.00001 to 0.1. As the number of iterations increases, the learning rate decreases to accelerate the convergence of the loss function. Throughout the training period, the learning rate from the beginning to the end of training is reduced by a factor of one hundred of the initial value. According to the optimization idea of the particle swarm algorithm, the optimal hyperparameters are used as the search target of the particle swarm algorithm. The loss value is the fitness function value, and the parameters corresponding to the best fitness value are recorded. In each iteration, the particles are continuously optimized in the direction of these two parameters, and the resulting new parameters are sequentially fed into the network and iteratively updated until the end of the iteration. Start In this paper, training experiments of the PSO-ResNet network are conducted on a homemade dataset, and the values of the loss function of the network under the same number of iterations are used as the individual fitness scores. After multiple iterations, the local optimum and the global optimum are obtained, and their corresponding hyperparameters are saved. Start The biggest advantage of PSO-ResNet is that it not only reduces the cost for researchers to tune hyperparameters and accelerates the training of ultra-deep neural networks but also significantly improves the accuracy of deep networks. In addition, PSO-ResNet largely avoids the problem of gradient disappearance or gradient explosion as the number of layers of the network increases, which makes it possible to train extremely deep networks. Experimental Study and Results Jetson Nano and Raspberry Pi as the core control unit for pipeline robot fault diagnosis. Due to the complex architecture of the PSO-ResNet network, training the model with two single-board computers are almost impossible. The environment for model training is a 64-bit Windows 11 operating system, the CPU is 13th Gen Intel(R) Core(TM) i7-13700F 2.10 GHz, the graphics card is NVIDIA Ge Force RTX 3060, and the memory is 16.00 GB. The entire algorithm is written in Python, and the model framework is built by PyTorch. Experimental Study and Results The motor bearing faults are set as follows: damage of 0.1778 mm diameter, damage of 0.3556 mm diameter, and damage of 0.5334 mm diameter. The types of faults are shown in Table 1. In order to have more data to participate in model training, based on the Case Western Reserve University (CWR) bearing data, we placed some vibration signal sensors above the bearing seat at the motor drive end of the pipeline robot to collect the vibration signal of the faulty bearing. In addition, Jetson Nano and Raspberry Pi were embedded in the pipeline robot to receive the collected vibration signals, and the structure of the pipeline robot is shown in Figure 9. The trained algorithm models are deployed on two single-board computers. In addition, the performance metrics considered for the single-board computer benchmark are algorithm accuracy (%), runtime (ms), CPU usage (%), and temperature ( • C). Experimental Study and Results OR PEER REVIEW 11 of Figure 9. The schematic diagram of the structure of the pipeline robot. Experimental Study and Results The trained algorithm models are deployed on two single-board computers. In ad tion, the performance metrics considered for the single-board computer benchmark algorithm accuracy (%), runtime (ms), CPU usage (%), and temperature (°C). Handling of Fault Data Before the model training, the acquired fault data are first processed. The acquir signals are converted into 2D images by continuous wavelet transform, and these 2D i ages are used as inputs for the deep learning algorithm to train the model. There are 10 2D images for each class of faults, and the proportions of each class of faults as a train set, test set, and validation set are 70%, 20%, and 10%, respectively, during the training Model Deployment For the Nvidia Jetson Nano, to accelerate inference, the network is deployed us the TensorRT framework, a neural network inference framework that is optimized speed up inference and reduce the model size, and deploy neural networks on edge co puting devices for significant computational efficiency [32]. Converting network mod created by Jetson Nano or PC using Pytorch framework to Open Neural Network E change (ONNX) format, then converting to TensorRT format using ONNX parser, a deploying the converted TensorRT format to Jetson Nano for inference is an efficient a popular approach. Model Deployment For the deployment of the model on Raspberry Pi 4B, since Raspberry Pi does n contain the TensorRT inference framework, the network model created using the Pyto framework is directly converted to Open Neural Network Exchange (ONNX) format, co verted to IR intermediate model using openvino, downloaded openvino on Raspberry and used the IR model to perform inference. Handling of Fault Data Before the model training, the acquired fault data are first processed. The acquired signals are converted into 2D images by continuous wavelet transform, and these 2D images are used as inputs for the deep learning algorithm to train the model. There are 1000 2D images for each class of faults, and the proportions of each class of faults as a training set, test set, and validation set are 70%, 20%, and 10%, respectively, during the training. Model Deployment For the Nvidia Jetson Nano, to accelerate inference, the network is deployed using the TensorRT framework, a neural network inference framework that is optimized to speed up inference and reduce the model size, and deploy neural networks on edge computing devices for significant computational efficiency [32]. Converting network models created by Jetson Nano or PC using Pytorch framework to Open Neural Network Exchange (ONNX) format, then converting to TensorRT format using ONNX parser, and deploying the converted TensorRT format to Jetson Nano for inference is an efficient and popular approach. Model Deployment For the deployment of the model on Raspberry Pi 4B, since Raspberry Pi does not contain the TensorRT inference framework, the network model created using the Pytorch framework is directly converted to Open Neural Network Exchange (ONNX) format, converted to IR intermediate model using openvino, downloaded openvino on Raspberry Pi, and used the IR model to perform inference. Analysis of Experimental Results After the pipeline robot detects a fault, the single-board computer acts as the core control unit for fault detection and diagnosis of the fault signal output. The two singleboard computers display the type of fault through a connected monitor, and the main results and categories of the output are shown in Figure 10. Sensors 2023, 23, x FOR PEER REVIEW 12 of 17 Table 2. The fault diagnosis model proposed in this paper has a large improvement in accuracy. Compared with ResNet-50 without the particle swarm optimization algorithm, PSO-ResNet improves accuracy by about 2%. For residual neural networks, the setting of hyperparameters is one of the most important factors in determining the performance of the model. Hyperparameters such as momentum and learning strategy will affect the accuracy of algorithm detection. The improved fault kind detection algorithm PSO-ResNet has a lower training error rate as well as a generalization error rate than the original algorithm, which reflects the algorithm's strong ability to optimize the neural network connection weights and to seek a better learning rate. Moreover, in terms of training time, the training time of PSO-ResNet with the addition of particle swarm optimization algorithm does not lag much behind the training time of ResNet-50, and the training speed is also relatively fast. Obviously, PSO-ResNet, with higher accuracy and faster training speed, is more suitable as a fault detection algorithm for the fault diagnosis system of the pipeline robot. The Parameters Comparison of Jetson Nano and Raspberry Pi The Raspberry Pi 4B has a quad-core Cortex-A72 (ARM v8) 64-bit CPU, while the Nvidia Jetson Nano has a quad-core ARM Cortex-A57 MPCore CPU, which gives the Raspberry Pi 4B faster processing speed in terms of CPU performance. However, the Raspberry Pi 4B has a Broadcom VideoCore VI GPU (32-bit), while the Nvidia Jetson Nano has an NVIDIA Maxwell GPU w/128 CUDA cores. In terms of GPU performance, the Nvidia Jetson Nano has a faster image processing speed. A comparison of the specific parameters is shown in Table 3. Before testing the fault diagnosis algorithm, some performance attributes inherent to the two single-board computers were tested. Table 4 shows the performance of the two single-board computers in terms of data transfer, and Table 5 shows the temperature and CPU usage of the two single-board computers in standby mode. Since the pipeline robot stores the fault data in the storage unit of the single board computer first when it receives it, it is necessary to test the transfer rate. To obtain the performance characteristics of CPU and temperature, SystemMonitor of each single board computer was used to obtain these two types of data. Regarding accuracy and execution time data, these metrics were obtained by executing a fault diagnosis algorithm. The test of fault types was divided into 1 fault signal at a time input, 10 fault signals, and 100 fault signals. Testing the depth algorithm model based on PSO-ResNet, the program was run 100 times, and the results of the runs were averaged on the Nvidia Jetson Nano and Raspberry Pi 4B. Table 6 shows the data obtained from testing the PSO-ResNet model. The Parameters Comparison of Jetson Nano and Raspberry Pi In this context, as seen in the results shown in Table 5, both single-board computers provide similar algorithmic accuracy, indicating that this parameter depends more on the algorithm than on the performance of the single-board computer. As far as the execution time of the algorithm is concerned, it can be observed that the values of the Raspberry Pi 4B and the Nvidia Jetson Nano are about the same when one sample signal is input. The main reason for this phenomenon is that the number of input samples is small, and the single-board computer uses the CPU more for processing, while the CPU of the Raspberry Pi is a bit higher in performance than the Jetson Nano. When inputting 10 sample signals, the average execution time of Nvidia Jetson Nano is 152.33 ms faster than Raspberry Pi 4B, while when processing 100 input sample signals, the average execution time of Nvidia Jetson Nano is 15,154.4 ms faster than Raspberry Pi 4B, Jetson Nano executes about four times faster than the Raspberry Pi 4B. This difference is very surprising but reasonable because the Nvidia Jetson Nano has a better-performing GPU, which is helpful for more computationally intensive signal processing. In addition, it is very important for the safe and reliable operation of the pipeline robot to be able to know in time if a failure occurs. The Parameters Comparison of Jetson Nano and Raspberry Pi Regarding the percentage of CPU used, similar to the algorithm execution time, the number of incoming fault signals gradually increased at any time, and the CPU occupancy of the Raspberry Pi became higher and higher, even exceeding 60%. Although the Nvidia Jetson Nano has an elevated CPU occupancy, the CPU idle state is still sufficient, which ensures a smooth-running state of the single-board computer. In a similar situation, the Nvidia Jetson Nano requires fewer CPU resources to perform the same task. Conclusions In this paper, a new fault diagnosis model PSO-ResNet is investigated for pipeline robot fault diagnosis, and the performance of different control units in the pipeline robot fault diagnosis module is analyzed. PSO-ResNet is a deep evolutionary model for finding the best combination of hyperparameters in residual network training. The excellent performance of the particle swarm algorithm is used to find the most suitable hyperparameters to indirectly improve the performance of the network model. This method not only reduces the labor cost for researchers to manually adjust hyperparameters but also makes it more scientific to adjust hyperparameters in network training. The experimental results show that the PSO-ResNet fault diagnosis algorithm model has a large improvement in accuracy, and the model has a better generalization ability and can find the best weights and deviations to optimize the performance of the residual network by selecting better parameters for the training of the model. When tested on a single-board computer, although the PSO-ResNet fault diagnosis algorithm model has the same accuracy on different single-board computers, the Nvidia Jetson Nano has better performance in terms of execution time, temperature, and CPU usage. In addition, the deployment of the fault diagnosis algorithm to the embedded GPU system Nvidia Jetson Nano using the TensorRT framework significantly reduces the inference time. In other ways, the smaller CPU footprint and better performing GPU means that the single-board computer can also do more work, which is helpful in studying pipeline robots to implement model updates for newly generated faults and expand more useful features of pipeline robots. Finally, while the Nvidia Jetson Nano is a bit more expensive when using deep learning algorithms for complex network models to accomplish specific tasks, the Nvidia Jetson Nano's superior performance makes it the preferred choice for low-cost embedded systems for pipeline robots. Conclusions Although the PSO-ResNet model has achieved good results in experiments, there is still room for improvement in terms of accuracy. In order to improve the model's accuracy, future research can focus on improving the model's architecture and fine-tuning the pretrained network model for optimization. Additionally, the PSO-ResNet model occupies a large amount of memory, which limits its application in resource-limited environments such as mobile devices and embedded systems. Therefore, lightweighting the PSO-ResNet model is also one of the future research priorities. Conclusions Supplementary Materials: The following supporting information can be downloaded at: https:// www.mdpi.com/article/10.3390/s23094289/s1, Figure S1: Illustration of pipeline robot operation status, Figure S2: Schematic diagram of pipeline robot structure.

섹션 본문 65문단 · 50,176자

Introduction

2Currently, the world is facing pollution problems, and oil pollution is a growing concern. The handling technology for oil pollution is not very mature yet [1]. As the world is moving towards automation, integration, intelligence, and greening, robotic smart devices are being used more and more in various industries. Since the birth of industry, pipelines have been very important tools as they are used in many different industries for various applications such as transporting oil, gas, water, etc. Many defects can occur in pipelines, most of which are caused by aging, corrosion, cracks, blockages, and mechanical disasters that cause harm to human life and the environment. Therefore, the inspection of pipelines is extremely important to improve the reliability and safety of the industry. Currently, one of the most feasible solutions for the inspection of pipelines is the use of pipeline robots [2,3].

3Pipeline robots are used for inspection work of large LPG pipelines, aiming to achieve efficient inspection of LPG pipelines and prevent safety accidents [4]. Since pipeline robots are mainly used in unmanned, high humidity, and other extreme and harsh conditions, the safety and reliability of the robots are particularly important. Pipeline robots have more complex structures, more degrees of freedom, and unstable motion accuracy, all of which bring efficiency and safety problems to the application of pipeline robots. Once a failure occurs, it is difficult and costly to repair, and collisions caused by motion problems can easily cause fires, resulting in unnecessary economic losses. The research of fault detection and diagnosis technology has become the focus of developing pipeline robots.

4Traditional fault detection and diagnosis methods for pipeline robots include using various physical and chemical principles and means to detect faults directly through various physical and chemical phenomena that accompany faults; using the signs corresponding to faults to diagnose faults, such as using the vibration of fault signals and their spectral characteristics to infer the type of faults [5,6]. Although these methods are fast and very effective, they can only detect some of the faults.

5Modern intelligent fault detection and diagnosis methods for pipeline robots are mainly based on the above-mentioned traditional diagnosis methods, and theories and methods of artificial intelligence are used for fault diagnosis to develop intelligent diagnosis methods. Intelligent fault diagnosis has been able to train learning algorithms from a large amount of feature data and diagnostic results. Deep learning algorithms, mainly represented by neural network learning, are now widely used, and neural networks include convolutional neural networks and recurrent neural networks [5,6]. The research of deep learning algorithms has become the main direction of equipment fault diagnosis.

6Highly integrated single-board computers can perform tasks such as fault detection and diagnosis independently, and the operation of a pipeline robot requires a processing unit that is responsible for processing digital images and implementing some of the pipeline robot's functions. Therefore, compact portable single-board computers are essential to support the functionality and performance of pipeline robots. The Raspberry Pi 4B and Nvidia Jetson Nano are two representative portable single-board computer devices, and the Raspberry Pi 4B and Nvidia Jetson Nano have been widely used in a number of real-world scenarios. They are widely used in a number of real-world scenarios.

7The main research of this paper is to improve the existing fault diagnosis model as a way to improve the accuracy and generalization performance of the model. In addition, a suitable fault detection and diagnosis algorithm is deployed to test the performance of the algorithm in different single-board computers. Through comparative experimental analysis, the best-performing single-board computer is embedded into the pipeline robot as the control unit for pipeline robot fault detection and diagnosis. The motivation and solution of the research in this paper can be summarized as follows.

8(1) As to ensure the pipeline robot works properly in the pipeline, the pipeline robot should have the function of automatic fault detection and diagnosis. The traditional fault detection and diagnosis algorithm cannot be intelligent; through researching various studies, the fault detection algorithm PSO-ResNet is proposed. This is a deep learning fault detection and diagnosis algorithm that combines particle swarm optimization algorithm and ResNet-50.

9(2) In the practical application of pipeline robots, the time and accuracy of fault detection and diagnosis and the influence of the temperature of the single-board computer on the operation of the algorithm are important indicators to ensure the safe work of pipeline robots in pipelines. In this paper, the PSO-ResNet algorithm is deployed on a single-board computer for comparison experiments. The time and accuracy of algorithm execution on different single-board computers and the temperature of the single-board computers are compared. The metrics are evaluated together to determine the Nvidia Jetson Nano as a fault detection and diagnosis unit for pipeline robots.

Related Works

10Along with the continuous development of deep learning-based machine fault detection and diagnosis algorithms, more and more researchers are investigating the effective use of deep learning techniques on embedded platforms. In the study, while Raspberry Pi can provide lower power consumption and energy-efficient performance, it can also be concluded that Nvidia Jetson platforms such as Jetson Nano, Jetson TX1, and Jetson TX2 have higher performance because they have higher-speed GPUs [7]. The Nvidia Jetson is considered the most widely used gas pedal in the extraction phase of machine learning. In addition, the Nvidia Jetson Nano is energy efficient and portable, making it easy to use and has high performance in low-power situations [8].

11The high-performance CPU and CUDA-compatible GPU make the Nvidia Jetson Nano development board perform well in benchmark tests. From the low-power perspective, the Nvidia Jetson Nano has higher performance, and the Raspberry Pi seems less suitable for high-performance deep-learning algorithm research [9].

12Edgar Ruiz compared the performance metrics such as algorithm execution time, algorithm accuracy, CPU performance, and temperature of Raspberry PiCM4 and Nvidia Jetson Nano by using the SVM algorithm. In that study, only machine learning algorithms were compared. The complexity of the algorithms is relatively low and is not studied for more advanced and complex deep learning algorithms [10]. Gunawan Dewantoro used image processing and computer vision techniques to allow the patrol robot to identify objects and control robot motion. The performance of the patrol robot using different CPU controllers (Raspberry Pi and Jetson Nano) was compared. It was concluded that the GPU embedded in the Jetson Nano significantly affected the performance of processing video and graphics, so the robot with the Jetson Nano could perform faster image processing. However, only the accuracy of the algorithms was compared in this study, and the impact of factors such as single-board computer temperature and CPU occupancy on the performance of the single-board computer was not considered [11].

13Xiaocui Hong compares the performance of single-board computers Nvidia Jetson Nano, Nvidia Jetson TX2, and Raspberry Pi 4 by using deep learning CNN algorithms. The parameters for performance analysis were defined as consumption (GPU, CPU, RAM, Power), algorithm accuracy, and single-board computer cost, and the data sets for training and testing of the models were classified as 5K, 10K, 20K, 30K, and 45K. Such an operation extends the variability of single-board computer performance [12]. There was no experimental study of algorithms for machine fault detection and diagnosis in this study, and the accuracy of the two-dimensional DNN algorithm for fault detection and diagnosis in pipeline robots was not high [13].

14Traditional machine learning fault detection and diagnosis algorithms, such as k-NNbased, plain Bayesian-based, SVM-based, and ANN-based, are relatively low in complexity and easy to implement [5]. However, these traditional machine learning fault diagnosis methods have low recognition rates, poor robustness, and rely on manual feature extraction [14]. Deep learning provides an effective method to automatically learn features at multiple levels of abstraction so that complex input-to-output functions can be learned directly from data without relying on feature extractors, which can be of great benefit for fault diagnosis in pipeline robots [5].

15Fault detection and diagnosis algorithms represented by deep learning such as BP neural networks, DNN, CNN, residual networks, and attention mechanism residual networks [13][14][15]. Deep learning networks do not require any feature extraction techniques and have high accuracy and robustness in noisy environments [16,17].

16Kai Zhang improves the residual network. A hybrid attention improved residual network (HA-ResNet) based method is proposed to diagnose the fault of wind turbines gearbox by highlighting the essential frequency bands of wavelet coefficients and the fault features of convolution channels [12]. Xiaocui Hong proposed a new method for fusion diagnosis based on a multimodal residual network (M-ResNet) and discriminant correlation analysis (DCA). The M-ResNet consisting of one-dimensional ResNet (1D-ResNet) and twodimensional ResNet (2D-ResNet) is constructed to extract richer and more comprehensive fault features [13]. Long Wen studied a migrating convolutional neural network for fault diagnosis based on ResNet-50. ResNet-50 trained in ImageNet is used as a feature extractor for fault diagnosis by using a migration learning approach [18]. Kai Zhang proposed a novel method based on an adaptive loss-weighted meta-residual network (ALWM-ResNet). It is proposed to address fault diagnosis with noisy labels using a weighted network and a meta-network cloned from the original ResNet to establish a weighted function mapping to adaptively learn weights from data with clean labels [19]. Shaofeng Fu proposed a SE-ResNet PV array fault diagnosis algorithm based on a residual network (ResNet) and squeezed excitation network (SENet) with Bayesian optimization (BO) for parameters [20]. Xinjie Peng proposed a fault diagnosis method based on a combination of PCA and ResNet. The original data are denoised, and then the data are diagnosed and classified using a residual network. The practicality and robustness of the method were experimentally demonstrated [21]. As the amount of data on the Internet grows, deep learning models take advantage of big data processing. Deep residual networks with higher feature extraction and generalization capabilities are widely used in the field of machine fault detection and diagnosis.

17Based on the above research, we propose the PSO-ResNet algorithm model. This model can actively find the optimal hyperparameters in network training compared to other fault diagnosis models. It provides researchers with a more scientific approach to training the model. We also deployed PSO-ResNet to Nvidia Jetson Nanoh and Raspberry Pi 4B. We tested the performance of embedded devices through comparative experiments. The search for more price-performance devices is important for the development of pipeline robots.

Description of the Proposed Method

18The overall process of this study is divided into three parts: signal acquisition and input, single-board computer fault diagnosis, and fault result output. The input signals used in the pipeline robot fault detection and diagnosis study are vibration signals, and the single-board computer is mainly Nvidia Jetson Nano and Raspberry Pi 4B. The fault diagnosis results are the types of faults occurring in the pipeline robot. The fault detection and diagnosis algorithm use a residual network combining continuous wavelet transform, particle swarm optimization algorithm, and ResNet-50. The main block diagram of the proposed method is shown in Figure 1.

19work (ALWM-ResNet). It is proposed to address fault diagnosis with noisy labels using a weighted network and a meta-network cloned from the original ResNet to establish a weighted function mapping to adaptively learn weights from data with clean labels [19] Shaofeng Fu proposed a SE-ResNet PV array fault diagnosis algorithm based on a residual network (ResNet) and squeezed excitation network (SENet) with Bayesian optimization (BO) for parameters [20]. Xinjie Peng proposed a fault diagnosis method based on a combination of PCA and ResNet. The original data are denoised, and then the data are diagnosed and classified using a residual network. The practicality and robustness of the method were experimentally demonstrated [21]. As the amount of data on the Internet grows, deep learning models take advantage of big data processing. Deep residual networks with higher feature extraction and generalization capabilities are widely used in the field of machine fault detection and diagnosis.

20Based on the above research, we propose the PSO-ResNet algorithm model. This model can actively find the optimal hyperparameters in network training compared to other fault diagnosis models. It provides researchers with a more scientific approach to training the model. We also deployed PSO-ResNet to Nvidia Jetson Nanoh and Raspberry Pi 4B. We tested the performance of embedded devices through comparative experiments The search for more price-performance devices is important for the development of pipeline robots.

21The overall process of this study is divided into three parts: signal acquisition and input, single-board computer fault diagnosis, and fault result output. The input signals used in the pipeline robot fault detection and diagnosis study are vibration signals, and the single-board computer is mainly Nvidia Jetson Nano and Raspberry Pi 4B. The fault diagnosis results are the types of faults occurring in the pipeline robot. The fault detection and diagnosis algorithm use a residual network combining continuous wavelet transform particle swarm optimization algorithm, and ResNet-50. The main block diagram of the proposed method is shown in Figure 1.

Pipeline Robot

22The main work of pipeline robots is to inspect oil pipelines, obtain abnormal locations, and prevent LPG pipeline safety accidents. The pipeline robot can enter the pipeline in a relatively narrow space and replace the workers to complete the inspection and maintenance of the pipeline, which can greatly improve the efficiency of pipeline

23The main work of pipeline robots is to inspect oil pipelines, obtain abnormal locations, and prevent LPG pipeline safety accidents. The pipeline robot can enter the pipeline in a relatively narrow space and replace the workers to complete the inspection and maintenance of the pipeline, which can greatly improve the efficiency of pipeline maintenance and reduce maintenance costs. The pipeline robot has a reasonable ontology structure and control method to ensure that it does not slip, overturn, or jam inside the pipeline; the pipeline robot can accurately identify the early and minor faults that appear in itself to avoid the minor faults from evolving into serious faults that cause the robot to lose control and fail to exit the pipeline. Figure 2 shows the working situation of the pipeline robot.

24ors 2023, 23, x FOR PEER REVIEW 5 of maintenance and reduce maintenance costs. The pipeline robot has a reasonable ontolo structure and control method to ensure that it does not slip, overturn, or jam inside t pipeline; the pipeline robot can accurately identify the early and minor faults that appe in itself to avoid the minor faults from evolving into serious faults that cause the robot lose control and fail to exit the pipeline. Figure 2 shows the working situation of the pip line robot.

Nvidia Jetson Nano

25Nvidia Jetson Nano is a small, powerful computer for embedded applications and IoT that delivers the power of modern AI. It has the comprehensive JetPack SDK w accelerated libraries for deep learning, computer vision, graphics, multimedia, and mo Meanwhile, the Nvidia Jetson Nano can run multiple neural networks in parallel for a plications such as image classification, object detection, segmentation, and speech p cessing. All on an easy-to-use platform that runs in as little as 5 watts. Figure 3 shows t Nvidia Jetson Nano with 2 GB RAM. The official Nvidia website shows a comparison b tween the performance of this single-board computer and the Raspberry Pi 3, Intel Neu Compute Stick 2, and Google Edge TPU Coral development motherboard, where the J son Nano outperforms the aforementioned platforms [10].

Raspberry Pi 4B

26The Raspberry Pi 4B is a microcomputer the size of a credit card. It has great spe and performance improvement over the earlier models. It has many features, such as e iting documents, opening a bunch of tabs to browse the web, working with spreadshee and editing presentations. The biggest advantage of the Raspberry Pi 4B is that it smaller, more energy efficient, and more economical. The overall architecture is shown

Nvidia Jetson Nano

27Nvidia Jetson Nano is a small, powerful computer for embedded applications and AI IoT that delivers the power of modern AI. It has the comprehensive JetPack SDK with accelerated libraries for deep learning, computer vision, graphics, multimedia, and more. Meanwhile, the Nvidia Jetson Nano can run multiple neural networks in parallel for applications such as image classification, object detection, segmentation, and speech processing. All on an easy-to-use platform that runs in as little as 5 watts. Figure 3 shows the Nvidia Jetson Nano with 2 GB RAM. The official Nvidia website shows a comparison between the performance of this single-board computer and the Raspberry Pi 3, Intel Neural Compute Stick 2, and Google Edge TPU Coral development motherboard, where the Jetson Nano outperforms the aforementioned platforms [10]. maintenance and reduce maintenance costs. The pipeline robot has a reasonable on structure and control method to ensure that it does not slip, overturn, or jam insi pipeline; the pipeline robot can accurately identify the early and minor faults that a in itself to avoid the minor faults from evolving into serious faults that cause the ro lose control and fail to exit the pipeline. Figure 2 shows the working situation of th line robot.

28Nvidia Jetson Nano is a small, powerful computer for embedded applications IoT that delivers the power of modern AI. It has the comprehensive JetPack SDK accelerated libraries for deep learning, computer vision, graphics, multimedia, and Meanwhile, the Nvidia Jetson Nano can run multiple neural networks in parallel plications such as image classification, object detection, segmentation, and speec cessing. All on an easy-to-use platform that runs in as little as 5 watts. Figure 3 sho Nvidia Jetson Nano with 2 GB RAM. The official Nvidia website shows a comparis tween the performance of this single-board computer and the Raspberry Pi 3, Intel N Compute Stick 2, and Google Edge TPU Coral development motherboard, where t son Nano outperforms the aforementioned platforms [10].

Raspberry Pi 4B

29The Raspberry Pi 4B is a microcomputer the size of a credit card. It has great and performance improvement over the earlier models. It has many features, such iting documents, opening a bunch of tabs to browse the web, working with spread and editing presentations. The biggest advantage of the Raspberry Pi 4B is th smaller, more energy efficient, and more economical. The overall architecture is sho Figure 4.

30The Raspberry Pi 4B is a microcomputer the size of a credit card. It has great speed and performance improvement over the earlier models. It has many features, such as editing documents, opening a bunch of tabs to browse the web, working with spreadsheets, and editing presentations. The biggest advantage of the Raspberry Pi 4B is that it is smaller, more energy efficient, and more economical. The overall architecture is shown in Figure 4.

PSO-ResNet Model

31The continuous wavelet transform is developed on the basis of the Fourier transform [22]. The continuous wavelet transform can solve the problem that the Fourier transform exists where the time domain and frequency domain information of the signal cannot be localized at the same time. Real-world data or signals often exhibit a tendency to change slowly or oscillate due to transients [23]. On the other hand, images have smooth regions that are interrupted by edges or sudden changes in contrast, and the Fourier transform cannot effectively represent sudden changes because the Fourier transform represents data as a sum of sinusoids that are not localized in time or space, and these sinusoids oscillate forever [24,25]. In order to analyze abruptly changing signals and images well and accurately; the wavelet transform is used that is well localized in both time and frequency. Wavelet transforms are rapidly decaying waves and wavelets exist for a finite duration [26].

32Particle Swarm Optimization (PSO) is a global optimization algorithm based on population intelligence. In the PSO algorithm, each solution is considered as a position of a particle, while each particle represents a candidate solution, and the optimal solution is searched by continuously updating the velocity and position of the particles. Specifically, each particle maintains two vectors: a position vector and a velocity vector [27]. During the search process, the position and velocity of each particle are continuously adjusted until the optimal solution is found or a preset stopping condition is reached. Figure 5 illustrates the overall flow of the particle swarm optimization algorithm. Particle swarm optimization algorithms are simple to implement and do not require many parameters to be adjusted. In general, it can be applied to a variety of complex problems to find globally optimal solutions with fast convergence and high efficiency. Currently, particle swarm optimization algorithms have been widely used in function optimization, neural network training, fuzzy system control, and other applications of genetic algorithms [28].

33Optimization of residual network models using particle swarm optimization algorithms. The main use of the particle swarm optimization algorithm is to optimize the initialization parameters of the training model [27]. The optimization parameters are set for the particle swarm optimization algorithm, which includes: the number of particles, the maximum and minimum values of the parameters being optimized, the number of iterations of the optimization algorithm, and the maximum velocity of each particle per movement [29]. The particle swarm optimization algorithm can search for the optimal solution and find the best parameters for the network training in order to be used in the training of the residual network model. In addition, the particle swarm optimization algorithm is applied to optimize the weights and biases of each residual block in ResNet-50 in order to improve the performance of the network [30]. In each iteration, the PSO algorithm can be used to update the position and velocity of each particle in order to find the best solution. By continuously iterating, the optimal weights and deviations can be found, thus

34The continuous wavelet transform is developed on the basis of the Fourier transform [22]. The continuous wavelet transform can solve the problem that the Fourier transform exists where the time domain and frequency domain information of the signal cannot be localized at the same time. Real-world data or signals often exhibit a tendency to change slowly or oscillate due to transients [23]. On the other hand, images have smooth regions that are interrupted by edges or sudden changes in contrast, and the Fourier transform cannot effectively represent sudden changes because the Fourier transform represents data as a sum of sinusoids that are not localized in time or space, and these sinusoids oscillate forever [24,25]. In order to analyze abruptly changing signals and images well and accurately; the wavelet transform is used that is well localized in both time and frequency. Wavelet transforms are rapidly decaying waves and wavelets exist for a finite duration [26].

35Particle Swarm Optimization (PSO) is a global optimization algorithm based on population intelligence. In the PSO algorithm, each solution is considered as a position of a particle, while each particle represents a candidate solution, and the optimal solution is searched by continuously updating the velocity and position of the particles. Specifically, each particle maintains two vectors: a position vector and a velocity vector [27]. During the search process, the position and velocity of each particle are continuously adjusted until the optimal solution is found or a preset stopping condition is reached. Figure 5 illustrates the overall flow of the particle swarm optimization algorithm. Particle swarm optimization algorithms are simple to implement and do not require many parameters to be adjusted. In general, it can be applied to a variety of complex problems to find globally optimal solutions with fast convergence and high efficiency. Currently, particle swarm optimization algorithms have been widely used in function optimization, neural network training, fuzzy system control, and other applications of genetic algorithms [28].

36Optimization of residual network models using particle swarm optimization algorithms. The main use of the particle swarm optimization algorithm is to optimize the initialization parameters of the training model [27]. The optimization parameters are set for the particle swarm optimization algorithm, which includes: the number of particles, the maximum and minimum values of the parameters being optimized, the number of iterations of the optimization algorithm, and the maximum velocity of each particle per movement [29]. The particle swarm optimization algorithm can search for the optimal solution and find the best parameters for the network training in order to be used in the training of the residual network model. In addition, the particle swarm optimization algorithm is applied to optimize the weights and biases of each residual block in ResNet-50 in order to improve the performance of the network [30]. In each iteration, the PSO algorithm can be used to update the position and velocity of each particle in order to find the best solution. By continuously iterating, the optimal weights and deviations can be found, thus optimizing the performance of the residual network. The particle swarm optimization algorithm is combined with the residual network, which not only effectively improves the network model generalization ability and accuracy but also increases the speed at which the network model learns the differences between different faults and effectively distinguishes between impassable fault types [28]. optimizing the performance of the residual network. The particle swarm optimization algorithm is combined with the residual network, which not only effectively improves the network model generalization ability and accuracy but also increases the speed at which the network model learns the differences between different faults and effectively distinguishes between impassable fault types [28].

Start

37Initialize particle swarm parameters As a modified convolutional network, the residual network is based on a series of convolutional and pooling layers [16]. Convolutional layers achieve sparse interaction and parameter sharing during data transfer, reducing the number of model parameters [19]. ResNet implements a layer backoff mechanism by adding a Skip Connection between the input and output of the convolutional layers. Input x is passed through two convolutional layers to obtain the feature-transformed output ( ) F x , which is summed with the corresponding elements of input x to obtain the final output ( ) H x :

38( ) H x is called the residual module [31]. The residual structure is shown in Figure 6.

39In the study of this paper, we used the ResNet structure shown in Figure 7, which was adopted for two main reasons: (1) the backward propagation basically conforms to the assumption that the information transfer is unhindered; (2) the BN layer acts as a preactivation and plays a role of regularization. This has a great effect on the network training to improve the accuracy of the model. As a modified convolutional network, the residual network is based on a series of convolutional and pooling layers [16]. Convolutional layers achieve sparse interaction and parameter sharing during data transfer, reducing the number of model parameters [19]. ResNet implements a layer backoff mechanism by adding a Skip Connection between the input and output of the convolutional layers. Input x is passed through two convolutional layers to obtain the feature-transformed output F(x), which is summed with the corresponding elements of input x to obtain the final output H(x):

40H(x) is called the residual module [31]. The residual structure is shown in Figure 6.

41In the study of this paper, we used the ResNet structure shown in Figure 7, which was adopted for two main reasons: (1) the backward propagation basically conforms to the assumption that the information transfer is unhindered; (2) the BN layer acts as a pre-activation and plays a role of regularization. This has a great effect on the network training to improve the accuracy of the model. As shown in Figure 8, PSO-ResNet mainly consists of the signal processing part and the ResNet-50 network learning part. ResNet-50 is mainly divided into 5 stages, in which the structure of Stage 0 is relatively simple and can be regarded as the pre-processing of the input, and the last 4 stages are composed of Bottleneck, which have a similar structure. Stage 1 contains 3 Bottlenecks, and the remaining 3 stages include 4, 6, and 3 Bottlenecks, respectively.

42The optimization algorithm for residual neural networks determines the optimal value of the parameters by minimizing the error in the cost function, which in turn improves the performance of the network. The choice of learning rate and parameter optimization algorithms for residual neural networks will affect the performance of the network to some extent for different problems. In the training of residual networks, the optimization of hyperparameters plays a very important role in the speed of network training as well as the robustness and extensiveness of the model. The learning rate is a hyperparameter that controls the extent to which the residual network adjusts the network weights in terms of loss gradient; momentum is a common acceleration technique used in gradient descent methods. A suitable momentum can achieve an accelerated convergence process and facilitate our training [28].

43During the training of the PSO-ResNet, if the learning rate is set too large, the network will not converge and will hover around the optimum, thus neglecting to find the optimum; if the learning rate is set too small, the network will converge very slowly and will increase the time to find the optimum. Although it is possible to achieve better training results by setting a very small learning rate, this is likely to converge into the local extrema, with no real optimal solution found. In this paper, the initial value of the learning rate when first training the PSO-ResNet model is 0.00001. In general, the learning rate ranges from 0.00001 to 0.1. As the number of iterations increases, the learning rate decreases to accelerate the convergence of the loss function. Throughout the training period, the learning rate from the beginning to the end of training is reduced by a factor of one hundred of the initial value. As shown in Figure 8, PSO-ResNet mainly consists of the signal processing part and the ResNet-50 network learning part. ResNet-50 is mainly divided into 5 stages, in which the structure of Stage 0 is relatively simple and can be regarded as the pre-processing of the input, and the last 4 stages are composed of Bottleneck, which have a similar structure. Stage 1 contains 3 Bottlenecks, and the remaining 3 stages include 4, 6, and 3 Bottlenecks, respectively.

44The optimization algorithm for residual neural networks determines the optimal value of the parameters by minimizing the error in the cost function, which in turn improves the performance of the network. The choice of learning rate and parameter optimization algorithms for residual neural networks will affect the performance of the network to some extent for different problems. In the training of residual networks, the optimization of hyperparameters plays a very important role in the speed of network training as well as the robustness and extensiveness of the model. The learning rate is a hyperparameter that controls the extent to which the residual network adjusts the network weights in terms of loss gradient; momentum is a common acceleration technique used in gradient descent methods. A suitable momentum can achieve an accelerated convergence process and facilitate our training [28].

45During the training of the PSO-ResNet, if the learning rate is set too large, the network will not converge and will hover around the optimum, thus neglecting to find the optimum; if the learning rate is set too small, the network will converge very slowly and will increase the time to find the optimum. Although it is possible to achieve better training results by setting a very small learning rate, this is likely to converge into the local extrema, with no real optimal solution found. In this paper, the initial value of the learning rate when first training the PSO-ResNet model is 0.00001. In general, the learning rate ranges from 0.00001 to 0.1. As the number of iterations increases, the learning rate decreases to accelerate the convergence of the loss function. Throughout the training period, the learning rate from the beginning to the end of training is reduced by a factor of one hundred of the initial value. As shown in Figure 8, PSO-ResNet mainly consists of the signal processing part and the ResNet-50 network learning part. ResNet-50 is mainly divided into 5 stages, in which the structure of Stage 0 is relatively simple and can be regarded as the pre-processing of the input, and the last 4 stages are composed of Bottleneck, which have a similar structure. Stage 1 contains 3 Bottlenecks, and the remaining 3 stages include 4, 6, and 3 Bottlenecks, respectively.

46The optimization algorithm for residual neural networks determines the optimal value of the parameters by minimizing the error in the cost function, which in turn improves the performance of the network. The choice of learning rate and parameter optimization algorithms for residual neural networks will affect the performance of the network to some extent for different problems. In the training of residual networks, the optimization of hyperparameters plays a very important role in the speed of network training as well as the robustness and extensiveness of the model. The learning rate is a hyperparameter that controls the extent to which the residual network adjusts the network weights in terms of loss gradient; momentum is a common acceleration technique used in gradient descent methods. A suitable momentum can achieve an accelerated convergence process and facilitate our training [28].

47During the training of the PSO-ResNet, if the learning rate is set too large, the network will not converge and will hover around the optimum, thus neglecting to find the optimum; if the learning rate is set too small, the network will converge very slowly and will increase the time to find the optimum. Although it is possible to achieve better training results by setting a very small learning rate, this is likely to converge into the local extrema, with no real optimal solution found. In this paper, the initial value of the learning rate when first training the PSO-ResNet model is 0.00001. In general, the learning rate ranges from 0.00001 to 0.1. As the number of iterations increases, the learning rate decreases to accelerate the convergence of the loss function. Throughout the training period, the learning rate from the beginning to the end of training is reduced by a factor of one hundred of the initial value. According to the optimization idea of the particle swarm algorithm, the optimal hyperparameters are used as the search target of the particle swarm algorithm. The loss value is the fitness function value, and the parameters corresponding to the best fitness value are recorded. In each iteration, the particles are continuously optimized in the direction of these two parameters, and the resulting new parameters are sequentially fed into the network and iteratively updated until the end of the iteration.

48In this paper, training experiments of the PSO-ResNet network are conducted on a homemade dataset, and the values of the loss function of the network under the same number of iterations are used as the individual fitness scores. After multiple iterations, the local optimum and the global optimum are obtained, and their corresponding hyperparameters are saved.

49The biggest advantage of PSO-ResNet is that it not only reduces the cost for researchers to tune hyperparameters and accelerates the training of ultra-deep neural networks but also significantly improves the accuracy of deep networks. In addition, PSO-ResNet largely avoids the problem of gradient disappearance or gradient explosion as the number of layers of the network increases, which makes it possible to train extremely deep networks.

Experimental Study and Results

50Jetson Nano and Raspberry Pi as the core control unit for pipeline robot fault diagnosis. Due to the complex architecture of the PSO-ResNet network, training the model with two single-board computers are almost impossible. The environment for model training is a 64-bit Windows 11 operating system, the CPU is 13th Gen Intel(R) Core(TM) i7-13700F 2.10 GHz, the graphics card is NVIDIA Ge Force RTX 3060, and the memory is 16.00 GB. The entire algorithm is written in Python, and the model framework is built by PyTorch.

51The motor bearing faults are set as follows: damage of 0.1778 mm diameter, damage of 0.3556 mm diameter, and damage of 0.5334 mm diameter. The types of faults are shown in Table 1. In order to have more data to participate in model training, based on the Case Western Reserve University (CWR) bearing data, we placed some vibration signal sensors above the bearing seat at the motor drive end of the pipeline robot to collect the vibration signal of the faulty bearing. In addition, Jetson Nano and Raspberry Pi were embedded in the pipeline robot to receive the collected vibration signals, and the structure of the pipeline robot is shown in Figure 9. The trained algorithm models are deployed on two single-board computers. In addition, the performance metrics considered for the single-board computer benchmark are algorithm accuracy (%), runtime (ms), CPU usage (%), and temperature ( • C).

52OR PEER REVIEW 11 of Figure 9. The schematic diagram of the structure of the pipeline robot.

53The trained algorithm models are deployed on two single-board computers. In ad tion, the performance metrics considered for the single-board computer benchmark algorithm accuracy (%), runtime (ms), CPU usage (%), and temperature (°C).

Handling of Fault Data

54Before the model training, the acquired fault data are first processed. The acquir signals are converted into 2D images by continuous wavelet transform, and these 2D i ages are used as inputs for the deep learning algorithm to train the model. There are 10 2D images for each class of faults, and the proportions of each class of faults as a train set, test set, and validation set are 70%, 20%, and 10%, respectively, during the training

Model Deployment

55For the Nvidia Jetson Nano, to accelerate inference, the network is deployed us the TensorRT framework, a neural network inference framework that is optimized speed up inference and reduce the model size, and deploy neural networks on edge co puting devices for significant computational efficiency [32]. Converting network mod created by Jetson Nano or PC using Pytorch framework to Open Neural Network E change (ONNX) format, then converting to TensorRT format using ONNX parser, a deploying the converted TensorRT format to Jetson Nano for inference is an efficient a popular approach.

56For the deployment of the model on Raspberry Pi 4B, since Raspberry Pi does n contain the TensorRT inference framework, the network model created using the Pyto framework is directly converted to Open Neural Network Exchange (ONNX) format, co verted to IR intermediate model using openvino, downloaded openvino on Raspberry and used the IR model to perform inference.

Handling of Fault Data

57Before the model training, the acquired fault data are first processed. The acquired signals are converted into 2D images by continuous wavelet transform, and these 2D images are used as inputs for the deep learning algorithm to train the model. There are 1000 2D images for each class of faults, and the proportions of each class of faults as a training set, test set, and validation set are 70%, 20%, and 10%, respectively, during the training.

Model Deployment

58For the Nvidia Jetson Nano, to accelerate inference, the network is deployed using the TensorRT framework, a neural network inference framework that is optimized to speed up inference and reduce the model size, and deploy neural networks on edge computing devices for significant computational efficiency [32]. Converting network models created by Jetson Nano or PC using Pytorch framework to Open Neural Network Exchange (ONNX) format, then converting to TensorRT format using ONNX parser, and deploying the converted TensorRT format to Jetson Nano for inference is an efficient and popular approach.

59For the deployment of the model on Raspberry Pi 4B, since Raspberry Pi does not contain the TensorRT inference framework, the network model created using the Pytorch framework is directly converted to Open Neural Network Exchange (ONNX) format, converted to IR intermediate model using openvino, downloaded openvino on Raspberry Pi, and used the IR model to perform inference.

Analysis of Experimental Results

60After the pipeline robot detects a fault, the single-board computer acts as the core control unit for fault detection and diagnosis of the fault signal output. The two singleboard computers display the type of fault through a connected monitor, and the main results and categories of the output are shown in Figure 10. Sensors 2023, 23, x FOR PEER REVIEW 12 of 17 Table 2. The fault diagnosis model proposed in this paper has a large improvement in accuracy. Compared with ResNet-50 without the particle swarm optimization algorithm, PSO-ResNet improves accuracy by about 2%. For residual neural networks, the setting of hyperparameters is one of the most important factors in determining the performance of the model. Hyperparameters such as momentum and learning strategy will affect the accuracy of algorithm detection. The improved fault kind detection algorithm PSO-ResNet has a lower training error rate as well as a generalization error rate than the original algorithm, which reflects the algorithm's strong ability to optimize the neural network connection weights and to seek a better learning rate. Moreover, in terms of training time, the training time of PSO-ResNet with the addition of particle swarm optimization algorithm does not lag much behind the training time of ResNet-50, and the training speed is also relatively fast. Obviously, PSO-ResNet, with higher accuracy and faster training speed, is more suitable as a fault detection algorithm for the fault diagnosis system of the pipeline robot.

The Parameters Comparison of Jetson Nano and Raspberry Pi

61The Raspberry Pi 4B has a quad-core Cortex-A72 (ARM v8) 64-bit CPU, while the Nvidia Jetson Nano has a quad-core ARM Cortex-A57 MPCore CPU, which gives the Raspberry Pi 4B faster processing speed in terms of CPU performance. However, the Raspberry Pi 4B has a Broadcom VideoCore VI GPU (32-bit), while the Nvidia Jetson Nano has an NVIDIA Maxwell GPU w/128 CUDA cores. In terms of GPU performance, the Nvidia Jetson Nano has a faster image processing speed. A comparison of the specific parameters is shown in Table 3. Before testing the fault diagnosis algorithm, some performance attributes inherent to the two single-board computers were tested. Table 4 shows the performance of the two single-board computers in terms of data transfer, and Table 5 shows the temperature and CPU usage of the two single-board computers in standby mode. Since the pipeline robot stores the fault data in the storage unit of the single board computer first when it receives it, it is necessary to test the transfer rate. To obtain the performance characteristics of CPU and temperature, SystemMonitor of each single board computer was used to obtain these two types of data. Regarding accuracy and execution time data, these metrics were obtained by executing a fault diagnosis algorithm. The test of fault types was divided into 1 fault signal at a time input, 10 fault signals, and 100 fault signals. Testing the depth algorithm model based on PSO-ResNet, the program was run 100 times, and the results of the runs were averaged on the Nvidia Jetson Nano and Raspberry Pi 4B. Table 6 shows the data obtained from testing the PSO-ResNet model.

62In this context, as seen in the results shown in Table 5, both single-board computers provide similar algorithmic accuracy, indicating that this parameter depends more on the algorithm than on the performance of the single-board computer. As far as the execution time of the algorithm is concerned, it can be observed that the values of the Raspberry Pi 4B and the Nvidia Jetson Nano are about the same when one sample signal is input. The main reason for this phenomenon is that the number of input samples is small, and the single-board computer uses the CPU more for processing, while the CPU of the Raspberry Pi is a bit higher in performance than the Jetson Nano. When inputting 10 sample signals, the average execution time of Nvidia Jetson Nano is 152.33 ms faster than Raspberry Pi 4B, while when processing 100 input sample signals, the average execution time of Nvidia Jetson Nano is 15,154.4 ms faster than Raspberry Pi 4B, Jetson Nano executes about four times faster than the Raspberry Pi 4B. This difference is very surprising but reasonable because the Nvidia Jetson Nano has a better-performing GPU, which is helpful for more computationally intensive signal processing. In addition, it is very important for the safe and reliable operation of the pipeline robot to be able to know in time if a failure occurs.

63Regarding the percentage of CPU used, similar to the algorithm execution time, the number of incoming fault signals gradually increased at any time, and the CPU occupancy of the Raspberry Pi became higher and higher, even exceeding 60%. Although the Nvidia Jetson Nano has an elevated CPU occupancy, the CPU idle state is still sufficient, which ensures a smooth-running state of the single-board computer. In a similar situation, the Nvidia Jetson Nano requires fewer CPU resources to perform the same task.

Conclusions

64In this paper, a new fault diagnosis model PSO-ResNet is investigated for pipeline robot fault diagnosis, and the performance of different control units in the pipeline robot fault diagnosis module is analyzed. PSO-ResNet is a deep evolutionary model for finding the best combination of hyperparameters in residual network training. The excellent performance of the particle swarm algorithm is used to find the most suitable hyperparameters to indirectly improve the performance of the network model. This method not only reduces the labor cost for researchers to manually adjust hyperparameters but also makes it more scientific to adjust hyperparameters in network training. The experimental results show that the PSO-ResNet fault diagnosis algorithm model has a large improvement in accuracy, and the model has a better generalization ability and can find the best weights and deviations to optimize the performance of the residual network by selecting better parameters for the training of the model. When tested on a single-board computer, although the PSO-ResNet fault diagnosis algorithm model has the same accuracy on different single-board computers, the Nvidia Jetson Nano has better performance in terms of execution time, temperature, and CPU usage. In addition, the deployment of the fault diagnosis algorithm to the embedded GPU system Nvidia Jetson Nano using the TensorRT framework significantly reduces the inference time. In other ways, the smaller CPU footprint and better performing GPU means that the single-board computer can also do more work, which is helpful in studying pipeline robots to implement model updates for newly generated faults and expand more useful features of pipeline robots. Finally, while the Nvidia Jetson Nano is a bit more expensive when using deep learning algorithms for complex network models to accomplish specific tasks, the Nvidia Jetson Nano's superior performance makes it the preferred choice for low-cost embedded systems for pipeline robots.

65Although the PSO-ResNet model has achieved good results in experiments, there is still room for improvement in terms of accuracy. In order to improve the model's accuracy, future research can focus on improving the model's architecture and fine-tuning the pretrained network model for optimization. Additionally, the PSO-ResNet model occupies a large amount of memory, which limits its application in resource-limited environments such as mobile devices and embedded systems. Therefore, lightweighting the PSO-ResNet model is also one of the future research priorities.

66Supplementary Materials: The following supporting information can be downloaded at: https:// www.mdpi.com/article/10.3390/s23094289/s1, Figure S1: Illustration of pipeline robot operation status, Figure S2: Schematic diagram of pipeline robot structure.

참고문헌 31건

  1. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  2. Assessing the Performance and Energy Usage of Multi-CPUs, Multi-Core and Many-Core Systems : The MMP Image Encoder Case Study International Journal of Distributed and Parallel systems · 2016 10.5121/ijdps.2016.750
  3. Artificial intelligence for fault diagnosis of rotating machinery: A review Mechanical Systems and Signal Processing · Elsevier BV · 2018 10.1016/j.ymssp.2018.02.016
  4. A transfer convolutional neural network for fault diagnosis based on ResNet-50 Neural Computing and Applications · Springer Science+Business Media · 2019 10.1007/s00521-019-04097-w
  5. A Deep Adversarial Transfer Learning Network for Machinery Emerging Fault Detection IEEE Sensors Journal · IEEE Sensors Council · 2020 10.1109/jsen.2020.2975286
  6. Benchmarking Jetson Platform for 3D Point-Cloud and Hyper-Spectral Image Classification 2020 10.1109/bigcomp48618.2020.00-21
  7. Benchmark Analysis of Jetson TX2, Jetson Nano and Raspberry PI using Deep-CNN 2022 International Congress on Human-Computer Interaction, Optimization and Robotic Applications (HORA) · 2020 10.1109/hora49412.2020.9152915
  8. Deep Residual Network for Identifying Bearing Fault Location and Fault Severity Concurrently IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.3023970
  9. Novel Approach for Resolution Enhancement of Satellite Images Using Wavelet Techniques Advances in intelligent systems and computing · Springer Nature · 2020 10.1007/978-981-15-6584-7_2
  10. A Dynamic Neighborhood-Based Switching Particle Swarm Optimization Algorithm IEEE Transactions on Cybernetics · Institute of Electrical and Electronics Engineers · 2020 10.1109/tcyb.2020.3029748
  11. Fault diagnosis of photovoltaic array based on SE-ResNet Journal of Physics Conference Series · IOP Publishing · 2020 10.1088/1742-6596/1682/1/012004
  12. AE signature analysis using continuous and discrete wavelet transforms to predict grinding wheel conditions IOP Conference Series Materials Science and Engineering · IOP Publishing · 2021 10.1088/1757-899x/1045/1/012034
  13. A hybrid attention improved ResNet based fault diagnosis method of wind turbines gearbox Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.109491
  14. 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
  15. Multi-sensor heterogeneous data fusion method for rotor system diagnosis based on multi-mode residual network and discriminant correlation analysis Measurement Science and Technology · IOP Publishing · 2021 10.1088/1361-6501/ac05f6
  16. Automatic Optimization of YOLOv3 Based on Particle Swarm Algorithm EAI/Springer Innovations in Communication and Computing · Springer International Publishing · 2021 10.1007/978-3-030-70451-3_5
  17. A review on various types of in-pipe inspection robot Materials Today Proceedings · Elsevier BV · 2021 10.1016/j.matpr.2021.08.335
  18. Fault diagnosis for small samples based on attention mechanism Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.110242
  19. A Fast Intrusion Detection Method for High-Speed Railway Clearance Based on Low-Cost Embedded GPUs Sensors · Multidisciplinary Digital Publishing Institute · 2021 10.3390/s21217279
  20. Rolling Bearing Fault Diagnosis of Train Running Gear Based on Optimized Deep Residual Network 2021 10.1109/icacr53472.2021.9605166
  21. Intelligent fault diagnosis of hydraulic piston pump based on deep learning and Bayesian optimization ISA Transactions · Elsevier BV · 2022 10.1016/j.isatra.2022.01.013
  22. Comparative Study of Computer Vision Based Line Followers Using Raspberry Pi and Jetson Nano Jurnal Rekayasa Elektrika · Syiah Kuala University · 2021 10.17529/jre.v17i4.21324
  23. Overview of Intelligent Fault Diagnosis based on Machine Learning 2021 10.1109/iceib53692.2021.9686431
  24. Hybrid Particle Filter–Particle Swarm Optimization Algorithm and Application to Fuzzy Controlled Servo Systems IEEE Transactions on Fuzzy Systems · Institute of Electrical and Electronics Engineers · 2022 10.1109/tfuzz.2022.3146986
  25. Rolling Bearing Fault Diagnosis Based on PCA-ResNet Journal of Physics Conference Series · IOP Publishing · 2022 10.1088/1742-6596/2218/1/012082
  26. A Fault Diagnosis System for a Pipeline Robot Based on Sound Signal Recognition Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22093275
  27. Particle Swarm Optimization Fractional Slope Entropy: A New Time Series Complexity Indicator for Bearing Fault Diagnosis Fractal and Fractional · Multidisciplinary Digital Publishing Institute · 2022 10.3390/fractalfract6070345
  28. Advanced Photocatalytic Treatment of Wastewater Using Immobilized Titanium Dioxide as a Photocatalyst in a Pilot-Scale Reactor: Process Intensification Materials · Multidisciplinary Digital Publishing Institute · 2022 10.3390/ma15134547
  29. Intelligent Diagnosis Using Continuous Wavelet Transform and Gauss Convolutional Deep Belief Network IEEE Transactions on Reliability · Institute of Electrical and Electronics Engineers · 2022 10.1109/tr.2022.3180273
  30. A Review of Wavelet Analysis and Its Applications: Challenges and Opportunities IEEE Access · Institute of Electrical and Electronics Engineers · 2022 10.1109/access.2022.3179517
  31. A Computational Comparative Analysis Between Nvidia Jetson Nano and Raspberry Pi CM4 for the Classification of White Asparagus with SVM Smart innovation, systems and technologies · Springer Nature · 2022 10.1007/978-3-031-08545-1_49