\addbibresource

main.bib

CaveSeg: Deep Semantic Segmentation and Scene Parsing for Autonomous Underwater Cave Exploration

Adnan Abdullah1, Titon Barua2, Reagan Tibbetts2, Zijie Chen1, Md Jahidul Islam1, and Ioannis Rekleitis2
[email protected], [email protected], [email protected],
[email protected], [email protected], [email protected]
1RoboPI Laboratory, Department of ECE, University of Florida, FL 32611, USA.
2AFRL Laboratory, Department of CSE, University of South Carolina, SC 29208, USA.
This pre-print is accepted for publication at ICRA 2024.Project: https://robopi.ece.ufl.edu/caveseg.html
Abstract

In this paper, we present CaveSeg - the first visual learning pipeline for semantic segmentation and scene parsing for AUV navigation inside underwater caves. We address the problem of scarce annotated training data by preparing a comprehensive dataset for semantic segmentation of underwater cave scenes. It contains pixel annotations for important navigation markers (e.g. caveline, arrows), obstacles (e.g. ground plane and overhead layers), scuba divers, and open areas for servoing. Through comprehensive benchmark analyses on cave systems in USA, Mexico, and Spain locations, we demonstrate that robust deep visual models can be developed based on CaveSeg for fast semantic scene parsing of underwater cave environments. In particular, we formulate a novel transformer-based model that is computationally light and offers near real-time execution in addition to achieving state-of-the-art performance. Finally, we explore the design choices and implications of semantic segmentation for visual servoing by AUVs inside underwater caves. The proposed model and benchmark dataset open up promising opportunities for future research in autonomous underwater cave exploration and map**.

1 Introduction and Background

Refer to caption
Figure 1: (a) A tethered BlueROV2 is operating inside Orange Grove underwater cave system in FL, USA; it is teleoperated by a surface operator following the caveline as a navigation guide; (b) the corresponding POV from the robot’s camera; (c) the proposed semantic parsing concept is shown; the envisioned capabilities are: first-layer & second-layer obstacle avoidance, ground plane estimation, and caveline detection, following, and 3D estimation – to enable autonomous robot navigation inside underwater caves.

Underwater cave formations, sediment properties, and water chemistry provide insights into the world’s past climate conditions and geological processes [gonzalez2008arrival, richmond2020autonomous]. Underwater caves also play a crucial role in monitoring and tracking groundwater flows in Karst topographies, while almost 25%percent2525\%25 % of the world’s population relies on Karst freshwater resources [karstbook]. Despite the importance, underwater cave exploration and map** by humans is a tedious, labor-intensive, and extremely dangerous operation, even for highly skilled divers [buzzacott2009american]. When a new section of a cave is discovered, a single and continuous line termed caveline [exley1986basic] is laid out identifying the skeleton of the main passages. The caveline is attached to other navigation guides such as arrows and cookies [yu2023weakly], marking the orientation of the cave, distance to the entrance and presence of other divers. Such surveys by the explorers produce a one-dimensional retraction of the 3D environment. Recording all this information together with additional observations [Burge1988Survey] is a challenging, time-consuming, and error-prone process.

Enabling Autonomous Underwater Vehicles (AUVs) and Remotely Operated Vehicles (ROVs) to navigate, explore, and map underwater caves safely and effectively is of significant importance [joshi2022underwater, richmond2020autonomous]; Fig. 1(a) shows an ROV deployment scenario inside the Orange Grove Cave System in Florida. Our earlier work [JoshiICRA2022] developed a high-precision camera trajectory estimation method by a Visual-Inertial Odometry (VIO) algorithm [RahmanIJRR2022], which can generate 3D caveline trajectory estimates that are comparable to the manually surveyed measurements. More recently in [yu2023weakly], we addressed the lack of annotated samples in visual learning for caveline detection and tracking across different scenes for AUV navigation.

In this work, we focus on develo** a deep visual learning pipeline to extract dense semantic information for autonomous underwater cave exploration by mobile robots. Considering the limited onboard resources available on embedded platforms, our objective is to design a computationally light model that can (learn to) identify the navigation markers of underwater caves (e.g. caveline, arrows), obstacles to avoid (e.g. ground plane and overhead layers), scuba divers (for cooperative missions), and safe open areas for visual servoing in real-time. We identify two major difficulties to achieve these: (i) no large-scale datasets are available for underwater cave environments; (ii) the state-of-the-art (SOTA) models for semantic scene parsing are computationally too demanding for robotic platforms.

