Vision Robot Path Control Based on Artificial Intelligence Image Classification and Sustainable Ultrasonic Signal Transformation Technology

: The unsupervised algorithm of artificial intelligence (AI), named ART (Adaptive Resonance Theory), is used to first roughly classify an image, that is, after the image is processed by the edge filtering technology, the image window is divided into 25 square areas of 5 rows and 5 col-umns, and then, according to the location of the edge of the image, it determines whether the robot should go straight (represented by S), turn around (represented by A), stop (T), turn left (repre-sented by L), or turn right (represented by R). Then, after sustainable ultrasonic signal acquisition and transformation into digital signals are completed, the sustainable supervised neural network named SGAFNN (Supervised Gaussian adaptive fuzzy neural network) will perform an optimal path control that can accurately control the traveling speed and turning of the robot to avoid hitting walls or obstacles. Based on the above, this paper proposes the use of the ART operation after image processing to judge the rough direction, followed by the use of the ultrasonic signal to carry out the sustainable development of artificial intelligence and to carry out accurate speed and direction SGAFNN control to avoid obstacles. After simulation and practical evaluations, the proposed method is proved to be feasible and to exhibit good performance.


Introduction
ART (Adaptive Resonance Theory) is an unsupervised neural network developed in the 1980s. The main principle is to compare the output vector of the existing category by calculating the matching value according to the input vector. If it passes the test of similar value, it belongs to this type of output vector; otherwise, continue to compare until all the comparisons are completed; if they do not match, a new type of output vector will be generated [1][2][3]. The advantage of this method is that the threshold of matching value and similarity value can be adjusted to maintain the stability and plasticity of the classification. When the stability is high, there are fewer categories to be classified, and when the plasticity is improved, there are more categories. Therefore, how high the matching value should be set will affect the stability and plasticity of the judgment. These two values are mutually exclusive, and the best matching value is usually obtained by trial-and-error [4][5][6][7].
Regarding the deep learning technology of artificial intelligence of image recognition, the convolution neural network (CNN) was first introduced in recent years, and the sustainable research of robots combined with various control methods has also made breakthroughs. A sustainable architecture is proposed to control the robot after image processing, and the method is to use multi-layer deep feature fusion technology and fusion to perform accurate image classification. Usually, a camera is used to capture images and to conduct subsequent sustainable artificial intelligence control [8,9]. Position recognition of the robot has also been developed, such as farm management, robotic path planning, arable land detection from photos captured by drones with cameras, and the development of sustainable applications as more advanced features in agriculture. These applications are developed by many different methods, such as particle swarm optimization (PSO), fuzzy-PDC, image processing and neural networks, etc., to allow the robot controller to achieve optimal path control [10][11][12][13][14].
In general, the Gaussian membership function of fuzzy logic has only one variable, which controls the type of the Gaussian function. In the 1990s, some researchers proposed a new Gaussian function with four variables: three for the antecedent part and the other for the consequent part [15]. Therefore, these four variables can be adjusted by neural network mathematical derivation operations to achieve the effect of supervised learning. Then, combined with sliding control, more precise control performances can be obtained [16]. The image control mentioned in the previous paragraph is only used to obtain initial rough control. In order to obtain better control performance, there must be a design concept of sustainability. This paper proposes a method, which is to use an ultrasonic signal to assist the robot controller to obtain better performance. After all, if the robot is completely controlled by images, the computing burden of the hardware GPU (Graphic processing unit) will be very large, so the design concept here is that the front-end rough images are classified as go straight (represented by S), turn around (represented by A), stop (T), turn left (represented by L), or turn right (represented by R), which will be obtained as one of five results. Then, there is the sustainability control, which is controlled by a supervised Gaussian adaptive fuzzy neural network (SGAFNN); this input is the ultrasonic signal. The advantage of this design is to reduce the computational burden of the system and avoid the burst operation of SGAFNN. In this paper, a SGAFNN design was developed for mobile robots. A standalone camera is used as an image sensor to obtain image data, and the surrounding ultrasonic sensors are used to complement the main sensor to obtain all necessary data, then to generate the required path according to the control algorithm SGAFNN, and finally to follow this control law to achieve the purpose of avoiding collisions with walls and obstacles.
Fuzzy neural network (FNN) technologies have been developed successfully. Many different types of FNNs have been proposed in every area of research. FNN has the potential learning ability to cope with very complex dynamic actions. This allows a neural network to push reasonable input output maps such as to approximate any function with the required hidden layers of a neural network. It also allows a designed controller that does not depend on exact mathematical models [17,18]. In general, the layers of membership functions and output layers should be adaptive [19,20]. A Gaussian membership function, also known as a radial basis function (RBF), can be applied to approximate any continuous function and smooth function [21,22]. Adaptive FNN (AFNN) is also a strong tool, because its many parameters can be tuned online such that the learning speed and robustness can be guaranteed. Meanwhile, this is mainly combined with the traditional PID control theory, adding adjusted parameters to eliminate disturbance and uncertainties, so that the final steady-state error can converge to zero [22,23]. The most useful method is the projection theorem [24] because it has easy implementation, a confident learning ability, and reliable stability.
The motivation of the research is to divide the control steps into two parts. If the first part can be solved, the calculation of the second part will not be required. For example, in a spacious passage, the problem can be solved by using images processing and ART. However, if it reaches a narrow passage, it is necessary to carry out sustainable development of AI and carry out more precise path control. In this paper, a sustainable artificial intelligence and digital signal transformation module design concept is proposed. That is, in first is a simple design that then has an end complex design. The front-end only judges five possibilities. If it is S, then the back-end SGAFNN controls the speed. If it is R or L, then the back-end SGAFNN controls the angle and decelerates velocity. If it is A or T, it does not need to go through SGAFNN. Through such a sustainable artificial intelligence design concept, it can be expanded in the future, that is, according to system requirements, design modules can be superimposed, which we call sustainable artificial intelligence (SAI). In general, the best way to compensate for design errors or obtain system stability is to add a sliding controller (SC) [25][26][27][28]. Because this GAFNN is just a neural network controller, in order to ensure stability and accuracy, the best method is to combine it with an SC to become a full controller. Because the GAFNN controller is mainly looking for the direction of the control stable point, an SC has the ability to make the system stay at the absolute stable point of the system and resist disturbance and system uncertainty. The proposed method is to give the gain of control on-the-fly to let the error of the optimized GAFNN controller and the full controller approach zero. When we complete the design of the SGAFNN controller, the hardware can obtain reliable and applicable fuzzy if-then memory vector parameters. Based on these parameters, it can be actually written into the hardware program memory to become Fuzzy Associative Memory (FAM). As for the SC, it is the instant control rate to compensate for the change of the uncertainty limit. Finally, the performance comparison of the proposed SGAFNN for robotics shows that the performance and stability are guaranteed. The simulation results also show that better performance, robustness and stability are gained. In the practical implementation of robotics, the performance of the proposed method is shown to be effective, reliable, and excellent.

