1. Introduction
Mobile robots have become increasingly prevalent in various applications, from industrial automation to personal assistance. One of the critical challenges in mobile robotics is obstacle avoidance, which ensures the safe navigation of the robot in its environment [
1]. Conventional control techniques have limitations in dealing with the inherent uncertainties and complexities of real-world environments [
2].
Conventional, model-based control techniques often struggle to handle the inherent uncertainties and complexities of real-world navigation. These methods often rely on precise environmental models and struggle to adapt to unexpected obstacles or changing conditions [
3]. To address these challenges, intelligent control systems, such as fuzzy logic and adaptive neuro-fuzzy inference systems, have emerged as promising solutions [
4,
5,
6]. Fuzzy logic, inspired by human reasoning, excels in dealing with vagueness and linguistic information [
7], while neural networks offer powerful learning capabilities for adapting to dynamic environments [
8].
In this work, we present a comparative study of two intelligent control approaches for mobile robot obstacle avoidance: the adaptive neuro-fuzzy inference system (ANFIS) and the Mamdani fuzzy system. The ANFIS combines the learning capabilities of neural networks with the rule-based reasoning of fuzzy logic, offering a more flexible and adaptable control strategy [
4]. Adaptive neuro-fuzzy inference system leverages the advantages of fuzzy logic to handle uncertainty in sensor data, ensuring smooth and intuitive control actions, while simultaneously employing the adaptive learning capabilities of neural networks to optimize performance over time [
9]. The Mamdani fuzzy system, on the other hand, relies on a set of human-defined fuzzy rules to make decisions, providing a more intuitive approach to control [
5]. Both intelligent control methods have been extensively studied and applied in the field of mobile robotics, and each approach has its own strengths and limitations [
10]. This comparative study aims to evaluate the performance, robustness, and computational efficiency of these two control systems in the context of mobile robot obstacle avoidance, providing valuable insights for researchers and engineers working in this field.
Interestingly, while the adaptive neuro-fuzzy inference system offers greater adaptability and learning capabilities, the Mamdani fuzzy system may be more suitable for scenarios where the underlying system dynamics are well understood, and the control objectives can be easily translated into a set of fuzzy rules [
11]. The choice between the adaptive neuro-fuzzy inference system and the Mamdani fuzzy system for mobile robot obstacle avoidance depends on the specific requirements of the application, the available data, and the level of uncertainty in the environment [
12]. Autonomous robots are quite commonly used but the scale is limited to repeated tasks or indoor applications in most cases. For autonomous vehicles, the sensor technology must be made more accommodating since a diversity of possibilities occurs which populates into a huge dimensional problem [
4]. In this context, the adaptive neuro-fuzzy inference system and the Mamdani fuzzy system can play a crucial role in enhancing the obstacle avoidance capabilities of mobile robots, paving the way for more reliable and versatile autonomous systems.
In this work, we assess the performance of ANFIS and classic Mandami fuzzy controllers for obstacle avoidance in unknown scenarios using the measurements given by low-cost ultrasonic sensors as sensing data. Both controllers use as a base trajectory controller a fuzzy cluster arrangement that handles the heading angle towards the desired goal and moves the robot with a constant velocity. It is worth mentioning that this work deals with static obstacle avoidance within a controlled environment. The development of a fuzzy neural network for the avoidance of moving (dynamic) obstacles, as well as a performance comparison with other types of controllers, is part of future research and will be presented in future works. A key contribution of this work lies in the development of a comprehensive, model-based dataset for training the ANFIS controller. This dataset is generated with random data within a range that emulates the low-cost sensor measurements, a combination of avoidance rules, and the model of the robot. The resultant is a synthetic dataset that does not require real sensor data, enhances the ANFIS training, and can be adapted to the robot’s geometry and sensor models.
The performance assessment of both fuzzy topologies was carried out in simulation using the Pioneer DX3 robot within Coppelia Sim. The fuzzy systems were assembled and trained in Matlab which communicates with Coppelia Sim in real time. For the benefit of the community, the dataset generation along with the simulation files are available at
https://github.com/WChamorro/Neuro-Fuzzy-Obstacle-Avoidance.git (accessed on 7 November 2024).
The rest of the paper is organized as follows: Methodology presents a detailed overview of the adaptive neuro-fuzzy inference system and the Mamdani fuzzy system, including their key components and decision-making processes applied to a robot to avoid obstacles considering data from ultrasonic sensors. Then, the results are presented with a discussion about them, and finally, relevant conclusions are presented.
3. Results and Discussion
The fuzzy strategies for obstacle avoidance were evaluated through simulation using Coppelia Sim, where we assembled virtual scenarios of different complexity with obstacles of different shapes. Whitin Copelia the scenarios were configured with the Bullet engine as a physics computation motor due to its high performance in collision detection and rigid body dynamics, making it suitable for real-time applications for obstacle avoidance.
The Pioneer 3DX used in the experiments was set with geometry constants based on the real robot specifications to: [m], = 0.195 [m]. The robot’s maximum velocity was set to = 1.2 [m/s] which leads to considering an average velocity of = 0.6 [m/s]. The path’s curvature is constrained to = 0.3 [m] and = 1.2 [m]. The low-cost sensor model mounted in the virtual robot is the HC-SR04 from which we use constrained distance measurements from = 0.3 [m] to = 1 [m]. Recall that the sensing data and wheel speed were normalized from 0 to 1 to generate the training dataset for the ANFIS.
Avoidance Experiments
The ANFIS and Mamdani fuzzy strategies were assessed in two complex scenarios. Scenario A was built with scattered obstacles with rounded and squared shapes. In the center of the scenario, we place an elongated object that will test the avoidance capabilities due to the curve that the robot should make to reach the goal. The results in scenario A are pictured in
Figure 5, where the ANFIS scheme handles all the obstacles efficiently. As expected, the robot navigates closely to the large obstacle until it can turn towards the goal. On the other hand, the Mamdani approach produces an unnecessary loop while trying to avoid the large obstacle and detecting another obstacle on its path. Note that in
Figure 5 and
Figure 6, the ultrasonic beams are shown in red when no obstacle is detected and in yellow when an obstacle is present.
Scenario B emulates a narrow corridor where the robot should navigate closely to the walls. This experiment includes a closed curve towards the goal as displayed in
Figure 6. The ANFIS results in this scenario, shown in
Figure 6a, show a clean trajectory while the robot navigates closely to the walls even during the closed curve, where the robot follows the shape of the wall. In
Figure 6b the Mandami approach tries to face the goal all the time, yielding an oscillatory behavior in the presence of a persistent obstacle. This issue is related to the constant set of membership functions that were designed to address generic avoidance cases. The distribution of membership functions in the Mamdani-type system was not subjected to a tuning process; instead, a uniform distribution was directly applied across the entire evaluation range of the term set. This approach may require a fine tuning since the robot responses aggressively to an obstacle which may produce large deviations from the goal.
Evaluating obstacle avoidance schemes in robotics and autonomous systems can be approached through both qualitative and quantitative methods. Qualitatively, one can assess the effectiveness of the scheme by observing the robot’s ability to navigate around obstacles without collisions, maintaining smooth and natural movement patterns. Quantitative evaluation involves measuring specific metrics such as velocity and acceleration. By analyzing these parameters, one can determine the efficiency and responsiveness of the avoidance scheme, ensuring that the robot moves at an optimal speed while minimizing abrupt changes in acceleration, which can indicate inefficient or unsafe maneuvers. In this sense, the ANFIS produced smooth displacements with controlled accelerations as shown in
Figure 7b-bottom. This yields controlled movements and avoids unnecessary oscillations, especially while sensing large walls. In both scenarios, the ANFIS shows constant velocities with minimal acceleration especially when the robot navigates closely to the walls, see
Figure 7b-top. On the other hand, the Mandami approach tends to oscillate while avoiding an obstacle. In this case, large accelerations are observed in
Figure 7a-bottom, which may cause deviations or loops as the one observed in scenario A.
As shown in
Figure 7, the acceleration frequency is lower in the neuro-fuzzy control compared to the Mamdani control. This smoothness allows the robot to move more fluidly, avoiding getting stuck when evading an obstacle. Additionally, a lower acceleration frequency has the advantage of preventing mechanical wear and fatigue, particularly in experiments with a real robot.
One of the efficiency parameters used to determine the efficacy between the two controllers is the performance ratio. This metric is defined as the ratio between the shortest distance the robot can travel, which is the straight line the robot would take in an obstacle-free environment, and the distance actually traveled by the robot in each experiment. In this way, efficiency in identical scenarios can be compared using a dimensionless parameter, where the perfect distance (completely straight trajectory) would result in a performance ratio of 1. The lower this value, the poorer the performance of the controller analyzed in a given scenario.
Table 1 gives a clear overview of the metrics from each experiment. It includes the Root Mean Square (RMS) values for both speed and acceleration. When using the Mamdani-type fuzzy controller, there are significant changes in acceleration during orientation shifts. However, with the neuro-fuzzy controller, these peaks are greatly reduced, suggesting that this controller aims to keep the speed constant. In Scenario B, the values are quite similar and stay below one, mainly because the presence of multiple obstacles forces the robot to move more slowly. However, the time it takes for the robot to reach its target is significantly reduced when using the neuro-fuzzy control.
4. Conclusions
The results show the effectiveness of using intelligent control systems, specifically the adaptive neuro-fuzzy inference system (ANFIS) for obstacle avoidance in mobile robots. Findings highlight several key insights: ANFIS controller exhibited superior performance in complex obstacle avoidance scenarios compared to the Mamdani fuzzy system. This is primarily due to ANFIS’s ability to adapt and learn from the environment, resulting in smoother and more efficient navigation. In scenarios with scattered and complex obstacles, ANFIS managed to navigate without unnecessary loops or deviations, unlike the Mamdani system which sometimes struggled with large obstacles. The ability of ANFIS to adjust its parameters dynamically allowed it to handle unexpected changes and obstacles more effectively. Overall, the neuro-fuzzy controller demonstrates significant advantages in maintaining smoother and more efficient control, particularly in more complex scenarios with obstacles. In Scenario B, where multiple obstacles are present, the neuro-fuzzy controller not only reduces the trajectory time from 77.17 s (Mamdani) to 70.45 s but also maintains a favorable balance between speed and acceleration. This improvement in trajectory time suggests that the neuro-fuzzy controller can navigate obstacles more effectively, achieving faster goal attainment. Despite the slightly higher RMS acceleration in Scenario B, the neuro-fuzzy controller still manages to maintain efficient control, as indicated by a higher performance ratio of 0.82 compared to 0.74 for the Mamdani controller. This ratio highlights the neuro-fuzzy controller’s ability to find a more optimal path, staying closer to the ideal straight-line trajectory even in complex environments.
In narrow corridor scenarios, ANFIS maintained a clean trajectory closely following the walls, even during sharp turns. In contrast, the Mamdani system exhibited a sinusoidal trajectory due to aggressive responses to obstacles, indicating the need for fine-tuning to improve performance in such environments. Quantitative analysis of velocity and acceleration showed that ANFIS provided controlled movements with minimal unnecessary oscillations, especially when navigating close to walls. The Mamdani approach, however, led to larger accelerations and deviations, which can be inefficient and potentially unsafe. A significant contribution of this work is the development of a comprehensive, model-based dataset for training the ANFIS controller. This synthetic dataset, generated without real sensor data, enhances the training process and can be adapted to various robot geometries and sensor models, providing a versatile tool for future research.