We address these challenges by proposing CaveSeg, the first large-scale semantic segmentation dataset and learning pipeline for underwater cave exploration. We collect comprehensive training data by ROVs and scuba divers through robotics trials in three major locations [yu2023weakly]: the Devil’s system in Florida, USA; Dos Ojos Cenote in QR, Mexico; and Cueva del Agua in Murcia, Spain. Our processed data contain 3350335033503350 pixel-annotated samples with 13131313 object categories that include first and second layer obstacles, human scuba divers, and navigation aids (see Sec 3; Fig. 2). We also compile a CaveSeg-Challenge test set that contains 350350350350 samples from unseen waterbody and cave systems such as the Blue Grotto and Orange Grove cave systems in FL, USA. We conduct extensive benchmark evaluation of SOTA models across the Convolutional Neural Network (CNN) [girshick2014rich, zhang2018context], Conditional Random Fields (CRF) [chen2014semantic, chen2017deeplab], and Vision Transformer (ViT) [xie2021segformer, strudel2021segmenter, liu2021swin] literature, which validate that robust semantic learning is feasible on CaveSeg.

Moreover, we develop a novel CaveSeg model by rigorous design choices to balance the robustness-efficiency trade-off. The proposed model consists of a transformer-based backbone, a multi\hypscale pyramid pooling head, and a hierarchical feature aggregation module for robust semantic learning (see Sec.4). Experimental evaluation and comparison with SOTA models suggest that the CaveSeg model is over 3×3\times3 × more memory efficiency and offers 1.8×1.8\times1.8 × faster inference than SOTA models, while providing comparable benchmark performances. A series of experiments on unseen challenging scenes prove the robustness of our model across different waterbody conditions and optical artifacts; see more details in Sec.5.

Furthermore, we highlight several challenging scenarios and practical use cases of CaveSeg for real-time AUV navigation inside underwater caves. Those scenarios include safe cave exploration by caveline following and obstacle avoidance, planning towards caveline rediscovery, finding safe open passages and exit directions inside caves, giving uninterrupted right-of-way to scuba divers exiting the cave, and 3D semantic map** and state estimation. We demonstrate that CaveSeg-generated semantic labels can be utilized effectively for vision-based cave exploration and semantic map** by AUVs (see more in Sec. 6).

2 Related Work

Refer to caption
Figure 2: A few sample images from the proposed CaveSeg dataset, corresponding ground truth labels, and their overlayed visualizations are shown; color codes for each object category are listed on the right.

2.1 Underwater Cave Exploration and Map**

Exploration and map** of underwater caves by human divers traditionally employed photogrammetry [fortin2021environmental] methods in order to generate informative photorealistic representation, especially for sites with archaeological interest [rissolo2015novel, gonzalez2008arrival]. Autonomous underwater cave map** by AUVs remains an open problem due to many challenges. Mallios et al. [mallios2016toward] manually moved an AUV collecting acoustic data for offline map**, and Weidner et al. [WeidnerICRA2017, WeidnerMSc2017] used images from a stereo camera to create a 3D reconstruction of the cave walls, floor, and ceiling. Major challenges to vision\hypbased state estimation in an underwater environment include lighting variations, light absorption, and blurriness [JoshiIROS2019]. Rahman et al. [RahmanICRA2018, RahmanIROS2019a, RahmanIJRR2022] proposed a framework where visual, acoustic, inertial, and water depth data are fused together to estimate the trajectory of an AUV or a sensor while in parallel generates a sparse representation of the underwater cave. Denser models of the cave boundaries can be obtained by map** the moving shadows [RahmanIROS2019b], the contours [massone2020contour], or dense online stereo reconstruction [WangICRA2023].

More recently, Richmond et al. [richmond2020autonomous] describe a man\hypportable AUV named Sunfish, which can work safely inside underwater caves and bring back chemical profiles, detailed imagery, and sonar maps of the cave. Our recent work [yu2023weakly] develops a ViT-based caveline detection model for autonomous caveline following by underwater robots. However, beyond detecting cavelines, a full-form scene parsing is essential for safe and effective AUV navigation inside underwater caves.

2.2 Semantic Segmentation of Underwater Scenes

