The aquatic environment in aquaculture serves as the foundation for the survival and growth of aquatic animals, while a high-quality water environment is a necessary condition for promoting efficient and healthy aquaculture development. To effectively guide early warnings and the regulation of water quality in aquaculture, this study proposes a predictive model based on a dual-channel and dual-attention mechanism, namely, the DAM-ResNet-LSTM model. This model encompasses two parallel feature extraction channels: a residual network (ResNet) and long short-term memory (LSTM), with dual-attention mechanisms integrated into each channel to enhance the model’s feature representation capabilities. Then, the proposed model is trained, validated, and tested using water quality and meteorological parameter data collected by an offshore farm environmental monitoring system. The results demonstrate that the proposed dual-channel structure and dual-attention mechanism can significantly improve the predictive performance of the model. The prediction accuracy for pH, dissolved oxygen (DO), and salinity (SAL) (with Nash coefficients of 0.9361, 0.9396, and 0.9342, respectively) is higher than that for chemical oxygen demand (COD), ammonia nitrogen (NH3-N), nitrite (NO2−), and active phosphate (AP) (with Nash coefficients of 0.8578, 0.8542, 0.8372, and 0.8294, respectively). Compared to the single-channel model DA-ResNet (ResNet integrated with the proposed dual-attention mechanism), the Nash coefficients for predicting pH, DO, SAL, COD, NH3-N, NO2−, and AP increase by 12.76%, 12.58%, 11.68%, 18.350%, 19.32%, 16%, and 14.99%, respectively. Compared to the single-channel DA-LSTM model (LSTM integrated with the proposed dual-attention mechanism), the corresponding increases in Nash coefficients are 9.15%, 9.93%, 9.11%, 10.91%, 10.11%, 10.39%, and 10.2%, respectively. Compared to the ResNet-LSTM (ResNet and LSTM in parallel) model without the attention mechanism, the improvements in Nash coefficients are 1.91%, 2.4%, 0.74%, 3.41%, 2.71%, 3.55%, and 4.13%, respectively. The predictive performance of the model fulfills the practical requirements for accurate forecasting of water quality in nearshore aquaculture.
Read full abstract