Skip to Content
SensorsSensors
  • Article
  • Open Access

27 November 2025

19 Pages

RGB-Based Staircase Detection for Quadrupedal Robots: Implementation and Analysis

,
and
1
Department of Computer and Control Engineering, Rzeszow University of Technology, 35-959 Rzeszow, Poland
2
Department of Applied Mechanics and Robotics, Rzeszow University of Technology, 35-959 Rzeszow, Poland
*
Author to whom correspondence should be addressed.

Abstract

In this paper, we present a stair detection algorithm verified on various platforms, including a real quadruped robot. The proposed approach detects dangerous situations, such as proximity to stairs, in real time, enabling the robot to move safely. In our research, we utilized data collected by a moving four-legged robot, recorded in 18 sequences containing more than 21,000 color images from two cameras positioned at different perspectives. To address the challenge, we utilize a deep neural network with RGB inputs for object detection, complemented by preprocessing, and post-processing. A key feature of this approach is its adaptability to varying camera views, including both front and bottom perspectives on the robot, with training that incorporates multi-camera images from both views. We implemented and tested this algorithm on the Unitree Go1 robot, as well as on other embedded platforms. Using the trained YOLO version 11n network on a single sequence and testing on 17 sequences, we achieved an average mAP@50 of 51.30 for images containing only stairs and 87.56 for all images. This method enables early hazard detection during stair navigation. The proposed evaluation scenario tests the model’s adaptation from a single training sequence to multiple unseen sequences, extending existing stair detection methods for quadrupedal robots. The dataset presents high variability in stair appearance due to the robot’s perspective and limited real-time processing capacity.

1. Introduction

With rapid advancements in robotics, autonomous robots are being increasingly deployed across a broad spectrum of applications, performing tasks carried out by humans. In-progress intensive research aims to integrate these autonomous systems into dynamic environments further, expanding their capabilities and practical usage. One of the greatest challenges, especially for mobile robots, is ensuring reliable and safe navigation. In complex multi-story buildings, obstacles such as stairs often limit the mobility of wheeled and other ground-based robots. The ability to climb and navigate stairs [1] is essential, as stairs are common in many buildings. Robots must be specifically equipped and engineered to handle these scenarios. Movement on or near stairs is widely discussed in the literature [2,3] and can be a primary objective or part of more complex tasks. Numerous studies have introduced novel mechanisms, sensors, and performance evaluations specifically for stair-climbing robots [3,4]. The type of robot plays an important role in solving the stair climbing problem, and their classifications were widely discussed in [3]. We can define structures that represent a crawler robot [5], a foot robot [6], a wheel-coupler robot [7], and a wheel-legged robot [8]. Effective stair navigation for robots requires early detection of stairs and adaptation of the robot to perform the necessary movements. Sensors play a crucial role in this process, with different approaches employed depending on the type of device. Common methods for stair detection include the use of laser rangefinders [9] and LiDAR [10] sensors for precontact detection, while accelerometers [11] and gyroscopic sensors [12] aid in real-time navigation during ascent or descent. However, research on autonomous mobile robots places significant demands on hardware. Despite the growing adoption of robots, advanced platforms remain a costly component of research. As a result, work can be divided between real environments [13] and virtual environments [14]. A task can be challenging for hardware and often causes failures, so data from virtual environments are used in research.
An important and widely used approach in robotics is computer vision [15]. The use of cameras, such as RGB or RGB-D [16,17], not only complements other sensors, but also facilitates decision-making based solely on visual information. The advantage of such solutions is the number of available camera types, but also mechanisms such as stereoscopic vision [18]. These approaches are still under intensive development, and their main goal is to enable robots to detect stairs at an early stage. The proliferation of deep learning methods, coupled with advances in computational capabilities, has significantly accelerated progress in image analysis. The development of deep learning methods, particularly convolutional neural networks (CNNs) [19], combined with increased computational power, allows precise analysis and interpretation of image content. The early detection of stairs as an element of the environment is in good agreement with the challenges of object detection, as supported by recent studies in the literature [20].
In this paper, we focus on the detection of stairs as an object in the image using a quadruped robot that can mechanically climb stairs. This robot is also a key element in a number of current wide-ranging studies [21]. In the literature, some works utilize this type of robot for navigating various indoor and outdoor environments, addressing the challenge of climbing stairs. Research also addresses exploring the application of quadrupedal robots in scenarios such as disaster response, search and rescue [22], and urban exploration [23], where stairs are common structural elements. Beyond stairs, these robots face various challenges such as navigate and operate autonomously in complex environments [24]. The main challenge appears to be the detection of stairs, addressed through computer vision by leveraging a hardware set-up with cameras positioned at multiple perspectives on the robot’s body. However, most of the datasets on stair detection found in the literature are acquired from perspectives other than those typical for quadruped robots. Consequently, the data sets used for stair recognition must be updated to reflect these different points of view. An important aspect to consider is the use of cameras on the mobile platform that observe the ground directly beneath the robot as it moves. This creates new possibilities for recognition of objects, e.g., stairs, that are inaccessible for classical mobile robots. The most important aspect is that few studies present a real robot that registers and moves directly on the stairs. Verifying such a scenario is crucial for the proper implementation of the proposed solutions in real-world environments.
Existing studies and public datasets do not address the sequential scenario explored in this work, where stairs appear as integral elements of indoor environments observed by a mobile quadruped robot in motion. Unlike static datasets or single-view detection tasks, our setup considers a continuously changing camera pose typical of legged locomotion, where the robot perceives its surroundings in real time and must autonomously identify critical structural features such as stairs while moving through complex indoor spaces. This problem relates to long-term indoor perception in stable environments, where the robot revisits previously seen areas and must rely on persistent landmarks. The collected data, therefore, provide a foundation for developing methods robust to small, imbalanced datasets, serve as a practical extension of more general benchmark-oriented stair detection scenarios, and support future research on loop closure and place recognition, where stairs act as stable reference points within the environment.
In light of the limitations identified in the current existing literature, the principal contributions of this article are as follows:
  • evaluation of a staircase detection algorithm using unique multi-camera data with significant variation;
  • testing and validation on diverse software and hardware setups;
  • real-time implementation on an autonomous
    quadrupedal robot;
  • introduction and assessment of a sequential scenario in which the robot perceives and detects stairs while navigating dynamic indoor environments;
  • publicly available RGB staircase dataset capturing indoor passages from a quadrupedal robot’s perspective.