Deep visual learning algorithms have revolutionized semantic segmentation and scene parsing benchmarks on standard datasets, which are mostly developed for terrestrial applications. The existing learning pipelines trained on terrestrial imagery are not directly applicable because the object categories and image statistics are entirely different. A unique set of underwater image distortion artifacts and the unavailability of large-scale annotated datasets have influenced a significant lack of research attempts on semantic segmentation of underwater imagery. The contemporary research literature offers application-specific image datasets for coral reef segmentation and coverage estimation [alonso2019coralseg, ravanbakhsh2015automated], visual attention modeling [islam2022svam], human-robot cooperative missions [islam2020suim], image restoration and foreground enhancement [islam2020sesr], and fish detection [alshdaifat2020improved, ulucan2020large].

Refer to caption
Figure 3: Frequencies and distributions of important object categories are shown in the train, validation, and test sets.

More recent work by Modasshir et al. combined a deep learning-based classifier model to identify and track the locations of different types of corals to generate semantic maps [ModasshirRobio2018] as well as volumetric models [ModasshirFSR2019]. Islam et al. formulated the SUIM dataset [islam2020suim] for semantic segmentation of underwater imagery with eight object categories: fish, coral reefs, aquatic plants, wrecks/ruins, human divers, robots/instruments, and sea-floor. Other datasets consider even fewer object categories such as marine debris or ship hull defects [waszak2022semantic]. With limited training samples per object category over only a few waterbody types, it is extremely challenging to achieve good generalization performance by SOTA deep learning-based models for image segmentation and scene parsing. More importantly, these object categories are not useful for underwater cave exploration and map** applications – which we address in this paper.

3 CaveSeg Dataset: Data Preparation and Problem Formulation

Refer to caption
Figure 4: The network architecture of our proposed CaveSeg model is shown. Input images are partitioned into 4×4444\times 44 × 4 patches and fed into a four-stage transformer backbone for coarse-to-fine feature extraction. The extracted multi-scale features are then pooled and combined by the PPM head for bottom-up and top-down feature aggregation. A hierarchical feature map is then compiled by merging several multi-level feature representations. On this feature space, a classifier performs pixel-level semantic segmentation to generate the final outputs.

We prepared learning pipelines with data collected from three cave systems in different geographical locations [yu2023weakly]: the Devil’s system in Florida, USA; Dos Ojos Cenote in QR, Mexico; and Cueva del Agua in Murcia, Spain. For the semantic labels, we considered the following object categories: caveline, first layer (immediate avoidance areas), second layer (areas to be avoided subsequently), open area (obstacle-free regions), ground plane, scuba divers, navigation aids (e.g., arrows, reels, and cookies), and caveline-attached rocks. Moreover, cave ornaments (e.g., stalactites, stalagmites, and columns) are also considered if they are present in the scene, which is the case for the Mexico caves. With these 13131313 object categories in consideration, a total of 3350335033503350 images are labeled in the CaveSeg dataset. A few annotated samples are shown in Fig. 2; the dataset and relevant information are available online at https://robopi.ece.ufl.edu/caveseg.html.

As mentioned earlier, the role of the caveline is crucial for any underwater cave operations. It represents the direction of exploration, the main area where the cave extends, and equally important, the path to safely exit the cave. Caveline pixels are marked as yellow in order to generate maximum contrast. The rock formations where the caveline is attached are often called placements or attachment points. These rocks most of the time signal a change in the direction of the caveline and they are marked in brown. Navigational markers such as arrows (dark red) and cookies (red) provide important information about the direction to the nearest cave exit and the presence of other divers in the cave, respectively.

A special category in our semantic map** scheme is the scuba divers (magenta). An AUV inside the cave should always give the right of way to divers, especially those exiting the cave. In case of an emergency, there should be nothing impeding the divers from reaching the surface, which is a norm practiced by cave divers. As such we have established a human diver category to incorporate emergency responses when a diver is detected, for example, lowering the light intensity, moving away from the main passage, avoiding abrupt motions, etc.

