UAV-Based Water Depth Inversion Using Color-Space Conversion

In recent years, the rapid expansion of coastal aquaculture ponds has raised significant environmental concerns, particularly regarding water quality degradation and ecological impacts. Accurate monitoring of water depth in these ponds is crucial for assessing breeding capacity, optimizing management practices, and estimating pollutant fluxes. Traditional depth measurement methods, such as sonar or manual sampling, are often costly, inefficient, and limited in spatial coverage. Optical remote sensing, especially using UAV drones, offers a promising alternative due to its high spatial and temporal resolution, enabling efficient large-scale monitoring. However, in high-turbidity aquaculture ponds, complex optical properties and substrate reflections hinder the accuracy of conventional depth inversion methods, which rely heavily on spectral features. To address this, we propose an optimized approach that integrates multispectral imagery from UAV drones with color-space conversion features. This method leverages the complementary information from different color spaces to enhance feature representation and improve model performance. In this study, we systematically evaluate the effectiveness of combining multispectral data with HSV, Lab, and YUV color-space features using various machine learning algorithms. Our findings demonstrate that this fusion strategy significantly boosts inversion accuracy, providing a robust technical foundation for精细化 aquaculture monitoring and environmental management.

The study area focuses on aquaculture ponds in a semi-enclosed bay, representative of typical coastal aquaculture environments. These ponds are characterized by regular geometric shapes and varying water depths, often influenced by tidal exchanges and anthropogenic activities. The use of UAV drones for data acquisition allows for high-resolution imaging, capturing detailed spectral information across multiple bands. We employed a DJI Phantom 4 multispectral UAV drone equipped with an integrated camera that captures data in five bands: blue (450 nm), green (560 nm), red (650 nm), red-edge (730 nm), and near-infrared (840 nm). Data collection was synchronized with in-situ depth measurements using a pole method, resulting in 89 valid sampling points. The UAV drone flights were conducted at a height of 100 meters under clear weather conditions, covering approximately 0.6 km². The multispectral images were pre-processed using Pix4Dmapper software for radiometric correction, calibration, and georeferencing to ensure data quality. This setup underscores the advantage of UAV drones in providing timely and precise remote sensing data for shallow water bodies.

The core of our methodology involves transforming the original RGB imagery from UAV drones into multiple color spaces to extract additional features that enhance depth inversion. Color-space conversion models, such as RGB to HSV, Lab, and YUV, decouple color information into components like hue, saturation, and brightness, which can better capture variations in water optical properties. For instance, the HSV color space separates hue (H) from saturation (S) and value (V), potentially reducing the impact of suspended sediments and illumination changes. The conversion formulas are as follows. For RGB to HSV transformation, we compute the hue H, saturation S, and value V using these equations: $$ \theta = \cos^{-1} \left( \frac{0.5[(R – G) + (R – B)]}{\sqrt{(R – G)^2 + (R – B)(G – B)}} \right) $$ $$ H = \begin{cases} \frac{\theta}{360^\circ} & \text{if } B \leq G \\ \frac{2\pi – \theta}{360^\circ} & \text{if } B > G \end{cases} $$ $$ S = 1 – \frac{\min(R, G, B)}{\max(R, G, B)} $$ $$ V = \max(R, G, B) $$ where R, G, B are the red, green, and blue channel intensities, typically ranging from 0 to 255. Similarly, for RGB to Lab conversion, the process involves intermediate steps to XYZ space: $$ \begin{bmatrix} X \\ Y \\ Z \end{bmatrix} = \begin{bmatrix} 0.490 & 0.310 & 0.200 \\ 0.177 & 0.812 & 0.011 \\ 0.000 & 0.010 & 0.990 \end{bmatrix} \begin{bmatrix} R \\ G \\ B \end{bmatrix} $$ $$ L = 116 f(Y) – 16 $$ $$ a = 500 \left[ f\left(\frac{X}{0.982}\right) – f(Y) \right] $$ $$ b = 200 \left[ f(Y) – f\left(\frac{Z}{1.183}\right) \right] $$ with $$ f(x) = \begin{cases} 1.187x + 0.138 & \text{if } x \leq 0.008856 \\ x^{1/3} & \text{if } x > 0.008856 \end{cases} $$ where L represents lightness (0 to 100), and a and b are color-opponent dimensions. For RGB to YUV conversion, we use: $$ Y = 0.299R + 0.587G + 0.114B $$ $$ U = -0.169R – 0.331G + 0.5B $$ $$ V = 0.5R – 0.419G – 0.081B $$ where Y is luminance, and U and V are chrominance components. These transformations yield nine feature channels (H, S, V, L, a, b, Y, U, V), which are then fused with the original five spectral bands from UAV drones at the pixel level to create an enhanced dataset.