This paper addresses staircase detection by mobile robots and reviews related work, focusing on quadrupedal robots and computer vision methods. It describes the mobile platform, the process of collecting dynamic sequences, and the proposed YOLO-based method. Results from multiple sequences are analyzed, highlighting performance metrics and processing times across various platforms and models, and demonstrating the method’s applicability to real-world quadrupedal robotic applications.

3. Dataset

This chapter presents the mobile platform and the data collection process. The paper [3] confirms that quadrupedal robots can overcome various obstacles in the terrain, including stairs. Due to the popularity of such structures, the paper [46] discusses current research issues in key technical areas related to quadrupedal robots. An example of such a platform is the quadruped robot GO1 by Unitree, shown in Figure 1. The manufacturer indicates that the robot has the ability to control the position of each of the 12 joints. This allows for the implementation of force control of the entire robot and the development of speeds up to 3.7 m/s (in the started mode up to 4.7 m/s). Due to the topic discussed, it is important that GO1 has three NVIDIA Jetson Nanos. These are connected by five cameras, which are part of the robot’s sensory system. They are complemented by encoders associated with joints, the IMU system, and distance sensors. In this work, we focus on two cameras that were selected as potentially the most effective in detecting stairs. The front camera is mounted on the robot’s head, whereas the lower front camera is placed under the robot’s head. This choice significantly improved the robot’s ability to observe potential threats both in front of it and below it, especially when the robot approaches stairs. The data collected after preprocessing for benchmarking have been prepared and publicly released (The dataset is publicly available: https://pwozniak.kia.prz.edu.pl/stairsdetection2025, accessed on 20 November 2025).
Figure 1. View of the Unitree Go1 robotic platform.
The study uses data collected by a Unitree Go1 mobile robot as it navigates through the building environment. The dataset consists of stereo sequences of RGB images captured by cameras mounted on the front and front-bottom of the robot. The raw images captured at 1856 × 800 px are distorted by fisheye lenses, which affect object detection and depth perception. This type of distortion may lead to significant curvature in the image, potentially impacting the interpretation of spatial relationships. An example of the data views from the front and front-bottom cameras is shown in Figure 2. Figure 3 presents a bar chart with the number of images in each sequence and the subset of images containing stairs. The number of images in each sequence varies, primarily based on the length of the route and the data collection unit connected to the robot. An analogous difference occurs in the number of images depending on the camera that records them. The distributed architecture, with cameras operated on different Jetson platforms, causes variations in the number of images captured. The front camera captures a greater number of staircase occurrences due to its position and viewpoint. In contrast, the bottom camera cannot observe the stairs from a distance, but its data are still extremely important. This is because, when stairs are detected, they are typically close to the robot or in direct contact with it. For the front camera, 34% of images contain stairs. For the bottom camera, 13%. Overall, 23% of images from both cameras include stairs.
Figure 2. Views from front and front-bottom cameras.
Figure 3. Number of images in sequences for cameras.
Each image was manually annotated with bounding boxes covering the entire stair surface, unlike some datasets that annotate only the central part. It is crucial not only to detect the stairs but also to assess how much of the scene they occupy from the robot’s perspective. Each labeled image has been scaled to a resolution of 800 × 800 pixels. The robot walked around the building following designated paths. A total of 18 independent sequences were performed, during which the robot climbed the stairs under different conditions. The important conditions that made staircase detection difficult were mainly moving people and changing lighting conditions. The environment in which the robot moved contained sixteen different stairs, and the robot moved directly on six of them. The remaining stairs were also marked and detected, but the robot did not move directly on them. The use of a quadruped robot to obtain the dataset was limited to manual control inside the building. The robot climbed selected stairs using the manufacturer-supplied stair mode, which was manually activated. It is a rather simplified method of movement and is implemented by lifting the limbs to a higher height than in the walking mode. In this way, the robot can climb stairs whose height does not exceed 12 cm. Moreover, such an approach requires that the width of the stairs be appropriate in relation to the robot’s step length. Depending on the direction of the designated route, the same stairs were approached from different points of view. When descending the stairs, the robot was carried to prevent possible damage. The robot also walked on the stairs, avoiding them in some sequences. Figure 4 presents a visualization of the robot’s path from sequences 1 and 6. All stair locations are indicated by red dots, while the robot’s path is represented by a dashed line. In both sequences, the robot initiated its movement from the same starting point. In addition, the figure includes sample images of the stairs captured by the robot at specific locations. The goal of this data collection approach was to enable a learning-from-demonstration mode. In this setup, the mobile robot first performs a supervised traversal of the environment under human guidance and then operates autonomously. Once detached from supervision, the robot independently performs tasks such as object detection and adapts its behavior accordingly, such as when approaching stairs. However, this approach is not without challenges, as the amount of data collected during the supervised traversal is limited. Therefore, it is a challenge to develop solutions in this way. The visualization of the localization based on the IMU data for all 18 sequences is presented in Figure 5.
Figure 4. An example of the top view of the robot’s movement path (left—sequence 1, right—sequence 6).
Figure 5. Top view of robot paths using IMU-based localization, with color indicating time progression.
Compared to publicly available datasets such as StairNet [34] and the RGB-D Stair Dataset [37], the data collected in this study provide a fundamentally different perspective on the stair detection problem. StairNet focuses on egocentric, static images designed for general scene recognition, without robot-mounted viewpoints or sequential data. The RGB-D Stair Dataset, while valuable for multimodal stair detection, contains only static RGB-D pairs recorded under controlled conditions. In contrast, our dataset captures continuous RGB sequences from cameras mounted on a mobile quadruped robot in motion, reflecting realistic variations in viewpoint, motion blur, and fisheye distortion inherent to legged locomotion. Environmental factors such as lighting conditions, stair inclination, and surface texture were intentionally diversified and documented to ensure robustness. Therefore, the proposed dataset complements existing benchmarks by offering a robot-centric, dynamic, and realistic extension of stair detection scenarios relevant to real-world robotic applications.

4. Methods

The proposed method focuses on four main steps. The first was to extract a fragment from a single stereoscopic camera image, followed by post-processing. The second step was object detection using YOLO. This method used the capabilities of the NVIDIA Jetson platform [47] embedded within the robot, enhancing image processing performance and enabling real-time detection. This approach enables simultaneous stair detection and efficient navigation, allowing the robot to perform other tasks in its environment. The third step is to reject low-confidence proposals. This is determined by a global threshold chosen during detector training. The fourth step of the proposed method involves reducing redundant overlapping detected objects. The goal is to eliminate redundant results that might otherwise compromise the accuracy of the operation at this stage. The stages discussed and the result of their activities are presented in the general diagram of Figure 6.
Figure 6. Schematic diagram of the proposed steps for staircase detection algorithm using RGB image.

4.1. Image Preprocessing

The processing step involved taking only the left part of the input image for further decision. The fisheye effect was inverted. This operation was based on a field of view (FOV) of 180 degrees and a processed field of view (PFOV) of 120 degrees. The distortion correction parameters for both the FOV and PFOV were manually selected and applied identically to both cameras. The operation was performed to reduce the amount of space covered by the robot body. The effect of processing the raw image is evident in Figure 7. However, after the process was performed, part of the robot’s body was still visible in the image. This was one of the difficulties, especially in the case of the front bottom camera. The final rescaled image has a resolution of 608 × 608 pixels and is fed into the detector input. The decision to preprocess the data was made to reduce the amount of input sent to the network and to minimize distortions that could affect the detection of stairs.
Figure 7. Comparison of source image (left) and processed image (right).

4.2. Object Detection—You Only Look Once

Based on recent comparative studies [48,49], YOLOv11 has been identified as one of the most accurate and efficient object detection architectures available at the time of this research. Its strong balance between accuracy, speed, and robustness under varying environmental conditions made it particularly suitable for the real-time stair detection problem considered in this study. For comparative purposes, the YOLOv8 variant was also included to assess the performance differences between the latest generation models. The variants of YOLOv8 [50] and YOLOv11 [51] were trained for the detection of stairs based on the images collected. The available pretrained YOLO did not include the detection of stairs, which required training. It was run on an external computing unit supported by a powerful GPU. The input to each network was a 608 × 608 color image obtained by preprocessing. Each network was trained for 50 epochs using the AdamW optimizer, which was selected, with a learning rate of 0.002 and a momentum of 0.9. Data from sequence 1 were randomly divided into training (90%) and validation (10%) subsets. The original network input image resolution was reduced to the chosen input size based on expert assessment of the preprocessed data, ensuring that the resolution was neither too low to lose relevant details nor too high to cause unnecessary computational overhead. During training, mosaic augmentation, horizontal flip, and erasing were used. Before training, the vast majority of the weights, in amounts depending on the network version, were loaded from the model trained on the COCO dataset [52]. The general structure of YOLOv11n is illustrated in Figure 8. The Backbone extracts hierarchical features from the input image through convolutional layers and C2f blocks, with the SPPF block capturing multi-scale context. The Neck fuses features from different backbone levels using upsampling, concatenation, and additional C2f blocks to enhance multi-scale feature representation. Finally, the Head performs multi-scale detection at three different resolutions, predicting bounding boxes, objectness scores, and class probabilities, which enables the network to accurately detect objects such as stairs at various distances and sizes.
Figure 8. YOLOv11n architecture general scheme used in the experiments.
The trained models were deployed on the Unitree Go1 robotic platform with NVIDIA Jetson support and on other selected devices. Table 1 presents the properties of the models tested, including the name of the model, the resolution of the input image, the number of layers, the parameters, and the size of the model. Table 2 presents the preprocessing and detection times for different devices and models, measured on four platforms ranging from the Jetson platform running directly on the Unitree Go1 robot, through alternative devices. It also specifies the processor, RAM, GPU model, and Python environment version used during the experiments. Based on the tests, the Jetson platform achieved the shortest detection time with the YOLO11n network. For the ASUS NUC platform and the mobile laptop, the detection times for both YOLO8n and YOLO11n were comparable. Of all the configurations tested, only the mobile laptop consistently achieved a performance in which the preprocessing and detection time was less than or equal to 0.101 s. The ASUS NUC had slightly higher processing times, whereas the Jetson Orin Nano outperformed the Jetson Nano. Three of the four platforms meet the soft real-time threshold of 0.5 s, but the Jetson Orin Nano, despite exceeding this limit, can still be useful when robot speed depends on processing time. In the context of navigation, we consider soft real-time as a processing time that is adequate for control tasks, taking into account the robot’s movement strategy and kinematics, which makes it a practical criterion for evaluating timing in robotic applications.
Table 1. Properties of models used for detection.
Table 2. Preprocessing and detection times for different devices and models.
The differences in model size and detection time are due to the YOLO version used. The YOLOv8n and YOLOv11n versions are faster, with YOLOv11n achieving the shortest detection time on the embedded NVIDIA Jetson platform as well as the smallest model size. This made it an important choice for further studies and direct application on the robot. The example results of the YOLOv11n network trained in Sequence 1 (front camera) are shown in Figure 9.
Figure 9. Examples of stair detection (YOLOv11n): green bounding box represents label, and purple bounding box represents detection result.
The first two images show the results of stair detection from the front camera, while the following two images show the results from the front-bottom camera. The first and third results demonstrate successful detections, where the method correctly identified the stairs. In contrast, the second and fourth cases are false detections, where the model did not identify the presence of stairs. This highlights significant errors that can occur even in the vicinity of stairs.

4.3. Remove Duplicates Detection

To minimize redundancy in the staircase detection results, duplicate predictions were removed. This overlap required consolidation to improve accuracy. This was achieved using nonmaximum suppression (NMS) [42] with an intersection over union (IoU) threshold of 0.5, which means that bounding boxes with 50% or more overlap were treated as duplicates and filtered out. The NMS threshold value was selected based on an analysis of the validation subset from Sequence 1 to achieve an optimal balance between detection precision and recall. Figure 10 illustrates sample images with detection results from YOLOv11n, trained on data from the front and front-bottom cameras of Sequence 1. These images demonstrate situations where there are an excessive number of detections for a single object.
Figure 10. Stair detection examples (YOLOv11n) from front and front-bottom cameras with duplicates.

5. Results

The detailed results of stair detection in Table 3 present the mean average precision (mAP) at thresholds of 0.5, 0.75, and 0.95, along with the corresponding F1 scores, all calculated based on IoU thresholds. In this study, robot walk-through data from sequence 1 was used for training. Images from the first sequence were also used to determine the optimal detection confidence threshold, which was set using an iterative method at 0.25. The results are reported for all sequences, without the training sequence. This approach assumes that the robot initially moves under human supervision, after which it navigates autonomously within the environment under varying conditions, such as lighting and altered views of the stairs. The highest mAP scores were obtained by the YOLOv8n network, with average scores of 82.56, 80.34, and 75.90 (with IoU thresholds of 0.5, 0.75, and 0.95, respectively) for all test sequences. The YOLOv11n network showed similar performance, with mAP scores of 82.21, 79.88, and 75.38. Due to its comparable detection accuracy and shorter image processing time for NVIDIA Jetson, YOLOv11n was selected for further testing on the robot. The observed similarity in mAP values between YOLOv8n and YOLOv11n indicates that both architectures are comparably effective in feature extraction for the stair detection task. However, YOLOv11n provides more efficient inference on embedded hardware, offering lower latency and reduced computational cost, which makes it a more practical choice for real-time robotic applications.
Table 3. Detection results using YOLO networks trained on Seq1 for all images (front camera).
Table 4 shows the average results for all test sequences from 2 to 18. Different scenarios were tested to evaluate the impact of training with data from different cameras. One variant is, e.g., training on data from the front camera only and testing with data from the front-bottom camera. A fusion approach that combined data from two cameras was also used to improve the reliability of stairs detection, making it less dependent on camera type and viewing angle. This multi-camera integration represents a novel aspect of the study, aiming to leverage complementary visual information to reduce the natural imbalance present in the dataset and enhance the model’s generalization capability. The results indicate that training the network on images from both cameras does not necessarily enhance the final outcome. Additionally, using two models is not acceptable due to the computational limitations of the robot. To address this, we implemented NMS for result reduction, which improved the performance of a single model for sequences captured from both the front and bottom front cameras. The best results for the two cameras are highlighted in bold in the table, with most of the highest values achieved by the proposed method. For the front camera, the result was 82.35, and for the front-bottom camera, 92.78 mAP@50. The average result for both cameras was obtained at level 87.56 of mAP@50.
Table 4. Results from various combinations of stairs detection tests across all images (f—front, fb—front-bottom).
Although the data collected by the robot reflect real scenarios, it is not balanced. The imbalance arises from differences in camera perspectives and the fact that images containing stairs are less frequent than those without them. This imbalance could affect the representativeness of the detection results. To address this, an additional Table 5 was included to present results only for images labeled with stairs. Similarly to the previous table, the incorporation of images from both cameras and the application of NMS yielded the best results. However, when focusing specifically on images labeled with stairs, a noticeable drop in detection performance is observed compared to the results across all images. The average result for the front and front bottom cameras was 51.3 mAP@50.
Table 5. Results for various combinations of stairs detection tests on images labeled with stairs (f—front, fb—front-bottom).
Comparing YOLOv11n with YOLOv8n, both networks achieved similar mAP scores across all sequences. However, YOLOv11n provided faster inference times on embedded platforms, making it more suitable for real-time deployment on the quadruped robot. This demonstrates that model selection for embedded applications must balance detection accuracy with computational efficiency.
The difference in detection accuracy between the front and bottom cameras mainly results from differences in scene visibility. The bottom camera provides a clearer close-range view of the stairs but is more affected by lighting changes and motion blur, which can slightly reduce detection stability. In contrast, the front camera captures a wider scene but often misses lower stair segments, explaining the observed performance gap. The lower mAP observed when using only one camera, especially the bottom camera, is partially due to the unequal number of stair images between viewpoints and the higher susceptibility of the bottom camera to motion blur and lighting changes. This highlights the importance of multi-camera data fusion and careful threshold tuning for stable detection.
These results highlight the importance of viewpoint diversity, dataset balance, and processing constraints when designing stair detection systems for real-time robotic operation. They also suggest that multi-camera fusion, NMS, and calibrated confidence thresholds are key strategies to improve detection robustness and reduce false negatives, particularly in sequences with limited stair coverage.
However, in this variant, a significant improvement was observed for the bottom-front camera. The initially poorer results may have been due to the limited number of staircase representations captured from this view. Additional training on the complete set of images helped mitigate this issue. The lower result also includes stairs that are far from the robot and do not have direct contact. The relatively low result for the only stairs variant can be attributed to the high difficulty of this subset. Many of the images contain stairs that appear as distant or partially visible objects, often without direct contact with the robot. These cases are more challenging to detect accurately and significantly influence the overall mAP score. To illustrate such problematic examples, Figure 11 shows typical detection difficulties observed in these scenarios.
Figure 11. Examples of challenging stair detection scenarios.
It is also worth noting that the obtained results are substantially lower compared to average detection performance on standard benchmarks such as the COCO dataset, where state-of-the-art object detectors typically achieve mAP values in the range of 50–60% on the validation set [51]. This discrepancy can be explained by the inherent differences between the two datasets: COCO contains diverse, well-annotated everyday objects captured from multiple viewpoints and distances, while the dataset used in this work focuses on a single object category—stairs—often captured under challenging conditions, including partial visibility, long distances, and limited texture cues. Consequently, the evaluation results on the proposed dataset reflect the specific difficulty of detecting such structures rather than a general decrease in detector performance.

6. Discussion

Mobile robots vary in design but often struggle with challenging terrains, especially stairs. Although research on stair detection is crucial, the optimal method for their detection by robots is not yet clearly defined. Image analysis is a crucial but sometimes limited approach due to environmental variability and camera constraints. Color cameras are affordable and common but lack spatial awareness, which depth cameras provide at higher computational and energy costs. Many studies focus on stair detection using geometric properties [4,15]. Consequently, the results of our study are not directly comparable to these types of detection methods. Studies using only RGB cameras for stair recognition align with our approach, showing comparable detection performance [22,53]. However, a precise comparison of these results is difficult because the studies use different datasets for training and testing. Another challenge in comparing our results with those of other researchers lies in the image acquisition methodology. To the best of our knowledge, the dataset employed in this study is unique in the existing literature, as it consists of images captured by cameras integrated into a quadruped robotic platform, offering distinctive perspectives during movement.
The incentive to work on image-based stair detection comes from the Unitree Go1 platform, which uses cameras positioned at different angles to capture the environment and obstacles from multiple perspectives. However, accurate detection alone does not guarantee safe and reliable robot movement. Instead, it should be regarded as one component within a more comprehensive navigation and control system. Furthermore, under difficult environmental conditions, the color image-based detection method may be inaccurate. This limitation underscores the necessity of integrating additional sensors or employing sequential image analysis to enhance detection capabilities. Such improvements would facilitate more robust navigation and maneuvering, ensuring that the robot can effectively navigate complex terrains. All of these issues pose a major challenge in further research.
Moreover, proposed models for stair detection often exhibit limited generalization capability, especially when training is conducted using data from a single sequence. This constraint limits the direct application of such models to other stair detection datasets. Future research in this field should therefore consider multi-domain fine-tuning based on datasets collected from multiple sequences, as well as the integration of additional cameras with varying specifications. These enhancements are expected to improve the overall reliability and adaptability of stair detection models across diverse environments and sensor configurations.
In terms of soft real-time performance, stair detection as a single-task process has moderate timing requirements. While execution times on some platforms exceed typical real-time thresholds, they remain adequate for practical use. However, relying solely on object detection without detailed information (e.g., step positions) is inherently limited and can be demanding for platforms with constrained computational resources. Further optimization may be needed for more complex or multi-task robotic scenarios.

7. Conclusions

This paper presents a new staircase detection algorithm for a quadruped robot, designed to improve safety and autonomy in an indoor environment. The approach uses images from two cameras with different perspectives and a deep neural network with RGB input. The method is complemented with non-maximum suppression to reduce duplicate detections. Implemented on the Unitree Go1 platform, the algorithm achieved a mAP@50 of 51.30 for images labeled only with stairs and 87.56 for all images. The results of this work indicate that the use of image data from multiple cameras improves the accuracy of stair detection, allowing earlier detection of this structure. Relying on images from different perspectives may be an option in the case of limited access to larger amounts of data. Compared to other datasets used for object detection, the dataset employed in this study is relatively small. However, the method of its acquisition reflects a realistic operational scenario of a mobile robot focused on stair recognition. From this perspective, the dataset can be considered sufficient for the intended application. A limitation, nevertheless, lies in its relatively low level of diversity, which may reduce its generalization capability when applied to stair detection from different viewpoints or under outdoor conditions. The findings of this work are encouraging for further research on robot control in a stair environment. They can also serve as a basis for working on collision-free robot movement on stairs. In addition, the algorithm was tested on various embedded and mobile computing platforms. The processing time for three of them indicates their suitability for soft real-time implementations, with a processing time limit of 0.5 s. Such a processing time for the robot’s environment information appears sufficient for selecting an effective movement strategy. It is also appropriate in the context of the robot’s kinematic properties and thus useful for control. This demonstrates that, despite its limitations, the proposed solution is suitable for accomplishing navigation tasks for quadruped robots.

Author Contributions

P.W. and P.P. conceptualized the study and developed the methodology. P.W. and D.B. curated the data and conducted the investigation. P.W. performed the formal analysis. P.W. and P.P. prepared the original draft of the manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The dataset used in this study is publicly available. It was prepared after preprocessing for benchmarking and can be accessed at: https://pwozniak.kia.prz.edu.pl/stairsdetection2025 (accessed on 20 November 2025).

Conflicts of Interest

The authors declare no conflicts of interest.

Correction Statement

This article has been republished with a minor correction in the Abstract. This change does not affect the scientific content of the article.

References

  1. Pappalettera, A.; Bottiglione, F.; Mantriota, G.; Reina, G. Watch the Next Step: A Comprehensive Survey of Stair-Climbing Vehicles. Robotics 2023, 12, 74. [Google Scholar] [CrossRef] [Scilit]
  2. Kagiwada, T. Robot Design for Stair Navigation. JSME Int. J. Ser. C Dyn. Control. Robot. Des. Manuf. 1996, 39, 629–635. [Google Scholar] [CrossRef] [Scilit]
  3. Seo, T.; Ryu, S.; Won, J.H.; Kim, Y.; Kim, H.S. Stair-Climbing Robots: A Review on Mechanism, Sensing, and Performance Evaluation. IEEE Access 2023, 11, 60539–60561. [Google Scholar] [CrossRef] [Scilit]
  4. Mihankhah, E.; Kalantari, A.; Aboosaeedan, E.; Taghirad, H.; Ali, S.; Moosavian, A. Autonomous staircase detection and stair climbing for a tracked mobile robot using fuzzy controller. In Proceedings of the 2008 IEEE International Conference on Robotics and Biomimetics, Bangkok, Thailand, 22–25 February 2009. [Google Scholar]
  5. Zhang, S.; Wang, J.; Wang, E.; Sun, Y. An autonomous stair climbing method for the crawler robot based on a hybrid reinforcement learning controller. Neurocomputing 2024, 593, 127802. [Google Scholar] [CrossRef] [Scilit]
  6. Anjum, S.; Iqbal, M.; Mohiuddin, A.; Kumar, N.; Mishra, S. Humanoid Autonomous Self-Balancing Weight Lifting Stair Climbing Robot. In Proceedings of the 2024 International Conference on Emerging Systems and Intelligent Computing (ESIC), Bhubaneswar, India, 9–10 February 2024. [Google Scholar]
  7. Arora, H.; Das Gupta, P.; Kumar, D.; Abhishek; Taluja, I.; Lachenpa, U.L.; Kumar, R.; Sharma, S.; Kumar, A.; Abbas, M. Design and analysis of a stairs-climbing military bot for efficient and stable movement on various terrains. Int. J. Interact. Des. Manuf. 2024, 19, 2557–2573. [Google Scholar] [CrossRef] [Scilit]
  8. Wei, Y.; Lee, K. CLAW: Cycloidal Legs-Augmented Wheels for Stair and Obstacle Climbing in Mobile Robots. IEEE/ASME Trans. Mechatron. 2025, 30, 1536–1546. [Google Scholar] [CrossRef] [Scilit]
  9. Medhioub, M.; Bouhamed, S.A.; Kallel, I.K.; Derbel, N.; Kanoun, O. Staircase Recognition Based on Possibilistic Feature Quality Assessment Method. In Proceedings of the International Conference on Computational Collective Intelligence, Budapest, Hungary, 27–29 September 2023. [Google Scholar]
  10. Choi, Y.J.; Rahim, T.; Ramatryana, I.N.A.; Shin, S.Y. Improved CNN-Based Path Planning for Stairs Climbing in Autonomous UAV with LiDAR Sensor. In Proceedings of the 2021 International Conference on Electronics, Information, and Communication (ICEIC), Jeju, Republic of Korea, 31 January–3 February 2021. [Google Scholar]
  11. Li, T.H.S.; Su, Y.T.; Kuo, C.H.; Chen, C.Y.; Hsu, C.L.; Lu, M.F. Stair-Climbing Control of Humanoid Robot using Force and Accelerometer Sensors. In Proceedings of the SICE Annual Conference 2007, Takamatsu, Japan, 17–20 September 2007. [Google Scholar]
  12. Formento, P.C.; Acevedo, R.; Ghoussayni, S.; Ewins, D. Gait Event Detection during Stair Walking Using a Rate Gyroscope. Sensors 2014, 14, 5470–5485. [Google Scholar] [CrossRef] [Scilit]
  13. Siekmann, J.; Green, K.; Warila, J.; Fern, A.; Hurst, J. Blind Bipedal Stair Traversal via Sim-to-Real Reinforcement Learning. arXiv 2021, arXiv:2105.08328. [Google Scholar] [CrossRef] [Scilit]
  14. Mustafin, M.; Tsoy, T.; Martínez-García, E.A.; Meshcheryakov, R.; Magid, E. Modelling mobile robot navigation in 3D environments: Camera-based stairs recognition in Gazebo. In Proceedings of the 2022 Moscow Workshop on Electronic and Networking Technologies (MWENT), Moscow, Russia, 9–11 June 2022. [Google Scholar]
  15. Cong, Y.; Li, X.; Liu, J.; Tang, Y. A Stairway Detection Algorithm based on Vision for UGV Stair Climbing. In Proceedings of the 2008 IEEE International Conference on Networking, Sensing and Control, Sanya, China, 6–8 April 2008. [Google Scholar]
  16. Veerajagadheswar, P.; Le, A.V.; Kyaw, P.T.; Elara, M.R.; Paing, A. An Autonomous Descending-Stair Cleaning Robot with RGB-D based Detection, Approaching, and Area coverage Process. In Proceedings of the 2022 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Kyoto, Japan, 23–27 October 2022. [Google Scholar]
  17. Wang, C.; Pei, Z.; Qiu, S.; Tang, Z. RGB-D-Based Stair Detection and Estimation Using Deep Learning. Sensors 2023, 23, 2175. [Google Scholar] [CrossRef] [Scilit]
  18. Harms, H.; Rehder, E.; Schwarze, T.; Lauer, M. Detection of ascending stairs using stereo vision. In Proceedings of the 2015 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Hamburg, Germany, 28 September–2 October 2015. [Google Scholar]
  19. Chauhan, R.; Ghanshala, K.K.; Joshi, R. Convolutional Neural Network (CNN) for Image Detection and Recognition. In Proceedings of the 2018 First International Conference on Secure Cyber Computing and Communication (ICSCCC), Jalandhar, India, 15–17 December 2018. [Google Scholar]
  20. Kong, W.; Tan, Z.; Tao, X.; Fan, W.; Ji, Y.; Wang, M.; Xu, X. Object Detection Algorithm of Stairs Based on Multi-information Fusion. In Proceedings of the 2023 3rd International Conference on Robotics and Control Engineering, Nanjing, China, 12–14 May 2023. [Google Scholar]
  21. Kim, M.; Shin, U.; Kim, J.Y. Learning Quadrupedal Locomotion with Impaired Joints Using Random Joint Masking. In Proceedings of the 2024 IEEE International Conference on Robotics and Automation (ICRA), Yokohama, Japan, 13–17 May 2024. [Google Scholar]
  22. Sánchez-Rojas, J.A.; Arias-Aguilar, J.A.; Takemura, H.; Petrilli-Barceló, A.E. Staircase Detection, Characterization and Approach Pipeline for Search and Rescue Robots. Appl. Sci. 2021, 11, 10736. [Google Scholar] [CrossRef] [Scilit]
  23. Kim, J.; Jung, S.; Kim, S.K.; Kim, Y.; Agha-mohammadi, A.A. Staircase Localization for Autonomous Exploration in Urban Environments. arXiv 2024, arXiv:2403.17330. [Google Scholar] [CrossRef] [Scilit]
  24. Cai, S.; Ram, A.; Gou, Z.; Shaikh, M.A.W.; Chen, Y.A.; Wan, Y.; Hara, K.; Zhao, S.; Hsu, D. Navigating Real-World Challenges: A Quadruped Robot Guiding System for Visually Impaired People in Diverse Environments. In Proceedings of the 2024 CHI Conference on Human Factors in Computing Systems, Honolulu, HI, USA, 11–16 May 2024. [Google Scholar]
  25. Majithia, A.; Shah, D.; Dave, J.; Kumar, A.; Rathee, S.; Dogra, N.; H. M., V.; Chiniwar, D.S.; Hiremath, S. Design, Motions, Capabilities, and Applications of Quadruped Robots: A Comprehensive Review. Front. Mech. Eng. 2024, 10, 1448681. [Google Scholar] [CrossRef] [Scilit]
  26. Ye, L.; Wang, Y.; Wang, X.; Liu, H.; Liang, B. Optimized Static Gait for Quadruped Robots Walking on Stairs. In Proceedings of the 2021 IEEE 17th International Conference on Automation Science and Engineering (CASE), Lyon, France, 23–27 August 2021. [Google Scholar]
  27. Qi, S.; Lin, W.; Hong, Z.; Chen, H.; Zhang, W. Perceptive Autonomous Stair Climbing for Quadrupedal Robots. In Proceedings of the 2021 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Prague, Czech Republic, 27 September–1 October 2021. [Google Scholar]
  28. Wang, S.; Tian, Y. Detecting stairs and pedestrian crosswalks for the blind by RGBD camera. In Proceedings of the 2012 IEEE International Conference on Bioinformatics and Biomedicine Workshops, Philadelphia, PA, USA, 4–7 October 2012. [Google Scholar]
  29. Lee, K.; Kalyanram, V.; Zhengl, C.; Sane, S.; Lee, K. Vision-based Ascending Staircase Detection with Interpretable Classification Model for Stair Climbing Robots. In Proceedings of the 2022 International Conference on Robotics and Automation (ICRA), Philadelphia, PA, USA, 23–27 May 2022. [Google Scholar]
  30. Snoek, J.; Hoey, J.; Stewart, L.; Zemel, R.S.; Mihailidis, A. Automated detection of unusual events on stairs. Image Vision Comput. 2009, 27, 153–166. [Google Scholar] [CrossRef] [Scilit]
  31. Jiang, Z.; Zhao, Q.; Tomioka, Y. Depth Image-Based Obstacle Avoidance for an In-Door Patrol Robot. In Proceedings of the 2019 International Conference on Machine Learning and Cybernetics (ICMLC), Kobe, Japan, 7–10 July 2019. [Google Scholar]
  32. Bellegarda, G.; Nguyen, C.; Nguyen, Q. Robust quadruped jumping via deep reinforcement learning. Rob. Autom. Syst. 2024, 182, 104799. [Google Scholar] [CrossRef] [Scilit]
  33. Cruz Ulloa, C.; Sánchez, L.; Del Cerro, J.; Barrientos, A. Deep Learning Vision System for Quadruped Robot Gait Pattern Regulation. Biomimetics 2023, 8, 289. [Google Scholar] [CrossRef] [Scilit]
  34. Kurbis, A.G.; Kuzmenko, D.; Ivanyuk, B.; Mihailidis, A.; Laschowski, B. StairNet: Visual recognition of stairs for human–robot locomotion. Biomed. Eng. Online 2024, 23, 20. [Google Scholar] [CrossRef] [Scilit]
  35. Matsumura, H.; Premachandra, C. Deep-Learning-Based Stair Detection Using 3D Point Cloud Data for Preventing Walking Accidents of the Visually Impaired. IEEE Access 2022, 10, 56249–56255. [Google Scholar] [CrossRef] [Scilit]
  36. Kirubakaran, A.P.; Kaur, K.; Santhosh Kumar, T.C.; Jose, R.; Vekariya, V.; Maranan, R. AI-Enabled Visual Assistance: Detecting Doors and Stairs to Aid Individuals with Visual Impairments. In Proceedings of the 2024 5th International Conference on Innovative Trends in Information Technology (ICITIIT), Kottayam, India, 15–16 March 2024. [Google Scholar]
  37. Wang, C.; Pei, Z.; Qiu, S.; Tang, Z. Deep leaning-based ultra-fast stair detection. Sci. Rep. 2022, 12, 16124. [Google Scholar] [CrossRef] [Scilit]
  38. Oßwald, S.; Gutmann, J.S.; Hornung, A.; Bennewitz, M. From 3D point clouds to climbing stairs: A comparison of plane segmentation approaches for humanoids. In Proceedings of the 2011 11th IEEE-RAS International Conference on Humanoid Robots, Bled, Slovenia, 26–28 October 2011. [Google Scholar]
  39. Zheng, Z.; He, J.; Gu, J.; Chen, Z.; Qin, W. Saliency-guided stairs detection on wearable RGB-D devices for visually impaired persons with Swin-Transformer. Pattern Recognit. Lett. 2024, 177, 47–53. [Google Scholar] [CrossRef] [Scilit]
  40. Perez-Yus, A.; Gutierrez-Gomez, D.; Lopez-Nicolas, G.; Guerrero, J. Stairs detection with odometry-aided traversal from a wearable RGB-D camera. Comput. Vis. Image Understanding 2017, 154, 192–205. [Google Scholar] [CrossRef] [Scilit]
  41. Singh, K.J.; Kapoor, D.; Thakur, K.; Sharma, A.; Gao, X.Z. Computer-Vision Based Object Detection and Recognition for Service Robot in Indoor Environment. Comput. Mater. Continua 2022, 72, 197–213. [Google Scholar] [CrossRef] [Scilit]
  42. Redmon, J.; Divvala, S.; Girshick, R.; Farhadi, A. You Only Look Once: Unified, Real-Time Object Detection. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016. [Google Scholar]
  43. Rekhawar, N.; Govindani, Y.; Rao, N. Deep Learning based Detection, Segmentation and Vision based Pose Estimation of Staircase. In Proceedings of the 2022 1st International Conference on the Paradigm Shifts in Communication, Embedded Systems, Machine Learning and Signal Processing (PCEMS), Nagpur, India, 6–7 May 2022. [Google Scholar]
  44. Diwakar, D.; Raj, D. Recent Object Detection Techniques: A Survey. Int. J. Image, Graphics Signal Process. 2022, 14, 47–60. [Google Scholar] [CrossRef] [Scilit]
  45. Pagire, V.; Chavali, M.; Kale, A. A comprehensive review of object detection with traditional and deep learning methods. Signal Process. 2025, 237, 110075. [Google Scholar] [CrossRef] [Scilit]
  46. Fan, Y.; Pei, Z.; Wang, C.; Li, M.; Tang, Z.; Liu, Q. A Review of Quadruped Robots: Structure, Control, and Autonomous Motion. Adv. Intell. Syst. 2024, 6, 2300783. [Google Scholar] [CrossRef] [Scilit]
  47. Fataniya, B.; Mecwan, A.; Shah, D.; Chauhan, M.; Dave, J. SD-YOLOv5: Implementation of Real-Time Staircase Detection on Jetson Nano Board. SN Comput. Sci. 2025, 6, 340. [Google Scholar] [CrossRef] [Scilit]
  48. Ali, M.L.; Zhang, Z. The YOLO Framework: A Comprehensive Review of Evolution, Applications, and Benchmarks in Object Detection. Computers 2024, 13, 336. [Google Scholar] [CrossRef] [Scilit]
  49. Jegham, N.; Koh, C.Y.; Abdelatti, M.; Hendawi, A. YOLO Evolution: A Comprehensive Benchmark and Architectural Review of YOLOv12, YOLO11, and Their Previous Versions. arXiv 2024, arXiv:2411.00201. [Google Scholar] [CrossRef] [Scilit]
  50. Jocher, G.; Chaurasia, A.; Qiu, J. Ultralytics YOLOv8. 2023. Available online: https://docs.ultralytics.com/models/yolov8/ (accessed on 20 November 2025).
  51. Jocher, G.; Qiu, J. Ultralytics YOLO11. 2024. Available online: https://docs.ultralytics.com/models/yolo11/ (accessed on 20 November 2025).
  52. Lin, T.Y.; Maire, M.; Belongie, S.; Hays, J.; Perona, P.; Ramanan, D.; Dollár, P.; Zitnick, C.L. Microsoft COCO: Common Objects in Context. In Proceedings of the European Conference on Computer Vision 2014, Zurich, Switzerland, 6–12 September 2014. [Google Scholar]
  53. Islam, M.R.; Haque, M.R.; Imtiaz, M.H.; Shen, X.; Sazonov, E. Vision-Based Recognition of Human Motion Intent during Staircase Approaching. Sensors 2023, 23, 5355. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.