Fig. 3 shows the frequency and distribution of various object categories in CaveSeg dataset. Human diver is present in 40404040% of the images. Over 90%percent9090\%90 % of the samples contain caveline, obstacle-free open areas, as well as the first and second layer obstacles. Three types of cave ornaments are frequently seen in the Mexico caves and jointly they are present in 40%percent4040\%40 % of the data. Navigation markers (e.g., cookies, arrows, reels) typically occupy smaller pixel areas compared to other objects, and they are found in 20%percent2020\%20 % of the data. The training set is carefully compiled to represent adequate samples for each category while ensuring a unique and unseen challenge set for testing. Overall, these 13131313 object categories in the scene embed useful information for vision-based planning and navigation for AUVs inside underwater caves.

4 CaveSeg Model: Semantic Scene Segmentation Of Underwater Caves

4.1 Network Design and Learning Pipeline

We search for a computationally light architecture that provides real-time underwater cave scene segmentation in addition to achieving state-of-the-art (SOTA) performance. To this end, we explore both CNN-based and transformer-based backbone architectures [chen2018encoder, wu2019fastfcn, xie2021segformer]. The windowed multi-head self-attention (W-MSA) module proposed in Swin Transformer [liu2021swin] is a powerful tool to maintain efficient computation. Additionally, the window shifting technique connects features across spatially overlapped windows. We find this connection to be particularly useful since cave scenes hold some spatial relation among categories. For instance, navigation markers and attachment rocks are almost always found on the caveline, while the second layer obstacles are usually found around the first layer or ground plane. Although computationally heavy, we found such cross-category attention extraction to be effective in cave scene segmentation tasks. Inspired by this, we design a novel architecture that incorporates these capabilities with a light Swin Transformer backbone for feature extraction. With an efficient Pyramid Pooling Module (PPM) and hierarchical feature aggregation, our proposed CaveSeg model is over 3.3×3.3\times3.3 × memory efficient and offers 60%percent6060\%60 % faster inference rates than the Swin Transformer base model.

4.1.1 CaveSeg Model Architecture

The detailed network architecture is shown in Fig 4. First, input RGB images are partitioned into 4×4444\times 44 × 4 non-overlap** patches or tokens; a linear embedding layer of dimension 48484848 is then applied to each token. These feature tokens are passed through a four-stage backbone, each containing a windowed and shifted windowed module of multi-head self-attention [vaswani2017attention]. In each stage, patches are merged with 2×2222\times 22 × 2 neighboring regions to reduce the number of tokens while at the same time, the linear embedded dimension is doubled. Subsequently, bottom-up and top-down feature aggregation [lin2017feature] is performed in two separate branches. A pyramid pooling module (PPM) [zhao2017pyramid] is attached to the backbone that further improves global feature extraction at deep layers of the network [xiao2018unified]. Features from each stage of the backbone as well as from the PPM head are then fused and compiled into a hierarchical feature map. Finally, a fully connected convolution layer performs pixel-wise category estimation on that feature space. The token size, embed dimension, and neighbor size are empirically set to maximize memory efficiency at the lowest possible accuracy cost. Other parameters of shifted-window module and PPM module are directly used from their original architecture.

4.1.2 Supervised Learning Pipeline

The end-to-end training is driven by the standard cross-entropy loss [krizhevsky2012imagenet] that quantifies the dissimilarity in the generated and predicted pixel labels for each category. For multi-class segmentation of an image with N𝑁Nitalic_N pixels and M𝑀Mitalic_M classes, it is calculated as

CE=1Ni=1Nc=1Myi,clog(pi,c),subscript𝐶𝐸1𝑁superscriptsubscript𝑖1𝑁superscriptsubscript𝑐1𝑀subscript𝑦𝑖𝑐subscript𝑝𝑖𝑐{\mathcal{L}}_{CE}=-\frac{1}{N}\sum_{i=1}^{N}\sum_{c=1}^{M}y_{i,c}\log(p_{i,c}),caligraphic_L start_POSTSUBSCRIPT italic_C italic_E end_POSTSUBSCRIPT = - divide start_ARG 1 end_ARG start_ARG italic_N end_ARG ∑ start_POSTSUBSCRIPT italic_i = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_N end_POSTSUPERSCRIPT ∑ start_POSTSUBSCRIPT italic_c = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_M end_POSTSUPERSCRIPT italic_y start_POSTSUBSCRIPT italic_i , italic_c end_POSTSUBSCRIPT roman_log ( italic_p start_POSTSUBSCRIPT italic_i , italic_c end_POSTSUBSCRIPT ) , (1)