To build the depth inversion models, we employed five machine learning algorithms: Support Vector Regression (SVR), Multi-Layer Perceptron Regression (MLPR), Random Forest (RF), eXtreme Gradient Boosting (XGBoost), and Gradient Boosting Decision Tree (GBDT). These models were chosen for their ability to handle nonlinear relationships and complex feature interactions. The dataset was split into 80% for training and 20% for testing, with 10-fold cross-validation and grid search used for hyperparameter tuning. The performance was evaluated using metrics such as coefficient of determination (R²), root mean square error (RMSE), and mean absolute error (MAE), defined as: $$ R^2 = 1 – \frac{\sum_{i=1}^{n} (y_i – \hat{y}_i)^2}{\sum_{i=1}^{n} (y_i – \bar{y})^2} $$ $$ RMSE = \sqrt{\frac{\sum_{i=1}^{n} (y_i – \hat{y}_i)^2}{n}} $$ $$ MAE = \frac{\sum_{i=1}^{n} |y_i – \hat{y}_i|}{n} $$ where y_i is the measured depth, ŷ_i is the predicted depth, ȳ is the mean of measured depths, and n is the number of samples. Additionally, we used SHAP (Shapley Additive Explanations) to interpret feature importance, quantifying the contribution of each input variable to the model predictions. This approach helps in selecting optimal feature combinations and understanding the underlying mechanisms, especially when dealing with data from UAV drones.

The results indicate that integrating color-space features with multispectral data from UAV drones substantially improves water depth inversion accuracy. Initially, using only the five spectral bands, the models showed moderate performance, with RF achieving the highest R² of 0.69. However, after incorporating color-space features, all models exhibited significant enhancements. The table below summarizes the accuracy metrics for different input combinations across the five algorithms, highlighting the superiority of HSV fusion.

Accuracy Comparison of Machine Learning Models with Different Feature Inputs
Model Input Features R² RMSE (m) MAE (m)
RF Original 5 Bands 0.69 0.07 0.06
5 Bands + HSV 0.79 0.04 0.03
5 Bands + Lab 0.78 0.05 0.04
XGBoost Original 5 Bands 0.62 0.06 0.05
5 Bands + HSV 0.82 0.05 0.03
5 Bands + YUV 0.76 0.06 0.04
GBDT Original 5 Bands 0.63 0.10 0.08
5 Bands + HSV 0.85 0.05 0.04
5 Bands + Lab 0.77 0.03 0.03
MLPR Original 5 Bands 0.55 0.07 0.05
5 Bands + HSV 0.72 0.06 0.04
SVR Original 5 Bands 0.36 0.09 0.08
5 Bands + HSV 0.78 0.05 0.04

From the table, it is evident that the HSV color space consistently delivers the best performance across most models, with GBDT achieving the highest R² of 0.85 when combined with HSV features. This improvement can be attributed to the effective decoupling of color and brightness information, which enhances the model’s ability to capture depth-related variations in turbid waters. Moreover, the ensemble learning methods (RF, XGBoost, GBDT) generally outperform SVR and MLPR, demonstrating their robustness in handling the complex feature sets derived from UAV drones data. The SHAP analysis further reveals the importance of specific features; for instance, in the HSV space, the hue (H) channel often shows the highest contribution, indicating its sensitivity to water optical components. This insight aligns with the theoretical expectation that hue is less affected by illumination changes, making it a valuable feature for depth inversion in dynamic environments monitored by UAV drones.

To optimize the models, we conducted hyperparameter tuning using grid search. The table below lists the optimal hyperparameters for each machine learning algorithm, which were critical in achieving the reported accuracies. These parameters were determined through iterative validation on the training set, ensuring that the models balance bias and variance effectively.

