A Water Quality Prediction Method Based on the Deep LSTM Network Considering Correlation in Smart Mariculture

Zhuhua Hu, Yiran Zhang, Yaochi Zhao, Mingshan Xie, Jiezhuo Zhong, Zhigang Tu, Juntao LiuSensors 2019

TL;DR

This paper introduces a novel water quality prediction method for smart mariculture using a deep LSTM network that incorporates correlations between various water quality parameters. The approach significantly improves prediction accuracy and reduces computational time compared to traditional methods, offering a more robust solution for maintaining optimal aquaculture environments.

What Problem Does This Paper Address?

Smart mariculture aims for more efficient, accurate, and ecological fish farming. A critical challenge in this domain is accurately predicting water quality parameters, which are inherently nonlinear, dynamic, and complex due to the open-environment nature of mariculture. Traditional forecasting methods often suffer from low accuracy, poor generalization, and high computational costs, making them unsuitable for timely intervention. This paper addresses the need for a more precise and efficient method to predict key water quality indicators like pH and temperature, enabling proactive management to prevent fish stress, disease outbreaks, and reduced production efficiency.

Methods

The proposed method involves a multi-stage approach:

  1. Data Preprocessing: Raw sensor data is first cleaned and prepared. This includes:
  2. Data Filling and Correction: Linear interpolation is used to fill missing data points, and a smoothing method (using the mean of adjacent data points) corrects erroneous readings.
  3. Noise Reduction: A moving average filter is applied to smooth out noise, particularly from water fluctuations.
  4. Correlation Analysis: Pearson's correlation coefficient is employed to quantify the relationships between pH, water temperature, and other water quality parameters (conductivity, salinity, chlorophyll, turbidity, dissolved oxygen). This step identifies influential factors that can be used as inputs for the prediction model.
  5. Deep LSTM Network for Prediction: A Long Short-Term Memory (LSTM) deep neural network is trained using the preprocessed data and the identified correlation information. LSTMs are chosen for their ability to capture long-term dependencies in sequential data, which is crucial for time-series water quality prediction. The model is trained to predict pH and water temperature.

Datasets

The experimental data was collected from a mariculture base in Xincun Town, Lingshui County, Hainan Province, China.

  • Short-term prediction: 610 groups of data (approximately 51 hours) were used for model training, and an additional 100 sets (approximately 8.3 hours) were used for verification.
  • Long-term prediction: 30,000 groups of data (approximately 21 days) were collected for training, and 5,000 sets (83 hours) were used for comparison. The data included parameters such as temperature, conductivity, chlorophyll, salinity, turbidity, pH, and dissolved oxygen.

Key Insights and Ideas

  • Correlation is Key: Explicitly incorporating the correlation between different water quality parameters significantly enhances prediction accuracy. This moves beyond single-parameter forecasting to a more holistic system view.
  • LSTM's Temporal Power: The LSTM architecture proves highly effective in capturing the complex temporal dynamics of water quality, outperforming traditional Recurrent Neural Networks (RNNs).
  • Data Preprocessing Matters: Robust data cleaning and preparation (interpolation, smoothing, denoising) are foundational for building accurate predictive models, especially in noisy sensor environments.
  • Smart Mariculture Needs Proactive Prediction: Accurate and timely water quality predictions are not just an academic exercise but a practical necessity for preventing aquaculture losses and ensuring sustainable practices.

Key Results

The proposed LSTM-based method demonstrated strong performance in both short-term and long-term predictions:

  • Short-term Prediction:
    • Accuracy for pH: 98.56%
    • Accuracy for Water Temperature: 98.97%
    • Prediction time: 0.273 s (pH) and 0.257 s (Water Temperature) for 10,000 training iterations.
  • Long-term Prediction:
    • Accuracy for pH: 95.76%
    • Accuracy for Water Temperature: 96.88%

The LSTM model consistently outperformed the RNN-based model in terms of prediction accuracy and computational efficiency (lower RMSE and faster training times).

Limitations and Future Work

The authors acknowledge several areas for future improvement:

  • Computational Cost: The current scheme requires significant computational resources for data set processing. Future work will focus on optimizing the deep learning network structure to reduce computational complexity without sacrificing accuracy.
  • Robustness and Practicality: To enhance the model's robustness and practicality, future research will incorporate more relevant prior knowledge, such as precipitation and climate factors, into the prediction model.
  • Advanced Noise Reduction: The paper suggests exploring more effective noise reduction methods based on SVD theory to further improve data preprocessing.
  • Post-processing of Spikes: The authors plan to develop reasonable and safe post-processing techniques to smooth out meaningless spikes observed in the prediction curves, making them more interpretable for farmers.

Summary updated

BibTeX
@inproceedings{hu2019water,
  author = {Zhuhua Hu and Yiran Zhang and Yaochi Zhao and Mingshan Xie and Jiezhuo Zhong and Zhigang Tu and Juntao Liu},
  title = {{A Water Quality Prediction Method Based on the Deep LSTM Network Considering Correlation in Smart Mariculture}},
  booktitle = {Sensors},
  year = {2019},
  doi = {10.3390/s19061420},
}
Figure