Hyperparameter Optimization for the LSTM Method of AUV Model Identification Based on Q-Learning

Dianrui Wang, Junhe Wan, Yue Shen, Ping Qin, Bo HeJournal of Marine Science and Engineering 2022

TL;DR

This paper tackles the challenge of accurately modeling complex Autonomous Underwater Vehicles (AUVs) by combining Long Short-Term Memory (LSTM) networks for system identification with an improved Q-learning algorithm for hyperparameter optimization. The proposed method effectively tunes LSTM hyperparameters to achieve high-precision AUV model identification, outperforming traditional methods.

What Problem Does This Paper Address?

Autonomous Underwater Vehicles (AUVs) are crucial for ocean exploration and various marine tasks. However, their complex, uncertain, and highly non-linear dynamics make accurate mathematical modeling a significant challenge. Traditional modeling methods often struggle to capture these complexities. While neural networks, particularly LSTMs, show promise for identifying these dynamic models from data, their performance is highly sensitive to hyperparameter choices. Manually tuning these hyperparameters is time-consuming and often suboptimal. This paper addresses the need for an automated and effective method to optimize LSTM hyperparameters for accurate AUV model identification.

Methods

The core of this research lies in a two-pronged approach:

  • LSTM for AUV Model Identification: The Long Short-Term Memory (LSTM) neural network is employed to learn the dynamic model of the AUV. LSTMs are well-suited for time-series data, making them ideal for capturing the sequential nature of AUV motion. The LSTM learns the mapping between control inputs and the resulting changes in the AUV's state (position, velocity, attitude, etc.).
  • Improved Q-Learning for Hyperparameter Optimization: To overcome the challenge of suboptimal LSTM performance due to poorly chosen hyperparameters, an improved Q-learning reinforcement learning algorithm is utilized.
  • Q-Learning Basics: Q-learning is a reinforcement learning algorithm that learns an optimal policy by estimating the value of taking a specific action in a given state.
  • Improvements: The authors introduce two key improvements to standard Q-learning:
  • Action Exploration Efficiency: To avoid inefficient exploration of poor hyperparameter combinations, the algorithm selects the optimal initial state from the Q-table at the beginning of each learning round.
  • Initial State Selection: In addition to random selection in the first round, subsequent rounds start with the best hyperparameter configuration found so far, further guiding the search.
  • Hyperparameter Search Space: The Q-learning agent optimizes hyperparameters such as the number of neurons in hidden layers, batch size, and time step.

Datasets

The study utilizes two types of datasets:

  • Simulated Data: Experiments were conducted using simulated data generated from the "Sailfish" 210 AUV model described in the paper. This dataset consisted of 4990 input-output pairs, with 4000 used for training and 990 for validation.
  • Real Data: Actual experimental data was collected from the "Sailfish" 210 AUV platform. This dataset also comprised 4990 input-output pairs, with 4000 for training and 990 for testing. The real-world data inherently includes sensor noise, making the identification task more challenging.

Key Insights and Ideas

  • LSTM's Suitability for AUV Dynamics: The research confirms that LSTMs are effective in modeling the complex, time-series nature of AUV dynamics, capturing the causal relationships within the historical data.
  • Reinforcement Learning as a Hyperparameter Tuner: Framing hyperparameter optimization as a reinforcement learning problem, specifically using Q-learning, provides a systematic and automated way to find optimal configurations.
  • The Power of "Smart" Exploration: The proposed improvements to Q-learning, particularly the selection of the best initial state, significantly enhance the efficiency of the hyperparameter search by avoiding redundant exploration of suboptimal settings. This is crucial when computational resources are limited.
  • The Interplay of Model and Optimizer: The paper demonstrates a synergistic relationship: a well-identified AUV model is essential for control, and an optimized hyperparameter selection process is key to achieving that accurate model.

Key Results

  • Simulation Results:
    • The unoptimized LSTM model showed a loss convergence, indicating its ability to fit the AUV system.
  • After optimization using the improved Q-learning method over 100 episodes, the Mean Absolute Error (MAE), Mean Squared Error (MSE), and Root Mean Squared Error (RMSE) on the validation set were significantly reduced. For instance, the MAE decreased from 0.001784 to 0.001277, and MSE from 7.167763 × 10⁻⁶ to 4.396948 × 10⁻⁶.
  • Comparison with the DR algorithm showed that the optimized LSTM method achieved superior performance, with lower MAE, MSE, and RMSE.
  • Real Data Results:
    • The training loss curve for the real data experiments (200 episodes) also showed good convergence.
  • The optimized LSTM model achieved high-precision recognition of AUVs, with MAE, MSE, and RMSE values significantly lower than the unoptimized method and the DR method. Specifically, the proposed method provided 64.90% higher MAE, 64.20% higher MSE, and 37.76% higher RMSE compared to the DR method.
  • Visualizations of the identification results (position, velocity, angular velocity, and attitude) showed a much better agreement between the optimized LSTM model's output and the actual system's output compared to the unoptimized and DR methods.

Limitations and Future Work

  • Limitations:
    • The hyperparameter optimization method primarily focuses on recognition accuracy and could potentially be improved in terms of convergence speed.
  • The performance of the LSTM and the improved Q-learning method used in this paper still has certain limitations.
  • Future Work:
    • Improve the convergence speed of the hyperparameter optimization process.
  • Further enhance the LSTM and the improved Q-learning methods.
  • Explore applications of the proposed method for fault diagnosis of AUVs and for designing model-based controllers.

Summary updated

Abstract

An accurate mathematical model is a basis for controlling and estimating the state of an Autonomous underwater vehicle (AUV) system, so how to improve its accuracy is a fundamental problem in the field of automatic control. However, AUV systems are complex, uncertain, and highly non-linear, and it is not easy to obtain through traditional modeling methods. We fit an accurate dynamic AUV model in this study using the long short-term memory (LSTM) neural network approach. As hyper-parameter values have a significant impact on LSTM performance, it is important to select the optimal combination of hyper-parameters. The present research uses the improved Q-learning reinforcement learning algorithm to achieve this aim by improving its recognition accuracy on the verification dataset. To improve the efficiency of action exploration, we improve the Q-learning algorithm and choose the optimal initial state according to the Q table in each round of learning. It can effectively avoid the ineffective exploration of the reinforcement learning agent between the poor-performing hyperparameter combinations. Finally, the experiments based on simulated or actual trial data demonstrate that the proposed model identification method can effectively predict kinematic motion data, and more importantly, the modified Q-Learning approach can optimize the network hyperparameters in the LSTM.
BibTeX
@article{wang2022hyperparameter,
  author = {Dianrui Wang and Junhe Wan and Yue Shen and Ping Qin and Bo He},
  title = {{Hyperparameter Optimization for the LSTM Method of AUV Model Identification Based on Q-Learning}},
  journal = {Journal of Marine Science and Engineering},
  year = {2022},
  doi = {10.3390/jmse10081002},
}
Figure