Constrained Bayesian Optimization for Automatic Underwater Vehicle Hull Design
Harsh Vardhan, Peter Volgyesi, Will Hedgecock, Janos Sztipanovits

TL;DR
This paper presents a constrained Bayesian optimization framework integrated with CAD and CFD tools for automatic underwater vehicle hull design, demonstrating efficiency and feasibility on real-world cases.
Contribution
It introduces a novel integration of domain-specific engineering tools with Bayesian optimization for efficient hull design automation.
Findings
Successful automatic hull design optimization for real-world UUVs
Effective handling of design constraints within Bayesian optimization
Demonstrated sample efficiency and practical applicability
Abstract
Automatic underwater vehicle hull Design optimization is a complex engineering process for generating a UUV hull with optimized properties on a given requirement. First, it involves the integration of involved computationally complex engineering simulation tools. Second, it needs integration of a sample efficient optimization framework with the integrated toolchain. To this end, we integrated the CAD tool called FreeCAD with CFD tool openFoam for automatic design evaluation. For optimization, we chose Bayesian optimization (BO), which is a well-known technique developed for optimizing time-consuming expensive engineering simulations and has proven to be very sample efficient in a variety of problems, including hyper-parameter tuning and experimental design. During the optimization process, we can handle infeasible design as constraints integrated into the optimization process. By…
| Symbol | Minimum | Maximum |
|---|---|---|
| mm | ||
| mm | ||
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsShip Hydrodynamics and Maneuverability · Advanced Multi-Objective Optimization Algorithms · Maritime Navigation and Safety
Constrained Bayesian Optimization for Automatic Underwater Vehicle Hull Design
Harsh Vardhan
Vanderbilt UniversityNashvilleTNUSA
,
Peter Volgyesi
Vanderbilt UniversityNashvilleTNUSA
,
Will Hedgecock
Vanderbilt UniversityNashvilleTNUSA
and
Janos Sztipanovits
Vanderbilt UniversityNashvilleTNUSA
(2023)
Abstract.
Automatic underwater vehicle hull Design optimization is a complex engineering process for generating a UUV hull with optimized properties on a given requirement. First, it involves the integration of involved computationally complex engineering simulation tools. Second, it needs integration of a sample efficient optimization framework with the integrated toolchain. To this end, we integrated the CAD tool called FreeCAD with CFD tool openFoam for automatic design evaluation. For optimization, we chose Bayesian optimization (BO), which is a well-known technique developed for optimizing time-consuming expensive engineering simulations and has proven to be very sample efficient in a variety of problems, including hyper-parameter tuning and experimental design. During the optimization process, we can handle infeasible design as constraints integrated into the optimization process. By integrating domain-specific toolchain with AI-based optimization, we executed the automatic design optimization of underwater vehicle hull design. For empirical evaluation, we took two different use cases of real-world underwater vehicle design to validate the execution of our tool.
Bayesian Optimization, underwater vehicles, inequality constraints, computational fluid dynamics, CAD
††journalyear: 2023††copyright: rightsretained††conference: Design Automation for CPS and IoT; May 9–12, 2023; San Antonio, TX, United States
1. Introduction
Artificial Intelligence (AI) and Machine Learning (ML) are becoming increasingly useful for both system-level design (Allard and Shahbazian, 2014; Vardhan et al., 2021; Alam et al., 2015; Vardhan and Sztipanovits, 2022a) and control (Vardhan and Sztipanovits, 2021; Abbeel et al., 2010; Vardhan and Sztipanovits, 2022b). However, its application to real-world designs is still nascent for a variety of reasons. The first challenge is that these areas involve complex tools and require cumbersome, integrated toolchains. Integrating these tools requires domain knowledge, as well as the development of tool-level integration platforms. The next challenge involves the complexity of carrying out evaluations due to the high cost of data labeling. In this work, we aimed to address both challenges in the context of an underwater vehicle hull design optimization problem. The design of an underwater vehicle hull involves multiple steps: CAD design of the hull, generation of stereolithography (STL) files, generation of a computational fluid dynamics (CFD) simulation environment, creation of volume meshing, fixing of the initial and boundary conditions, and solution of Navier-Stokes equations at the mesh level. For a fully automated design optimization process, it is necessary to integrate the execution of all of these processes in a single tool.
Another aspect of this work relates to optimization algorithms. There are many gradient-free and gradient-based algorithms available; however, in recent times, Bayesian Optimization (BO) (Clark, 1961; Močkus, 1975; Zhilinskas, 1975) has emerged as a well-established paradigm for optimizing expensive-to-evaluate functions in a sample-efficient manner, and it has been successfully applied to many scientific domains. Bayesian Optimization is a complex optimization process that provides the benefits of both model-based and simulation-based optimization approaches. To this end, BO creates a probabilistic model of an unknown function during the optimization process and uses this model to simulate and search for the best candidate sample to be used in the next evaluation. Constraints may exist which make some of the designs and design space infeasible, and these must be handled appropriately during the optimization process. In this work, we have made the following contributions:
- (1)
A ready-to-use underwater vehicle design tool using a Myring hull-based parametric CAD seed design, 2. (2)
Integration of a constrained Bayesian Optimization framework for UUV hull design problem.
This fully automated optimization toolchain can be used as a good starting point to study and test different optimization methods on real-world complex problems, in addition to providing a useful tool for underwater vehicle hull designers. The code for running the experimentation and installing the toolchain can be found here https://github.com/vardhah/ConstraintBOUUVHullDesign.
2. Problem Formulation and Approach
In this section, we formulate the UUV hull design problem as a constrained optimization problem. The hull shape of an underwater vehicle is indicated as and can be defined using a multivariate parameter , that is, . If is the objective function that maps a 3D shape with a complex property of coupled two-way solid-fluid dynamics, that is, drag force () (.), then the optimization problem can be formulated as:
[TABLE]
Here, is our design search space. The UUV hull contains electronics, sensors, and other mechanical and electrical components. Packing them into the hull imposes a non-linear constraint on the optimization process. The hull design problem can then be formulated as a constrained optimization problem defined as follows:
[TABLE]
Here, constraint function ensures that all selected components can be packed inside the designed UUV hull. To solve this optimization problem, we utilize a constrained Bayesian Optimization framework as formulated by (Gardner et al., 2014).
2.1. Constrained Bayesian Optimization
Bayesian Optimization relies on a probabilistic model of the system of interest during optimization, and the fidelity of the model is the most decisive factor in the optimization process. We use the Gaussian process (Rasmussen, 2003) defined below to model system behavior ():
[TABLE]
Here is the mean function and is the covariance kernel. For any given pair of input points , these are defined as:
[TABLE]
In the Bayesian sequential design optimization process, a crucial step at each iteration is to select the most promising candidate for evaluation in the next iteration. In the BO setting, this is done by defining an acquisition function. The design of an acquisition function is a critical component in the performance efficiency of the BO. Let be the best-evaluated sample so far. To select a candidate point in the next iteration, an improvement is defined according to Mockus et al. (Močkus, 1975) as follows:
[TABLE]
The expected improvement in such a case is defined as an EI acquisition function, which has a closed-form solution for estimating it from a new candidate point, as given by Mockus et al. (Močkus, 1975) and Jones et al. (Jones et al., 1998):
[TABLE]
Here, is the standard normal cumulative distribution and is the standard normal probability density function. Using this EI function, the most promising candidate sample is selected by choosing that has the maximum EI value.
[TABLE]
The newly selected sample is evaluated and is included in the evaluated data set, called . Accordingly, the posterior probability distribution is estimated by the conditioning rules for Gaussian random variables, as below:
[TABLE]
Constrained BO, which is an extension to standard BO meant to model infeasibility during the inequality-constrained optimization routine, is formulated and proposed by (Gardner et al., 2014). We use this formulation for our experimentation, and it models both function and constraint as Gaussian processes. Let be the constraint function that is unknown a priori; the first step in this setting is to model and as Gaussian processes:
[TABLE]
The improvement function in this case is modified as:
[TABLE]
is a feasibility indicator function that is if , and [math] otherwise. It causes to be a Bernoulli random variable whose probability of getting a feasible design is:
[TABLE]
Due to the Gaussian behavior of , would be a univariate Gaussian random variable. The modified expected improvement to include the effect of infeasibility gives a joint acquisition function:
[TABLE]
This joint acquisition function can be further optimized using standard optimization algorithms. Since our acquisition function has the property of being smooth and continuous, we used a two-step optimization to find . The first step is Monte Carlo optimization and the second step is limited memory BFGS (Fletcher, 2013) (see Figure 1).
2.2. Integrated Toolchain
For design automation, exploration, and optimization, we integrated the necessary simulation tools for completely automated execution. To this end, we integrated the CAD design tool FreeCAD (Riegel et al., 2016) with the CFD simulation tool OpenFoam (Jasak et al., 2007). FreeCAD is used to design a parametric CAD model and generate the 3D CAD geometry from a given set of parameters along with its stereolithography (STL) file without any manual intervention. OpenFoam uses this STL file to conduct fluid physics simulations via finite volume discretizations. Volume meshing is done using a castellated 3D parametric volumetric mesh which is further split and refined in the vicinity of the body surfaces. Other CFD simulation requirements, like solver settings and initial and boundary conditions, can also be set up from a Python environment. In the meshed volume, RANS with kw-SST turbulence fluid physics is solved, and the output of interest is fetched from OpenFoam and transferred back into the Python environment. Accordingly, it is possible to both control and run the entire design optimization pipeline from a single Python environment. This integration of tools and capability to control the parameters and environmental conditions gives us the flexibility to run an optimization framework with design tools in the loop without human intervention (refer to Figure 2).
2.3. Parametric CAD Model and Baseline Packing Geometry
For automatic design optimization, it was imperative to design a parametric CAD model with the flexibility and adaptability to be able to create a 3D model from a given set of parameters without manual intervention. The parametric CAD design should maintain the experimenter’s assumptions in order to generate a valid CAD design based on the given parameters. To ensure this, we use a stringent design methodology for completely constrained designs (Hoffmann and Kim, 2001). For the parametric CAD seed design, we used a Myring hull(Myring, 1976) as our baseline architecture. It is the most commonly used axisymmetrical hull shape, due to a number of advantages such as streamlined flow behavior and satisfactory geometry for both hydrodynamic and hydrostatic pressure. A Myring hull has three different body sections: nose, tail, and cylindrical center:
The nose and tail equations for a Myring hull are given by:
[TABLE]
Here, and define the radius of the nose and tail of the hull at a distance, , measured from the tip of the nose. Other body parameters are: , , , , , and , corresponding to nose length, body length, tail length, cylindrical body diameter, nose shaping parameter, and tail shaping parameter, respectively (see Figure 3).
The baseline design used for internal component packing and placement comes from another automated tool (Maroti et al., ). Component selection and packing are not within the scope of this paper; however, three-dimensional packing of components in an arbitrary shape is an NP-complete problem. Based on the capabilities of our external component selection and packing tool, we utilized a simple design with conical end caps (nose and tail) and a cylindrical body to determine the exact required hull dimensions. These conical-shaped parametric designs are optimized to minimize internal hull volume while ensuring that packed components have no interferences. These baseline designs, however, are not optimal from the perspective of producing minimal-drag designs. Once components are packed and the parameters of a baseline design are found, this fixed geometry will act as a minimal constraint in the optimization of the hull design. (see Figures 4 and 5).
2.4. Infeasible Design Heuristics
Since a parametric Myring hull can assume a wide range of shapes (Myring, 1976), the generated hull shape needs to be tested for interference with the baseline packed design. Any Myring hull parameters that cause interference with the baseline design are deemed to be infeasible. Since the computational cost of CAD assembly and running an interference test is much less than CFD simulation, the in-feasibility test on an optimized design is conducted during the CAD modeling and assembly stage (refer to Figure 2). Running full CFD analysis on an infeasible design is a waste of computational time and resources, and it delays the optimization process. To address this situation, we implemented a heuristic that works as follows (for a minimization problem): for an infeasible design that is detected during CAD assembly, return the maximum drag value to the optimizer for all evaluated samples up to that point, instead of running a full CFD analysis. The opposite can be done for a maximization problem. However, for starting the experiment we need at least one drag value of in-feasible design. Accordingly, we run the first infeasible design and store its drag value.
3. Design Experimentation and Results
In this section, we present two different experiments carried out using our optimization pipeline. In both cases, selected components are the same and consequently, the baseline packing geometry is identical. The operating conditions (i.e., the velocity of operation, initial and boundary conditions) and environmental conditions (e.g., turbulence intensity) are kept constant based on mission requirements. The baseline packing geometry is as shown in Figure 6. The design space () of the search process is selected as shown in Table 1.
3.1. Experiment 1
In this experiment, we only optimize the nose and tail shapes, defined by parameters and . The range of the design space for optimization of parameters and is given in Table 1. Due to it being a computationally costly process, we run iterations of optimization using our optimization pipeline. The most optimal design (shown in Figure 8) has a drag value of approx Newtons.
3.2. Experiment 2
In this experiment, we also optimized the nose and tail length (parameters and ) in addition to their shapes (parameters and ). The design space for optimization of all four variables is given in Table 1. Again, we run 50 sequential optimization steps using our optimization pipeline. The most optimal design is shown in Figure 8 and had a drag value of approximately Newtons. This is a 50% reduction in drag due to the streamlined nose and tail shapes and would save a large amount of energy consumption during real-world operation of the vehicle.
3.3. Analysis of result
In both experiments, the allocated budget was evaluations since the evaluation time was tens of minutes. But BO converges to optimal/near-optimal design in a few iterations. In exp1 (refer to right side plot in figure 8) even in 12 iterations a near-optimal design was found and no significant further improvement is observed. In exp2 (refer to right plot in figure 10) only in 10 iterations the optimal design was found and no further improvement was observed. This sample efficiency is due to the dynamic probabilistic modeling of the design space on labeled samples and state-of-the-art acquisition functions and accordingly costly optimization calculation. However, with the current multi-core implementation of BO, it takes milli-second to seconds for finding a new sample to evaluate and it is prudent to use BO in use cases where sample labeling and evaluation time can not be reduced beyond seconds.
4. Related Work
One of the first well-known studies on optimizing UUV hull design for low drag was conducted by Gertler (Gertler, 1950) in . Later in 1976, Myring (Myring, 1976) studied viscous-inviscid flow interaction methods to predict drag and concluded that there is low variability in body drag force when the nose or tail varies from slender to stout within a specific range, but it increases dramatically outside that range. To design shapes for better performance, bio-inspired hull shapes for UUVs are becoming popular (Dong et al., 2020). To this end, Dong et al. (Dong et al., 2020) designed a gliding robotic fish with the streamlined shape of a whale shark. Stewart et al. (Stewart et al., 2018) designed a hybrid UAV-UUV system inspired by seabirds. A four-fin bio-inspired UUV was studied by Geder et al. (Geder et al., 2013). They also showed that fish can achieve both high maneuverability and excellent gliding performance by equipping themselves with controllable fins and tails.
More recently, with extraordinary developments in computing capability and the maturity of mesh-based analysis tools, computational fluid dynamics (CFD) simulations are now widely applied to analyze UUV hydrodynamic performance. Most research is based on either the Reynolds-averaged Navier-Stokes (RANS) formulation or the large eddy simulation (LES). Since RANS treats viscous effects much better than potential flow theory and needs fewer computational resources, it is more frequently used than LES. With the advent of computer-aided design, traditional CFD can be leveraged inside an optimization loop to seek an optimal UUV design for given flow conditions; see, e.g., Alam et al. (Alam et al., 2015). Many different optimization algorithms have been considered; for example, adjoint methods (Jameson, 2003) and genetic algorithms (Song et al., 2010). (Vardhan et al., 2023) integrated machine learning model with numerical simulation to get optimized design faster than the traditional methods. Schweyher et al. (Schweyher et al., 1996) used an evolutionary strategy- Genetic Algorithm to obtain a minimum-drag body. Application of Bayesian Optimization to find a minimum-drag shape was studied in 2D small arbitrary shapes by Eismann et al. (Eismann et al., 2017) and an axisymmetric body of rotation by Vardhan et al (Vardhan and Sztipanovits, 2023). Both works did not consider constraint modeling during the design process. A deep neural network-based approach is used to study the effects of UUV shape on drag force by (Vardhan et al., 2022).
5. Conclusion and Future works
In this work, we developed an end-to-end design automation toolchain for constrained optimization problems for underwater vehicle hull design. We integrated the state-of-the-art AI-based optimization algorithm called Bayesian optimization along with the capability to handle constraints during the optimization process. Since this integrated tool is generic, the most interesting future work of interest is the extension and integration of other optimization algorithms with the current evaluation toolchain and comparing the performance of AI-based bayesian optimization with these optimization methods that are currently used in the domain of CFD-based optimization. To this end, it would be interesting to compare BO with other simulation-based optimization methods like GA, Nelder Mead, and Particle Swarm Optimization along with the most used gradient-based optimization method i.e. adjoint-assisted optimization. A detailed comparative study can give us a better picture of the standing of AI-based optimizers in comparison to other existing optimization methods.
Acknowledgements.
This work is supported by DARPA through contract number FA8750-20-C-0537. Any opinions, findings, conclusions, or recommendations expressed are those of the authors and do not necessarily reflect the views of the sponsor.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Allard and Shahbazian [2014] Yannick Allard and Elisa Shahbazian. Unmanned underwater vehicle (uuv) information study. Technical report, OODA Technologies Inc Montreal, Quebec Canada, 2014.
- 2Vardhan et al. [2021] Harsh Vardhan, Peter Volgyesi, and Janos Sztipanovits. Machine learning assisted propeller design. In Proceedings of the ACM/IEEE 12th International Conference on Cyber-Physical Systems , pages 227–228, 2021.
- 3Alam et al. [2015] Khairul Alam, Tapabrata Ray, and Sreenatha G Anavatti. Design optimization of an unmanned underwater vehicle using low-and high-fidelity models. IEEE Transactions on Systems, Man, and Cybernetics: Systems , 47(11):2794–2808, 2015.
- 4Vardhan and Sztipanovits [2022 a] Harsh Vardhan and Janos Sztipanovits. Deep learning based fea surrogate for sub-sea pressure vessel. In 2022 6th International Conference on Computer, Software and Modeling (ICCSM) , pages 36–39. IEEE, 2022 a.
- 5Vardhan and Sztipanovits [2021] Harsh Vardhan and Janos Sztipanovits. Rare event failure test case generation in learning-enabled-controllers. In 2021 6th International Conference on Machine Learning Technologies , pages 34–40, 2021.
- 6Abbeel et al. [2010] Pieter Abbeel, Adam Coates, and Andrew Y Ng. Autonomous helicopter aerobatics through apprenticeship learning. The International Journal of Robotics Research , 29(13):1608–1639, 2010.
- 7Vardhan and Sztipanovits [2022 b] Harsh Vardhan and Janos Sztipanovits. Reduced robust random cut forest for out-of-distribution detection in machine learning models. ar Xiv preprint ar Xiv:2206.09247 , 2022 b.
- 8Clark [1961] Charles E Clark. The greatest of a finite set of random variables. Operations Research , 9(2):145–162, 1961.