where pi,csubscript𝑝𝑖𝑐p_{i,c}italic_p start_POSTSUBSCRIPT italic_i , italic_c end_POSTSUBSCRIPT denotes the probability of pixel i𝑖iitalic_i belonging to class c𝑐citalic_c, and y𝑦yitalic_y is 00 (or 1111) for correct (or incorrect) predictions, respectively. The training is optimized by the Stochastic Gradient Descent (SGD) algorithm [robbins1951stochastic] with an initial learning rate of 1e41superscript𝑒41e^{-4}1 italic_e start_POSTSUPERSCRIPT - 4 end_POSTSUPERSCRIPT and a momentum of 0.90.90.90.9.

4.2 Training Setups for CaveSeg & Baseline Models

We configured a unified training pipeline for CaveSeg and several SOTA benchmark models for training and evaluation. Specifically, we used the MMSegmentation libraries [mmseg2020] in PyTorch for the large-scale training on CaveSeg dataset with a 85858585:5555:10101010 split ratio for train, validation, and test, respectively. For baseline comparison, we considered the following SOTA models across the CNN, CRF, and ViT literature: FastFCN [wu2019fastfcn], DeepLabV3+ [chen2018encoder], Segmenter [strudel2021segmenter], Segformer [xie2021segformer], and Swin Transformer [liu2021swin]. The proposed CaveSeg model is pre-trained on ADE20k [zhou2017scene] followed by the unified training. The input-output resolution is set to 960×540960540960\times 540960 × 540 for all models; other SOTA model-specific parameters are chosen based on their recommended configurations.

Table 1: Semantic segmentation performances of all models are compared on 350350350350 test images from the CaveSeg-Challenge set; here, higher scores (\uparrow) are better for all metrics in consideration.
  Method mIoU \uparrow mAcc \uparrow aAcc \uparrow
  FastFCN [wu2019fastfcn] 38.8638.8638.8638.86 46.8946.8946.8946.89 72.0172.0172.0172.01
DeepLabV3+ [chen2018encoder] 38.4638.4638.4638.46 49.4749.4749.4749.47 71.6471.6471.6471.64
Segmenter [strudel2021segmenter] 30.8130.8130.8130.81 39.6439.6439.6439.64 69.7669.7669.7669.76
Segformer [xie2021segformer] 35.3635.3635.3635.36 44.7144.7144.7144.71 70.1970.1970.1970.19
Swin Transformer [liu2021swin] 48.11 56.69 73.26
CaveSeg (proposed) 40.2240.2240.2240.22 45.9945.9945.9945.99 72.9172.9172.9172.91
 

5 Performance Analyses of CaveSeg

Refer to caption
Figure 5: A few qualitative performance comparisons of all models on CaveSeg-Challenge test set are shown (results for only five top-performing models are shown for clarity). Note that the object detection and localization accuracy for categories such as caveline, open area, and navigation markers are particularly important for AUV navigation.

5.1 Quantitative Evaluation

We use three standard metrics [long2015fully, minaee2021image] for quantitative assessments: mean Intersection Over Union mIOU, mean class-wise Accuracy (mAcc), and Average pixel Accuracy (aAcc). The IoU (Intersection Over Union) measures caveline localization performance using the area of overlap** regions of the predicted and ground truth labels. it is defined as IoU=Area of overlapArea of union𝐼𝑜𝑈𝐴𝑟𝑒𝑎 𝑜𝑓 𝑜𝑣𝑒𝑟𝑙𝑎𝑝𝐴𝑟𝑒𝑎 𝑜𝑓 𝑢𝑛𝑖𝑜𝑛IoU=\frac{Area\text{ }of\text{ }overlap}{Area\text{ }of\text{ }union}italic_I italic_o italic_U = divide start_ARG italic_A italic_r italic_e italic_a italic_o italic_f italic_o italic_v italic_e italic_r italic_l italic_a italic_p end_ARG start_ARG italic_A italic_r italic_e italic_a italic_o italic_f italic_u italic_n italic_i italic_o italic_n end_ARG. On the other hand, mAcc and aAcc represent the mean accuracy of each class category and over all pixels, respectively. The quantitative results are presented in Table 1; all evaluations are performed on the CaveSeg-Challenge set, which we curated with 350350350350 test samples. These samples include low-light noisy scenarios compiled in the CL-Challenge set (released earlier in [yu2023weakly]), as well as data from cave explorations in other such as the Blue Grotto and Orange Grove cave systems in FL, USA.

