Skip to main content
Log in

Self-attention (SA) temporal convolutional network (SATCN)-long short-term memory neural network (SATCN-LSTM): an advanced python code for predicting groundwater level

  • Research Article
  • Published:
Environmental Science and Pollution Research Aims and scope Submit manuscript

Abstract

Groundwater level prediction is important for effective water management. Accurately predicting groundwater levels allows decision-makers to make informed decisions about water allocation, groundwater abstraction rates, and groundwater recharge strategies. This study presents a novel model, the self-attention (SA) temporal convolutional network (SATCN)-long short-term memory neural network (SATCN-LSTM), for groundwater level prediction. The SATCN-LSTM model combines the advantages of the SATCN and LSTM models to overcome the limitations of the LSTM model. By utilizing skip connections and self-attention mechanisms, the SATCN model addresses the vanishing gradient problem, identifies relevant data, and captures both short- and long-term dependencies in time series data. By demonstrating the improved performance of the SATCN-LSTM model in terms of mean absolute error and root mean square error (RMSE), and by comparing these results with those reported in previous papers, we have highlighted the advancements and contributions of the proposed model. By improving prediction accuracy, the SATCN-LSTM model enables decision-makers to make informed choices regarding water allocation, groundwater abstraction rates, and drought preparedness. The SATCN-LSTM model contributes to the sustainable and efficient use of groundwater resources by providing reliable information for decision-making processes. The SATCN-LSTM model combines the temporal convolutional network (TCN) architecture with LSTM. TCN is known for its ability to capture short-term dependencies in time series data, while LSTM is effective at capturing long-term dependencies. By integrating both architectures, the SATCN-LSTM model can capture the complex temporal relationships at different scales, leading to improved prediction accuracy. Meteorological data were used to predict GWL. The SATCN-LSTM model outperformed the other models. The SATCN-LSTM model had the lowest mean absolute error (MAE) of 0.09, followed by the self-attention (SA) temporal convolutional network (SATCN) model with an MAE of 0.12. The SALSTM model had an MAE of 0.16, while the TCN-LSTM, temporal convolutional network (TCN), and LSTM models had MAEs of 0.17, 0.22, and 0.23, respectively. The SATCN-LSTM model had the lowest root mean square error of 0.14, followed by SATCN with an RMSE of 0.15. The study results indicated that the SATCN-LSTM model was a robust tool for predicting groundwater level.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10

Similar content being viewed by others

Data availability

Data will be made available on request.

References

Download references

Author information

Authors and Affiliations

Authors

Contributions

Contribution: formal analysis: Elham Ghanbari Adivi Moahammad Ehteram, writing, review, and editing: Elham Ghanbari Adivi, Mohammad Ehteram.

Corresponding author

Correspondence to Elham Ghanbari-Adivi.

Ethics declarations

Consent to participate

All of authors agree to participate in the article.

Consent to publish

All of authors stated consent to publish.

Competing interests

There is no Competing Interests.

Additional information

Responsible Editor: Marcus Schulz

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Ehteram, M., Ghanbari-Adivi, E. Self-attention (SA) temporal convolutional network (SATCN)-long short-term memory neural network (SATCN-LSTM): an advanced python code for predicting groundwater level. Environ Sci Pollut Res 30, 92903–92921 (2023). https://doi.org/10.1007/s11356-023-28771-8

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11356-023-28771-8

Keywords

Navigation