1. Introduction
Robotic systems that aim to solve engineering problems excite researchers in underwater studies about fish robotics and its applications. In this context, the hydrodynamic analysis of underwater robots inspired by the movement characteristics of real fish gain importance. To see the details of the mechanics of fish swimming, it becomes necessary to analyze the forces exerted by the water and how these forces affect the movement of the fish. With the development of soft robot applications, the hypothesis of whether the transition from rigid-body robots to soft-body robots gives more realistic results in imitating the movements of the inspired real living creature is a subject worth investigating.
Studies on the computational fluid dynamics (CFD) analysis of robotic fish include topics such as the hydrodynamic characteristics of different robotic fish designs, including body shape, fin configurations, and propulsion mechanisms; the interaction between the robotic fish’s fins and the surrounding fluid; the hydrodynamic principles underlying fish locomotion, incorporating them into robot design; flow control mechanisms employed by robotic fish to enhance performance and stability; and the impact of environmental factors such as currents, turbulence, and obstacles on the performance of robotic fish. In their study, Chen et al. presented an experimental investigation aimed at determining the most efficient fin structure by comparing the hydrodynamic propulsion performance of different biomimetic pectoral fin designs on a single robotic platform [
1]. Zhang conducted a fluid–structure interaction (FSI) analysis of a soft biomimetic robotic fish driven by a piezoelectric MFC actuator to examine its hydrodynamic force, displacement, and thrust performance at different drive frequencies [
2]. The study demonstrated that the finite element and dynamic mesh-based FSI simulations were consistent with the experimental results, indicating that the robotic fish’s behavior in a flow environment can be predicted and utilized for design and performance improvements. A kinematic model and RBF neural network-based dynamic control approach were developed to enable flexible-body robotic fish to perform a constant-radius turning motion. The effects of parameters such as body offset, maximum bending time, and tail fin frequency on turning performance were investigated through a CFD analysis [
3]. Liu et al. developed a strategy to predict the hydrodynamic performance of body–caudal fin (BCF)-propelled biomimetic fish using a NACA0012-based two-dimensional (2D) swimming model and CFD simulations and examined the influence of parameters such as flow velocity, frequency, wavelength, and head oscillation amplitude [
4]. The study demonstrates that a Multi-Layer Perceptron (MLP)-based prediction model trained on these CFD results showed a high accuracy (3% error) and good generalization ability. Khan et al. investigated the effects of fluid loading, fin membrane structure, and target object geometry on contact perception by examining the strain responses of compliant robotic fins and stringers during underwater contact. By comparing contact processes in air and water environments, the study revealed how underwater structure–fluid structure interaction (SFSI) alters contact perception [
5]. A detailed motion analysis was presented using three-dimensional (3D) CFD to examine the effects of the distinctive body shape and high-amplitude undulations of frog larvae (tadpoles) on swimming hydrodynamics and propulsion efficiency [
6]. In their study, Wang et al. presented an optimization method combining a Hopf-based improved CPG control network with CFD simulations to improve the swimming performance of a three-joint biomimetic soft robot fish [
7]. By analyzing the effects of CPG parameters on complex swimming behavior using a CFD-based simulation platform, the study accelerated experimental optimizations. It achieved an optimized swimming performance that was highly consistent with real-world tests. The hydrodynamic propulsion mechanism of a floating robot inspired by the Black Ghost Knife Fish was investigated through numerical simulations and experiments, investigating the effects of parameters such as the fin ratio, frequency, amplitude, and wave number on thrust generation [
8]. The study also revealed how propulsion performance decreases in choppy water compared to still water, providing systematic design guidance for selecting appropriate motion parameters for different missions. In addition, CFD simulations are important in evaluating hydrodynamic drag and thrust forces to prepare robotic fish for long-term missions by reducing energy consumption [
9,
10,
11].
Soft robots, inspired by the locomotion of fish and other aquatic creatures, offer advantages in agility, flexibility, and adaptability compared to traditional rigid robots. Soft robots, many of which are inspired by biological organisms, can perform a wide variety of tasks due to their ability to change shape and adapt to different surfaces [
12]. Soft robots mimic the structures and movements of the organisms they inspire and can thus gain extraordinary abilities, such as navigating confined spaces or passing through narrow gaps. With their deformable bodies, soft robots can more easily adapt to unpredictable environments, changes in their environment, or task requirements, and overcome obstacles more easily. Since they do not require complex joints and mechanisms, they have lower production costs with their simpler designs. With their simple structure, they can be more energy efficient than rigid robots. CFD analysis plays a crucial role in understanding the hydrodynamics of these soft robots and optimizing their design for efficient locomotion. Since soft robotic fish tend to have more flexible structures and more complex behaviors than rigid-bodied robots, CFD analysis contains many clues showing fluid–structure interactions for behavioral control [
13].
In our previous work, we focused on a robotic system that can convert a multi-joint serial mechanism into wave-like undulations [
14,
15,
16,
17]. To overcome the mechanical limitations and excessive energy consumption caused by multiple joints, in this study, we present a design that can model wave-like undulations within an integrated body structure capable of achieving the tail motion of fish-like swimmers.
The research on the propulsive principle of underwater animals has become more significant for underwater robotic applications and attracted more researchers’ attention. To figure out the mechanics of fish swimming, one needs to know the forces performed by the fluid and how these forces influence the fish’s motion. Li et al. modeled a zebrafish larva, which has a soft body, with the 3D computational method and analyzed it for both cyclic and non-cyclic swimming modes. A comparison of CFD and the experiment was ensured by comparing the output of the model with the experimental flow and kinematic data. The authors tried to discover the response of the body wave amplitude on performance during cyclic swimming to discover ideal swimming strategies [
18]. Palit et al. investigated the fluid flows by implementing a CFD model of a tilapia fish. This rigid-body model was simulated by generating a movement in the form of a sinusoidal wave in the (
x,
y) plane of the tail and abdomen. Pressure and velocity curve results have been presented in CFD analysis and discussed concerning the aerodynamic force parameters for the linear motion of fish [
19]. Adkins et al. established a CFD simulation of a 3D biomimetic fish-like body to explore the fluid flows around the body in a viscous liquid. The analysis ensured by the transient state simulation of a fish-like body has allowed the flow surrounding a fish-like body undergoing periodic oscillations to be investigated [
20].
In the study of Liang et al., the characteristics of fluid flow and contours of vorticity around a three-dimensional traveling wave undulation body for tuna in straight motion were investigated by developing a CFD model. Only the posterior half of the fish model was undulated, and the lunate fin oscillating together with a swaying with yawing mode was considered as the tail. The hydrodynamic performance of the fish body model was investigated for the effects of the interaction between the vortices of the body and the tail [
21]. Cui et al. determined the movement index by separating the body of the carangiform fish from its tail using complex orthogonal decomposition. The swimming performance of the fish was examined, with different amplitudes and tail flapping frequencies, with a movement index of around 0.6. As a result of the study, it was revealed that forward speed is related to the movement index and flapping frequency, and swimming efficiency is related to the flapping frequency and amplitude coefficient, as seen in real fish [
22]. Chang et al. analyzed thrust forces using crescent, semicircular, and fan-shaped fin models with CFD simulations. Turbulence effects were examined using two typical turbulence models (SA, SST) [
23].
There are many hypotheses to investigate the behavioral characteristics and functionality of fish schools. The escape reactions of schooling fish against approaching predators spread from the first reaction to the following individuals, resulting in changes in orientation and swimming speed, which help the individuals to escape quickly. In their study, Takagi et al. measured the 3D positions of individuals in a school in a largely closed environment in order to understand the connection between the alignment of individuals in the school and energy saving. Restricted swimming trials have shown that, at peak flow rates, the tail beat frequency (TBF) of shoal followers is significantly lower than that of pioneer fish, and the hydrodynamic effects on this were investigated in the study [
24]. Researchers have determined that fish in nature behave in ways that minimize their energy consumption while swimming. In order to understand these behavioral models, Eguchi et al. tried to simulate the swimming behavior of fish in which they use the stagnation area of the flat plate to stay in their current position. The study attempted to show that fish adjust the forces applied to their bodies by changing the curvature of their tail fins, which is necessary to stay in place relative to the flow field. It is predicted that this study may be effective in ensuring fish schooling behavior in future studies [
25].
Park and Sung modeled a flexible fin by examining the hydrodynamic effects experienced by fish in irregular flows and tried to reveal the mechanisms by which fish can use energy from the behavior of the liquid around them. To do this, they examined three different irregular flow situations: close to the ground, behind the cylinder, and behind a moving fin. It is stated that the study will contribute not only to understanding the unique behavior of fish in perturbed flows but also to the development of artificial underwater vehicles that benefit from environmental energy [
26]. Curatolo and Teresi aimed to model muscle functioning using the active distortion system. In the study, kinematic behaviors were examined rather than realizing the basic characteristics of carangiform swimming [
27]. Chang et al. studied the effect of the Reynolds number on the thunniform mode of fish. The dynamic hybrid mesh method and unsteady incompressible flow solver were used in the simulation model. Increasing the Reynolds number caused the surface friction coefficient to decrease. Additionally, the study concluded that it is appropriate for thunniform fish to swim at higher speeds at higher Reynolds numbers. The performances of three different shaped tail fin models, namely crescent-shaped, semicircle-shaped, and fan-shaped, were also tested [
23].
Macias et al. examined the hydrodynamics of the wake flow behind two fish of the carangiform species. It was simulated by allowing fish to move in laminar and turbulent flows. The patterns revealed by the swimming traces of fish were examined, and the relationships between these traces and the kinematics of the fish were studied [
28]. Costa et al. designed a series of ostasiiform swimming robots and designed a transmission system that converts the continuous rotation motion of a single motor into the undulating motion of a multi-joint serial mechanism that will benefit from maximum thrust while maintaining the fish’s maneuverability to a certain extent. The propulsive performance of the caudal fin was examined using CFD techniques. The robotic propulsion performance was analyzed dynamically. The authors stated that their work is still in the prototyping stage [
29]. Xia et al. carried out the hydrodynamic analysis of porpoise movement in dolphins in a model with a dolphin-like body. For this purpose, a four-stage swimming model was used: underwater acceleration, jumping up, gliding in the air, and diving down. In the study, the maximum jump height, maximum jump distance, and jump efficiency were simulated for various behaviors by changing the flapping frequency and escape angle [
30].
In recent years, studies on biomimetic underwater robots have moved beyond fin or body oscillation (BCF) locomotion to propulsion mechanisms using alternative soft-body structures. In this context, Hu et al. [
31] developed a jet-propelled soft robotic jellyfish inspired by the origami polyhedral structure and reported that CFD simulations and experimental results showed a high agreement. This study constitutes a significant example in the literature, demonstrating the effectiveness of structural deformation-based design approaches in underwater propulsion mechanisms [
31].
For the above existing CFD simulations of fish studies, there are still some open issues. The deep analysis of wake flows using intelligent methods may hold more clues about fish hydrodynamics. In certain cases where studies are available in the literature, classifying fish movements through CFD analysis will also contribute to energy-saving underwater robotic applications. Further research applying deep learning methods is needed to reveal the effects of hydrodynamic data obtained through CFD analysis, depending on the swimming model and boundary conditions, on swimming performance.
To more clearly present the position of this study within the existing literature and to highlight the novelty of the proposed approach, a comparative table summarizing the representative CFD–machine learning studies and CFD-assisted biomimetic fish research utilized in the article is provided (
Table 1).
In this study, a deep learning-based approach is proposed to model and predict the undulatory swimming behavior of a robotic fish. A 2D robotic fish model is implemented within a CFD framework to reduce computational costs while preserving physical accuracy. A user-defined function (UDF) is developed to capture the fish-like wavy motion of the model in the CFD environment. We enhance simulation flexibility by integrating this UDF into our CFD framework, thereby providing customized force calculations and adaptive boundary conditions to capture the complexity of fish swimming dynamics better. Based on the data obtained from these simulations, a CNN-GRU hybrid deep learning model is designed to effectively extract distinctive features related to swimming dynamics. The proposed model demonstrated a high accuracy in predicting hydrodynamic forces and swimming performance, achieving significant improvements in error metrics such as RMSE, MAE, and SMAPE. Furthermore, the model outputs are evaluated using performance coefficients, including CT, CP, and η, to thoroughly investigate the effects of various kinematic parameters on swimming efficiency. Overall, the study presents a time-efficient and accurate deep learning-assisted solution compared to traditional CFD-based methods, offering valuable insights for both biological studies and engineering applications.
The remaining parts of this paper are organized as follows:
Section 2 presents the details of background theories. The experiments, findings of the study, and performance comparisons are given in
Section 3. Finally,
Section 4 summarizes the conclusions of the study.
2. Materials and Methods
2.1. Numerical Setup
Liu et al. [
6] analyzed tadpole propulsion by employing a 3D CFD model and compared the outcomes with those obtained from a previously conducted 2D study. Their findings indicated that the 3D simulations validated the results of the earlier 2D analysis. The 3D geometries of biomimetic fish-like bodies are often highly complex. The processes of mesh generation and the accurate specification of boundary conditions for such geometries are both time-consuming and prone to error. Moreover, 3D CFD simulations require substantially greater computational power, memory capacity, and processing time. This is particularly the case in simulations involving detailed turbulence modeling and time-dependent analyses, where 3D solutions can become prohibitively expensive. In contrast, 2D models are simpler and more manageable, providing sufficient insights into the general flow behavior and fundamental aerodynamic/hydrodynamic characteristics.
A 2D model is used to accurately simulate the undulating motion of a fish-like body and the flapping of the tail fin. As shown in
Figure 1, the total length of the fish model is
L = 1 m, while the computational domain used has dimensions of 2
L × 6
L, and the fish model is placed 2
L to the right of the input.
A comprehensive view of the mesh used in the liquid areas and around the fish is presented in
Figure 2. Ansys Fluent 21, a commercial CFD software, is used to solve the control equations throughout the computational domain. Hexa meshes are used to achieve faster and better solutions in the liquid areas. A five-layer, 1.2-layer thickness increment inflation is applied to the 2D fish model boundary layer to accurately analyze the flow behavior in the boundary regions. Throughout the simulation, dynamic mesh-based smoothing, layering, and remeshing are applied to maintain the quality of the mesh structure and ensure its deformation and reconstruction during the flexible deformation motion of the fish body during its wavy motion. In carangiform and thunniform swimmers, the body is characterized by undulations backwards from the tail. The kinematics of this movement are described using a sinusoidal equation for the transverse displacement of the midline of the fish, as reported by many researchers [
20,
21,
22]:
In Equation (1),
ω = 2
π f (rad/s) is the swimming frequency,
k = 2
π/
λ is the tail wave number,
λ represents the wavelength, and
a(
x) is the variable amplitude, defined by Equation (2):
With the kinematic model describing the tail motion (Equations (1) and (2)), a FLUENT user-defined function (UDF) is created to track the instantaneous position and state of the tail, where a0 = 0.2, a1 = 0.01, and a2 = 0.1.
The generated UDF algorithm is a separate function written in the C programming language. This function is dynamically loaded into the FLUENT solver. In this study, a dynamic mesh UDF is implemented using the DEFINE_GRID_MOTION macro to simulate fish movement.
In this study, the flow is set in the form of the motion of a 2D body deforming in the form of undulation in an incompressible viscous fluid. The corresponding governing equations, the Navier–Stokes equations written for the incompressible viscous flow of a Newtonian fluid with a constant density and kinematic viscosity, are solved using computational fluid dynamics (CFD). The SIMPLE (Semi Implicit Pressure Linked Equations) algorithm is used as the coupling scheme of the pressure–velocity equations. The SST k-ω turbulence model (Shear Stress Transport model) is an advanced turbulence model used to accurately analyze near-wall flows and free-stream regions simultaneously. In this study, the SST k-ω model is adopted to accurately capture the vortex dynamics in the flow under different flow regimes and to calculate the hydrodynamic forces that play a role in the driving motion. In the simulation with dynamic motion, the time step is chosen to be 0.001 s. The analysis of the numerical analysis described in detail is performed on a workstation with a 128 Core 256 Processor AMD EPYC 7763 CPU @2.45 GHz.
Most studies of carangiform and thunniform swimmers have emphasized two non-dimensional parameters associated with swimming performance. The Reynolds number (
Re) of the flow, the Strouhal number (
St) depending on the frequency, and the amplitude of the undulating body movement are defined as follows [
23,
24].
where
L is the fish length,
U is the flow velocity, and
ν is the kinematic viscosity of the fluid (water).
where
f is frequency and
A is the amplitude of fish tail. The Reynolds number is set by changing the flow velocity of the fluid, while the Strouhal number is determined by changing the frequency of the swimming motion, such that both
Re and
St can be set independently. In this study, simulations are carried out considering the fish as being steady in a constant velocity flow. In this study, the non-dimensional parameters
Re and
St, which are associated with swimming performance, are varied over a systematic range to investigate measures of efficiency.
2.2. Sensitivity of Grid
It is known that the density and quality of the mesh have a great influence on the convergence of the results obtained in CFD simulations. In order to determine the ideal mesh density in our simulation model, a parametric study is performed in an Ansys fluent environment. While creating the mesh diagram of the computational domain, the size of the mesh grid is selected as a parameter variable. The fish body oscillation frequency
f = 2 Hz, flow velocity
V = 0.2 m/s, and SST k-ω SST turbulence model are used in the simulation. Then, the drag force coefficient
CD criteria are adopted to determine the convergence of each simulated operating condition. The data obtained as a result of the parametric study are given in
Table 2 and
Figure 3.
As seen in
Figure 3, M4, M5, and M6 meshes with different numbers of elements did not cause a significant change in the
CD value. In addition, the orthogonal quality mesh measurements are highest in the M4 mesh structure, with 0.73. This mesh size will give better results in a shorter computational time. In light of this data, all subsequent simulations are performed using the M4 mesh structure.
The increase in buoyancy observed in the M2 → M3 transition is due to the more sensitive capture of velocity gradients, particularly thanks to the application of a five-layer, 1.2 incrementinflation mesh structure applied to the upper and lower surfaces of the fish body. The local densification of cells in the M3 mesh structure enabled the resolution of sharper pressure gradients, particularly in the separation zone on the underside of the body, leading to an increase in
CL. In contrast, because drag is a more global force acting on the entire body,
CD is less affected by the mesh change. As reported in the literature, since buoyancy is more sensitive to local pressure differences, this limited improvement in mesh quality has a noticeable effect on
CL. Still, it does not result in a significant change in
CD.
Figure 4 shows the convergence results of the time step size.
In the time step convergence study, the Fx results obtained from the tail motion simulation with a flow velocity of 0.1 m/s and a frequency of 0.5 Hz are compared using four different time steps: Δt/T ∈ [1/40, 1/100, 1/200, 1/400]. Here, it is observed that Δt/T = 1/200 and 1/400 yielded temporally convergent results, with an error of 2.99%, while the error rate between 1/400 and 1/100 was approximately 4.06%. While it is true that theoretically choosing a small time step would be beneficial for increasing the solution accuracy, a very small time step would increase the amount of computation and reduce the solution efficiency. As a result, the Δt = T/100 time step is used in the simulations of our model, since a better solution accuracy and efficiency can be achieved.
2.3. Validation of Numerical Method
In
Figure 5, the drag force coefficient is presented for approximately one period at flow speeds of
U = 0.2 m/s and
U = 0.5 m/s. The flapping frequency is determined as 1.5 Hz for both results. Although the numerical and theoretical results are quite consistent, a deviation of 5% occurs for
U = 0.2 m/s and 2% for
U = 0.5 m/s. The acceptable error rate observed in theoretical and simulation results shows the validity of the numerical model methodology created for fish.
2.4. Calculation of Hydrodynamic Forces and Efficiency
In undulatory swimming, the propulsive body wave traverses the fish body from head to tail fin at a speed greater than the overall swimming speed [
32]. The fish model with a soft body applied in this study makes the oscillation that provides the swimming movement with its entire body. The fish body’s oscillation movements must cope with the strength of the fluid surrounding it. The robot’s forward motion is obtained as the result of the drag in the
x-direction and the thrust force in the opposite direction. The thrust force coefficient, which is a dimensionless parameter obtained as a measure of the thrust force acting on the robotic fish as it moves in the fluid, is given in Equation (5).
where
Fx(
t) is the thrust force,
ρ is the density (998.2 kg/m
3), and
U is the flow velocity. The average thrust force coefficient in a period is expressed as
CT as follows:
We also can describe the drag coefficient as
CD = −
CT. The input power transferred to create the oscillating motion in the fish body is used to cope with the hydrodynamic forces on the foil (
F). The input power (
Pin) can be expressed as below with Equation (7).
where
h(
x,
t) is the transverse displacement of the body mentioned above. The dimensionless power coefficient (
CP) can also be given as follows:
And the useful power (
Pu) is stated as below:
The propulsive efficiency parameter is expressed as follows:
This parameter is examined to evaluate the relationship between the ability of the fish to produce thrust and the energy spent to push the water [
33].
2.5. Prediction Model
The main objective of the prediction model is to investigate the efficiency of an ensemble architecture combining deep learning-based models.
Figure 6 shows the network structure of the proposed prediction approach. From the CFD analysis, the obtained hydrodynamics data are transferred to the deep learning model. In this model, the CNN-GRU structure is designed. The designed network consists of twelve layers with two convolution layers with batch-normalization (BN) and Re-LU, one max-pooling, one flatten, two GRU layers with a drop-out, and one dense layer, respectively. While the CNN structure extracts the distinctive features, the GRU structure effectively predicts the thrust force [
34,
35]. In the convolutional network, the connections are given as
Conv(3, 1, 64)–
BN–
Re-LU(0.01)-
Conv(3, 1, 32)–
BN–
Re-LU(0.01)-
Max-
Pool(2). In this design, the coarse grid search is applied to explore filter sizes with (16, 32, 64, 128), GRU unit numbers with (16, 32, 64), and dropout rates with (0.1, 0.25, 0.3, and 0.5), randomly. The optimal configuration is found to consist of 64 filters in the first convolution layer, 32 filters in the second layer, (64, 32) LSTM and GRU units, and a dropout rate of 0.25, yielding a strong balance between accuracy and generalization. After these operations, the extracted features are fed to the GRU structure. According to the above expressions, the
Conv(·) layers compute the output of the neurons with filters to generate the feature maps. The convolution operation can be given by the following:
where
is the activation function and
is the adding bias vector of the
jth neuron. The
and
represent the input of the convolution and weight matrix.
The GRU is a recurrent neural network that is composed of update (
) and reset (
) gates. For an
input, the general Bi-GRU structure used in this study is given in
Figure 7. While the
determines the activity with the previous cell, the
is calculated as follows:
here,
is the cell state,
is the weight vector of the associated gate,
is the sigmoid function, and o is the Hadamard product, respectively. In the experiments, CNN, LSTM, GRU, and variations of these models, such as CNN-LSTM and CNN-GRU, are analyzed.
2.6. Prediction of the Thrust Force
In these experiments, the dataset collected from the CFD analysis consists of 80.000 samples in total. The dataset contains the flapping frequency, flow velocity, thrust force, and lateral force, respectively. While the flapping frequency, flow velocity, and lateral force are selected as the input variables, the thrust force is the output. In addition, the two delayed thrust forces are also added to the input data to increase the model performance. For the prediction process, all data for the 0.3 m/s flow velocity experiments are separated as test data, and 80% of the remaining data are selected for training, with 20% for validation. In addition, the training and validation data are shuffled to overcome the negative effect of overfitting. Therefore, a robust decision-making performance can be obtained. Before training, all input and output variables are normalized using the min–max scaling method. This normalization ensures that all features are mapped into a stable numerical range, allowing the CNN and GRU models to operate effectively. Before performance evaluation, thrust force is also denormalized using the corresponding min–max parameters to obtain physically meaningful outputs. In the training phase, the mini-batch size is given as 128. The initial learning rate is selected as 0.01, and it is reduced with a drop factor of 0.5 at every 10 epochs. The maximum epoch is also set to 50. For all network models, the whole cost function is optimized with the adaptive moment estimation (Adam) algorithm during the backpropagation.
2.7. Evaluation Metrics
In order to evaluate the quantitative performance of the deep learning models, four performance metrics are statistically calculated: the coefficient of determination (
R2), root mean square error (
RMSE), mean absolute error (
MAE), and symmetric mean absolute percentage error (
SMAPE).
R2 defines the proportion at which the change in the dependent variable is predicted from the independent variables.
RMSE is the standard deviation between the actual and predicted data. While
MAE gives the average magnitude of the error,
SMAPE measures the accuracy based on the relative errors. These metrics can be expressed with the below equations:
where
and
are the actual and predicted values,
is the sample size, and
is the mean of the actual value.
4. Conclusions
In this study, various factors affecting the underwater performance of the fish model are investigated. For instance, the relationship between the Reynolds number and flapping frequency is significant. Flow velocities are studied between 0.1 m/s and 0.5 m/s with increasing speeds in a certain order, and flapping frequencies are changed for each speed to observe the effects on the thrust force, power coefficient, and propeller efficiency. The obtained data show that, as the flow velocity increases, the thrust force also increases because more fluid is moved. This also leads to a change in momentum. However, at low velocities, deteriorations in thrust force are observed due to the increase in horizontal forces; however, these deteriorations could be prevented by increasing the flapping frequency.
The Strouhal number (St) plays a significant role as a key parameter explaining the performance of fish movements in water. In the study, Strouhal numbers obtained with different flow velocities revealed that the Reynolds number increases as the flow velocity increases, and this increase changes the flow structure. This interaction has been a key factor in comprehending the relationship between the thrust coefficient (CT) and the power coefficient (CP). The study confirms that increasing the frequency increases the thrust force and, as a result, the power coefficient also increases. The effect of the flow rate is seen more clearly, especially at low thrust forces, in which case it is understood that the increase in the flow rate decreases the power coefficient. The propulsive efficiency (η) is defined as the ratio of the thrust force to the input power, and, in this study, it is observed that the efficiency increased in direct proportion to the thrust force. The increase in the flow velocity did not result in a major change in efficiency. This shows that the thrust force reaching a certain level does not affect the efficiency more. In addition, the vortex structures created by the periodic oscillation movement of the fish’s body are also examined. While the vortices formed owing to high-frequency flapping become more chaotic and dense, a more regular vortex pattern is observed at low frequencies. As the flow rate increased, these vortices were arranged more straightly, parallel to the movement direction of the fish. These results provide important data to understand the structure of the flow around the fish and the development of vortices.
The dataset obtained from the CFD analysis consists of 80,000 samples, including flapping frequency, flow velocity, thrust force, and lateral force. Flapping frequency, flow velocity, and lateral force are used as input variables, while the thrust force is the output. Additionally, two delayed thrust forces are added to improve the model performance. The data from experiments conducted with a 0.3 m/s flow velocity are used as test data, with 80% of the remaining data used for training and 20% for validation. To prevent overfitting, the training and validation data are shuffled. The performance of the deep learning models is evaluated using four metrics: R2, RMSE, MAE, and SMAPE. The CNN-GRU model achieved the highest R2 value of 0.9889, outperforming CNN (0.9810), LSTM (0.9725), GRU (0.9858), and CNN-LSTM (0.9884). CNN-GRU also produced the best RMSE (0.0228) and MAE (0.0103) values. While the lowest SMAPE value (0.2505) was obtained by the GRU model, the LSTM model had the highest SMAPE value (0.5241). Overall, combining CNN and GRU models into a hybrid structure improved the prediction performance.
The analysis of the experiments at different frequencies (0.5 Hz, 1 Hz, 1.5 Hz, and 2 Hz) showed that the CNN model performed best at 0.5 Hz, while CNN-GRU performed better at 1 Hz and has a superior prediction accuracy at higher frequencies (1.5 Hz and 2 Hz). The CNN-GRU model demonstrated a superior performance compared to the other models, with improvements in R2 values ranging from 0.05% to 1.69%. The largest improvement in RMSE and MAE is observed in the LSTM model (36.49%). These results confirm that the CNN-GRU model provides more accurate predictions than the other models.
In conclusion, this study provides a deeper understanding of the complex interactions between the flapping frequency, flow velocity, Reynolds number, and Strouhal number, thereby optimizing the performance of underwater biomimicry-based robots. The correct analysis of these interactions can serve as a crucial guide in the design of fish-like underwater propulsion systems. This study employs a two-dimensional CFD model, which is widely used for the preliminary analysis of undulatory locomotion but inherently neglects spanwise vortex interactions and tip-vortex formation. These 3D flow structures can significantly influence thrust generation, lateral forces, and vortex stability, especially at higher Reynolds numbers or for fish with a pronounced body depth. Future work will therefore focus on extending the present framework to a fully 3D CFD domain, which is expected to provide more realistic vortex structures, an improved prediction of propulsive efficiency, and more accurate coupling with deep learning models. Although 2D analysis offers a reduced computational cost and sufficiently captures the primary oscillatory thrust mechanisms, a 3D analysis will allow a more comprehensive representation of the physical behavior of biomimetic fish swimming. In the future study, the force effects of the soft robotic tail at different flapping frequencies will also be investigated in a real pool environment. The study will be presented in comparison with the results obtained from both 2D and 3D CFD analysis. Furthermore, a future objective is to develop an underwater prediction methodology by classifying the vortex signatures produced by fish exhibiting different body structures and tail shapes.