Optimal Hyperparameters for Machine Learning Models
Model Hyperparameter Optimal Value
RF n_estimators 77
max_depth 11
XGBoost max_depth 4
learning_rate 0.28
n_estimators 25
reg_alpha, reg_lambda 0.15, 0.9
GBDT n_estimators 99
learning_rate 0.09
subsample 0.5
SVR C 100
epsilon 0.05
MLPR hidden_layer_sizes (550, 350)
alpha 0.055
learning_rate_init 0.0025

The feature importance analysis using SHAP provides deeper insights into how different color-space components contribute to the models. For example, in the HSV space, the hue (H) channel consistently ranks high across RF, XGBoost, and GBDT models, with SHAP values indicating a strong positive influence on depth predictions. This can be mathematically represented by the SHAP value φ for a feature i, calculated as: $$ \phi_i = \sum_{S \subseteq N \setminus \{i\}} \frac{|S|! (|N| – |S| – 1)!}{|N|!} [f(S \cup \{i\}) – f(S)] $$ where N is the set of all features, S is a subset without feature i, and f is the model prediction. This formulation helps quantify the marginal contribution of each feature, confirming that color-space features add significant value beyond spectral bands. Specifically, for UAV drones data, the fusion of multiple color spaces like HSV, Lab, and YUV enriches the feature set, enabling models to better discriminate depth variations in challenging conditions such as high turbidity. The effectiveness of these features can be further illustrated by comparing the error metrics before and after fusion. For instance, the SVR model showed the most dramatic improvement, with R² increasing from 0.36 to 0.78, RMSE decreasing by 0.04 m, and MAE by 0.02 m. This underscores the potential of color-space conversion to mitigate limitations in traditional spectral-based approaches, especially when deploying UAV drones for rapid monitoring.

In terms of practical application, the optimized GBDT model was used to generate a water depth map for the study area. The inversion results, derived from UAV drones imagery, show depth ranges from 0.27 to 1.02 meters, accurately reflecting the variations observed in the field. This demonstrates the feasibility of using UAV drones equipped with multispectral sensors for high-resolution depth mapping in aquaculture ponds. The ability to repeatedly capture data with UAV drones allows for temporal monitoring, essential for tracking changes due to sedimentation or water management practices. Moreover, the integration of color-space features makes the method more resilient to environmental factors like sunlight glint or algal blooms, which are common in aquaculture settings. The success of this approach hinges on the synergistic use of advanced machine learning and remote sensing technologies, highlighting the growing role of UAV drones in environmental science.

However, there are limitations to consider. The study focused on a specific type of aquaculture pond with relatively stable optical conditions; thus, the model’s generalization to other water bodies, such as open coasts or estuaries, requires further validation. Additionally, while color-space features improve accuracy, they may increase computational complexity, which could be a constraint for real-time processing with UAV drones. Future work could explore other feature types, such as texture or morphological descriptors, and incorporate additional data sources like LiDAR from UAV drones to enhance robustness. The use of deep learning models, which can automatically extract hierarchical features from UAV drones imagery, also presents a promising direction. Nevertheless, the current findings affirm that the fusion of multispectral data and color-space conversion is a powerful strategy for water depth inversion, offering a cost-effective and scalable solution for aquaculture management.

In conclusion, this research demonstrates that integrating color-space features with multispectral imagery from UAV drones significantly enhances the accuracy of water depth inversion in high-turbidity aquaculture ponds. Among the color spaces tested, HSV proved most effective, likely due to its ability to separate hue from brightness and saturation. The GBDT model achieved the best performance, with an R² of 0.85, RMSE of 0.05 m, and MAE of 0.04 m, outperforming other machine learning algorithms. The SHAP analysis provided interpretable insights into feature contributions, reinforcing the value of color-space components. These results underscore the potential of UAV drones as versatile platforms for remote sensing, enabling detailed environmental monitoring. By advancing the methodological framework for depth retrieval, this study contributes to the sustainable management of aquaculture systems and supports broader applications in hydrological modeling and coastal zone management. The continuous evolution of UAV drones technology, coupled with innovative data fusion techniques, promises to further revolutionize our ability to monitor and protect aquatic ecosystems.

Scroll to Top