As Table 1 shows, our proposed dataset and learning pipelines can achieve up to 73%percent7373\%73 % accuracy for pixel-wise segmentation. The proposed CaveSeg model offers comparable performance margins despite having a significantly lighter architecture. The comparisons for computational efficiency are provided in Table 2. CaveSeg model has less than 50%percent5050\%50 % parameters than other competitive models and offers up to 1.8×1.8\times1.8 × faster inference rates. While we analyze the class-wise performance, we find that small and rare object categories such as arrows, cookies, and reels are challenging in general.

Table 2: Computational complexities for all models are compared based on number of parameters, memory requirements in Mega-Bytes (MB), and inference speeds in FPS. All experiments are performed on an Nvidia™ A100100100100 GPU server with 16161616 GB RAM.
  Method # Params \downarrow Memory \downarrow Speed \uparrow
  FastFCN 66666666 M 548.32548.32548.32548.32 MB 16.8916.8916.8916.89 FPS
DeepLabV3+ 42424242 M 489.38489.38489.38489.38 MB 15.0415.0415.0415.04 FPS
Segmenter 98989898 M 798.04798.04798.04798.04 MB 13.7313.7313.7313.73 FPS
Segformer 82828282 M 956.62956.62956.62956.62 MB 10.9210.9210.9210.92 FPS
Swin Tx 120120120120 M 1380.161380.161380.161380.16 MB 12.3912.3912.3912.39 FPS
CaveSeg 35 M 406.40 MB 19.78 FPS
 

5.2 Qualitative Evaluation

Figure 5 compares the qualitative performance of CaveSeg with other SOTA models. A unique feature of CaveSeg and other transformer-based models is that they perform better in finding large and connected areas, e.g., categories such as first/second layer obstacles and open areas. The continuous regions segmented by the CaveSeg model facilitate a better understanding of the surroundings compared to DeepLabV3+ and FastFCN. This validates our intuition that window-shifting technique can indeed extract global features more accurately. While the shifted window method focuses on global feature extraction, the deeper layers and multi-scale pooling of PPM help to preserve the details of local features. The precise detection of caveline, which is only a few pixels wide, further supports this design choice.

Refer to caption
Figure 6: A BlueROV2 is being teleoperated through a cave passage in Orange Grove, FL where the caveline is almost invisible; note that the yellow wire on the top image is the ROV’s tether, not a caveline. In such scenarios, an AUV can leverage the segmented obstacles and open areas in the scene (overlayed on the right column) toward planning a trajectory to rediscover and follow the caveline.

6 Use Cases: Vision-based Cave Exploration and Semantic Map** by AUVs

6.1 Safe AUV Navigation Inside Underwater Caves

The confined nature of the underwater cave environment makes obstacle avoidance a particularly important task. Safe navigation approaches, such as AquaNav proposed by Xanthidis et al. [XanthidisICRA2020] and especially AquaVis [XanthidisIROS2021] can generate smooth paths by avoiding obstacles. To this end, having a holistic semantic map of the scene can ensure that the AUV can safely follow the caveline and keep it in the FOV during cave exploration. Our previous work [yu2023weakly] demonstrates the utility of caveline detection and following for autonomous underwater cave exploration. While caveline detection is paramount, having semantic knowledge about the surrounding objects in the scene is essential to ensure safe AUV navigation. As shown in Fig. 6, cavelines can be obscure in particular areas due to occlusions and blends inside the cave passages. Hence, dense semantic information provided by CaveSeg is important to ensure continuous tracking and re-discovery of the caveline and other navigation markers. A few more challenging scenarios are shown Fig. 7, where simply following the caveline is not sufficient due to the cluttered scene geometry. With the semantic knowledge of first layer and second layer obstacles, caveline, and open areas – an AUV can plan its trajectory safely and efficiently.

Refer to caption
Figure 7: A few examples of semantic scene parsing by CaveSeg for important navigation information are shown. The first scene shows a traceable caveline towards the open area and surrounding obstacles. When no open areas are visible (second image), arrows on the caveline are helpful to know the exit direction of the cave. Lastly, the accurate detection of human divers is a crucial step for giving the right-of-way as well as diver-robot cooperation.

