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 columns, 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 (represented 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.