Sustainable Artificial Intelligence (SAI) Controller Design
This section is mainly divided into three subsections to discuss how to determine the direction from the initial ART image classification, and then sustainably use the ultrasonic signal to control the robot more accurately to avoid encountering obstacles. This relies on the artificial intelligence technology of neural networks and sliding mode control, which are described as follows.

ART Controller Design
First all, the algorithm of ART is briefly described in Table 1 below: Table 1. The algorithm of ART.
Step 1 Set the initial network weightings.
Step 2 Enter the vector values of the training data.
Step 3 Calculate the match values for all categories of existing classifications.
Step 4 Find the one with the largest matching value and calculate its similarity value with this category.
Step 5 If it exceeds the similarity value, it belongs to this category, otherwise, it is a new generated category.
Step 6 Return to step 2, repeat the calculation of all input data until they are finished and stop the calculation of the program.
After all, ART can only make five preliminary possible direction judgments (i.e., go straight (S), left turn (L), right turn (R), around turn (A), stop (T)) based on image processing; it cannot achieve precise control, so it is necessary to use the ultrasonic distance sensing signal to achieve a follow-up sustainable accurate control.

Supervised Gaussian Adaptive Fuzzy Neural Network (SGAFNN) Controller Design
When the image of the first stage is classified as S, L, or R, the system will automatically enter the SGAFNN control of the second stage. This section mainly discusses the derivation of this theory. Regarding this, a nonlinear system's mathematical model is as below: .
where x(t) and u(t) are n dimensional state vectors that represent state and control input vectors d(t) is unknown n dimensional disturbance and uncertainties with a known upper bound d(t) ≤ D, which is a norm. Because F and G depend on x(t), so in the following parts, for simplicity, the symbols of F, G, x, u, and d are used instead. Suppose an optimize controller u * exists in order to overcome unknown system parameters; this is not easily achieved. A sliding Gaussian adaptive fuzzy neural network (SGAFNN) controller is proposed to approximate this optimized controller. Meanwhile, a sliding controller is designed to compensate for those uncertainties and disturbances and for the approaching error between the SGAFNN and the optimize controller. According to the universal approximation theorem, optimal u * should exist. In the following derivation, for the sake of simplicity, the state vector and control vector are discussed separately as every single state and control input which is denoted as x and u. The reasonable error bound can be assumed during the design period. Then, a reasonable system stability bound can be guaranteed.
For a Gaussian adaptive fuzzy neural network (GAFNN) system, the simplified expression can be expressed as where R i denotes the ith fuzzy rule; z ik is the fuzzy set in the antecedent associated with the kth input variable at the ith fuzzy rule; and P ij denotes a constant associated with the jth output variable in consequence of the ith fuzzy rule. The inferred output is where . . u A in (x n is the inferred grade of the ith fuzzy rule and u A ik (x k is the membership function grade of fuzzy variable. The commonly used Gaussian-type membership function is defined as [15,16] where f ij (x i ) is the j-th membership function of the Gaussian membership function. The neural network is constructed as in Figure 1.  The (A) to (D) of left part stand for the antecedent parts of fuzzy rules, and the (E) to (F) of right part stand for the consequent parts of fuzzy rules. For every rule grade h i is calculated to get the result of Equation (3). The meanings of α ij and β ij and h i are the antecedent and consequent parts of fuzzy rules which is equivalent to W ij of Equation (3).
The neural network weightings calculations are got from the back-propagation algorithm. The calculation equations of every layers of neural networks are got as following descriptions.
where f (·) is the function of Equation (5), δ M j is the delta quantities in the jth unit at the output layer M; i M j is the input to the jth unit at the output layer M; y di is the ith desired system output; y i is the ith system output; µ j is the output through the jth unit at the output layer M, and ∂y i ∂u j is the partial derivative value of y i with respect to µ j . For hidden layer of (E): where all variables can be easy understood by the previous descriptions. Then, the calculation of weighting equations can be got as follows: The η and λ are learning rate and stabilizing factor, respectively. The adaptive law design is by using the universal approximation theorem, suppose there exists an optimal GAFNN such that α * β * and h * are the optimal antecedent and consequent parameters of GAFNN, respectively. The ε(t) denoted as the approximation error and is assumed to be bounded by 0 ≤ |ε(t)| ≤ E where E is a positive constant. The time invariant optimal parameters α * , β * and h * are defined as: where Ω α , Ω β and Ω h are compact sets of reasonable bounds on α, β, and h, respectively, and they are defined as where M α , M β , and M h are positive constants. In order to improve the accuracy of the weightings calculation, Equations (9)-(11) are used to adjust α ij , β ij , and h ij , which have larger variation ranges that are used to cope with the input signals but are unable to guarantee that α ∈ Ω α , β ∈ Ω β , and h ∈ Ω h . Therefore, these parameters are tuned according to the projection algorithm [16]. Finally, the parameters will be bounded in the compact sets. The adaptive laws are derived as follows . .

Sliding Mode Controller Design
When the bound is confirmed, for every state, the SC certainly can be put as the following equation to compensate for the error response effect: E and s are reasonable error bound and sliding surface, respectively [25]. The sliding surface is designed as follows e = x − x d (16) where x d is the desired state. Many studies have proposed efficient design methods for sliding surfaces, and in these methods, integral-type sliding functions are often used, defined as [29][30][31][32] In order to obtain a complete controller for each input, and since there are many uncertainties and response errors in the system, the following operations must be performed. .
In order for a system to be a Hurwitz polynomial, the k should be chosen as coefficients such that the mathematical roots will lie definitely in the left half of the open complex plane; this means lim t→∞ e(t) = 0. Meanwhile, the full controller u f can be designed to cope with these considered terms under the conditions of the system's time variant or time delay.
The control law is defined as where u GAFNN (t), s(t) and . s(t) are the GAFNN controller, inputs, and inputs' derivative, respectively. The u s (t) is sliding controller.
Based on GAFNN, the linear or nonlinear mapping relationship can be learned and memorized, so the initial parameters of AFNN can be preset and then adjusted and corrected by the adaptive law. According to the fuzzy universal approximation theorem, an optimal GAFNN exists as follows: (20) where ς is bounded by 0 ≤ |ς| ≤ E and it is represented as the design error, and where E is a positive number. Based on the well-known concept of error dynamics, after some intuitive manipulations, the governing error dynamic equation of the system can be achieved as: .
Define a Lyapunov function as Differentiating (23), the following derivation is then achieved as: .
Since . V(t) is negative semi-definite, this implies that s(t) is bounded and e(t) → 0 under the condition of t → ∞ .This means the SGAFNN controller's system stability is guaranteed [20]. The concept block diagram of the design is shown in Figure 2.

Simulation Result
When considering a mobile service robot model, a mathematical model can be set as shown in Figure 3. The state spaces of the dynamic equations are described as below [15]: where and a 1 = − 2c The detail meanings of the parameters can be found in [15]. An SGAFNN is designed to control the robot. The design purpose is to force the robot to track a desired path, which is obtained from the image of the camera and data from ultrasound sensors, the purpose of which is to decide whether the velocity should be down or not and how much the turning angle should be changed so as to avoid collisions with obstacles and walls. The real design environment diagram is as Figure 4. The velocity will be down when the obstacle image is obtained from the camera and the turning angle is tuned to avoid collision.
The input variables of SGAFNN are the tracking sliding function s v , s ϕ and its derivative . s v , . s ϕ of the robot's speed v d and rotation angle ϕ d , and the output variable is the torque of the robot, such as obtaining the required speed u v and rotation angle u ϕ , respectively. The control terms of the robot are u v and u ϕ , and the control torques are used for the left u l and right u r wheels, for a robot with two independent drive wheels. This is based on the design concept of SGAFNN, including a GAFNN and a sliding mode control input, namely The controlled terms of robot are v and ϕ and the control torques u l , u r are implemented to the left and right wheels. From the property of a robot with two independent driving wheels, the following relation equations are considered: The first step is to design the GAFNN controllers, which can tune the weightings online to force the sliding mode controller to work well such that its tracking error converges to zero in order to obtain a good tracking performance. Because the sliding mode controllers have been designed to cooperate with a GAFNN controller, the SGAFNN needs only 5 neurons in layer (D) of GAFNN, that is, 25 fuzzy rules are applied to input variables. The initial and tuned membership functions are shown in Figure 5. The weightings of α, β are set from 0.1 to 0.5 separately. The weightings of GAFNN are adjusted by an adaptive law from (12) to (14) to make real-time online adjustments. The learning factors are all set at 0.015. The simulation sample time is 0.02 s. In the simulation, the real parameters of the robot are I v = 10 kgm 2 , M = 20 kg, l = 0.3 m, I w = 0.005 kgm 2 , c = 0.05 kgm 2 /s, r = 0.1 m, and k = 5. Meanwhile, the reference velocity v d is given as 0.25 m/s, but the velocity will be down because the robot faces obstacles at times of 10 s and 35 s. The initial values of states variables are given as x(0) = 0 0 0 T . The simulation results are shown in Figure 6.
In the simulation of speed and direction control, although the effect of a sliding mode fuzzy neural network (SFNN) is already very good, in the sustainable development of artificial intelligence control, SGAFNN obviously improves the transient response and steady-state response; this is because, in addition to SFNN control, there are more and more complex parameters operations in SGAFNN such that it can obtain the optimal control force in advance, instead of relying solely on the control law of the SFNN control. This simulation result can also verify that the sustainable developing artificial intelligence control law is far superior to the traditional SFNN control law. By comparing the proposed design method of SGAFNN with the traditional SFNN methodology, improved and better performances and robustness are achieved.

Practical Evaluations
The experimental robot is composed of two driving wheels, one auxiliary wheel, a DC motor, a control system, a driving system, a decoder, and software. The control board consists of a CPU with a computing speed of 150 MHz, 32 bits, and 32 K RAM. There are

Practical Evaluations
The experimental robot is composed of two driving wheels, one auxiliary wheel, a DC motor, a control system, a driving system, a decoder, and software. The control board consists of a CPU with a computing speed of 150 MHz, 32 bits, and 32 K RAM. There are 11 ultrasonic sensors around to read the surrounding data. In addition, a notebook computer is used to connect to the control board via USB, process control signals, and issue commands to control the motors. Using this robot control panel and control system, signal observation and analysis for many robot controls, including position, velocity, and acceleration control, can be easily accomplished. Using sensor information and control system software, and by connecting with a laptop, many intelligent high-end robots controls can be completed, such as obstacle avoidance and path planning. In this paper, the practical test environment is set up as Figure 7. Two barriers were set up for testing. After reading the image and ultrasound sensor data, the robot can be controlled by the SGAFNN controller. The result of the motion trajectory is shown in Figure 8.  This shows that the wall and obstacles can be avoided. Regarding the image processing, results are shown in Figures 9 and 10. The commonly used image edge detection technique is utilized to identify the obstacle grade signal; if it exists, the peak signal will be generatedto slow down the robot speed. Meanwhile, by using ultrasound sensors a desired path can be generated. Finally, the SGAFNN cooperates with these data to control the robot to follow this desired path. The experiment shows that the proposed SGAFNN possesses good performance in terms of velocity and turning angle control so as to avoid collision with walls and obstacles in the real test environment.

Conclusions
In this paper, the concept is to develop a sustainable AI research method. That is, the image control and the ultrasonic control are designed separately. The control step is divided into two parts; the first part addresses the rough problem. If the first part cannot be solved, then go to the second part for more precise path control. In the first part, The ART is used to classify direction; in the second part, the SC is combined with GAFNN to be successful as a full controller of SGAFNN. The GAFNN controller is for compensating the error between the optimized GAFNN controller and the full controller. The system stability is guaranteed. Based on the image edge detection technique, a desired path can be obtained so as to feed it to the robot to follow to avoid collision with walls and obstacles. The simulation results show that the proposed SGAFNN controller reveals better performance, robustness, and guaranteed stability compared with traditional sliding mode fuzzy neural network control. The practical implementation of a robot demonstrates that the performance of the proposed methodology is effective, reliable, and good.