6.2 Working With and/or Alongside Human Scuba Divers

The underwater cave environment is extremely hostile due to the lack of direct access to the surface. Cave divers enforce strict protocols on light configurations (always a primary and two backup lights), use of breathing gas (use only 30%percent3030\%30 % on the way in, leaving 30%percent3030\%30 % for the return and 30%percent3030\%30 % for emergencies), and always keep near the caveline, ensuring there is an uninterrupted line to open water [exley1986basic]. Of particular importance is the right of way for an exiting team. As such, CaveSeg maintains a label for divers (see Fig. 7) to ensure appropriate actions by the AUV. Specifically, in the presence of a diver, the lights of the vehicle will be dimmed so that the approaching diver can see the caveline. The AUV will reduce its speed, and refrain from using the downward\hypfacing propellers in order to avoid stirring up the sediment; see Fig. 8 where the teleoperated ROV disturbed the sediment on the floor. Finally, the vehicle will move away from the caveline towards the walls of the cave.

Refer to caption
Refer to caption
Figure 8: A BluROV2 is being teleoperated inside the Blue Grotto cave, FL: (left) entering the cave; (right) stirring the sediments.

6.3 3D Semantic Map** and State Estimation

Another prominent use case of CaveSeg is the 3D estimation and reconstruction of caveline for AUV navigation. Specifically, 2D caveline estimation can be combined with camera pose estimation from Visual-Inertial-Odometry (VIO) to generate 3D estimates. This could potentially be used to compare and improve manual surveys of existing caves. Moreover, 3D caveline estimations can also be utilized to reduce uncertainty in VIO and SLAM systems since the line directions in 3D point clouds can provide additional spatial constraints [mo2021fast]. We demonstrate a sample result in Fig. 9, where ray-plane triangulation of cavelines is achieved using Visual-Inertial pose estimation for enabling 3D perception capabilities for underwater cave exploration. This experiment is performed on field data collected by ROVs in the Orange Grove cave system, FL, USA; we are currently exploring these capabilities for more comprehensive 3D semantic map** of underwater caves.

Refer to caption
Figure 9: Ray-plane triangulation of cavelines using VIO pose estimation and 2D line segments from deep segmentation pipeline are shown. The reconstructed 3D Lines are colored based on average re-projection error within its neighborhood in a local connectivity graph.

7 Conclusion and Future Work

This paper presents CaveSeg – the first comprehensive dataset and deep visual learning pipeline for underwater cave scene segmentation. With the primary focus on vision-guided cave exploration and map** by AUVs, we include semantic labels for object categories such as caveline, layered obstacles, arrows, cookies, attachment points, reels, as well as human scuba divers. We perform extensive benchmark evaluations of several SOTA models that demonstrate the utility of such dataset for robust semantic segmentation of underwater cave scenes. We further propose a computationally light model that offers up to 1.8×1.8\times1.8 × faster inference in addition to providing SOTA performance. More importantly, we demonstrate that the predicted scene parsing labels can be utilized for safe AUV navigation inside underwater caves. We are currently investigating the scope of augmenting semantic maps with geometric information from a Visual-Inertial SLAM system such as SVIn2 [RahmanIJRR2022]. This will potentially reveal the 3D position of the caveline as well as the relative location of obstacles and helpful markers. The synergy between geometry and semantics will provide additional visual features to further disambiguate weakly labeled areas during cave exploration. For future CaveSeg releases, we will augment semantic labels for objects such as vertical columns, stalagmite, and stalactite that are found in decorated caves.

8 Acknowledgements

This research has been supported in part by the NSF grants 1943205194320519432051943205 and 2024741202474120247412024741. The authors would also like to acknowledge the help of the Woodville Karst Plain Project (WKPP), El Centro Investigador del Sistema Acuífero de Quintana Roo A.C. (CINDAQ), Global Underwater Explorers (GUE), and Ricardo Constantino, Project Baseline in collecting data, providing access to challenging underwater caves, and mentoring us in underwater cave exploration. We also appreciate the help from Evan Kornacki for coordinating our field experimental setups. We thank the RoboPI lab members (Ruo Chen; Richard Feng) and former students (Ailani Morales; Boxiao Yu) who helped us with image labeling and annotation tasks of CL-ViT and in the early stages of this project.

\printbibliography