Next Article in Journal
Water Saturation Prediction in the Middle Bakken Formation Using Machine Learning
Next Article in Special Issue
The Evaluation of Green Building’s Feasibility: Comparative Analysis across Different Geological Conditions
Previous Article in Journal
Prediction of Key Parameters in the Design of CO2 Miscible Injection via the Application of Machine Learning Algorithms
Previous Article in Special Issue
Influence of Ventilation Openings on the Energy Efficiency of Metal Frame Modular Constructions in Brazil Using BIM
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Multivariate Multi-Step Long Short-Term Memory Neural Network for Simultaneous Stream-Water Variable Prediction

by
Marzieh Khosravi
1,
Bushra Monowar Duti
2,
Munshi Md Shafwat Yazdan
3,*,
Shima Ghoochani
4,
Neda Nazemi
4 and
Hanieh Shabanian
5
1
Department of Civil and Environmental Engineering, Villanova University, Villanova, PA 19085, USA
2
Department of Civil Engineering, East West University, Dhaka 1212, Bangladesh
3
Department of Civil and Environmental Engineering, Idaho State University, Pocatello, ID 83209, USA
4
Department of Civil Engineering, The University of Memphis, Memphis, TN 38111, USA
5
Department of Computer Science, Northern Kentucky University, Highland Heights, KY 41099, USA
*
Author to whom correspondence should be addressed.
Eng 2023, 4(3), 1933-1950; https://doi.org/10.3390/eng4030109
Submission received: 3 May 2023 / Revised: 28 June 2023 / Accepted: 3 July 2023 / Published: 11 July 2023
(This article belongs to the Special Issue Green Engineering for Sustainable Development 2023)

Abstract

:
Implementing multivariate predictive analysis to ascertain stream-water (SW) parameters including dissolved oxygen, specific conductance, discharge, water level, temperature, pH, and turbidity is crucial in the field of water resource management. This is especially important during a time of rapid climate change, where weather patterns are constantly changing, making it difficult to forecast these SW variables accurately for different water-related problems. Various numerical models based on physics are utilized to forecast the variables associated with surface water (SW). These models rely on numerous hydrologic parameters and require extensive laboratory investigation and calibration to minimize uncertainty. However, with the emergence of data-driven analysis and prediction methods, deep-learning algorithms have demonstrated satisfactory performance in handling sequential data. In this study, a comprehensive Exploratory Data Analysis (EDA) and feature engineering were conducted to prepare the dataset, ensuring optimal performance of the predictive model. A neural network regression model known as Long Short-Term Memory (LSTM) was trained using several years of daily data, enabling the prediction of SW variables up to one week in advance (referred to as lead time) with satisfactory accuracy. The model’s performance was evaluated by comparing the predicted data with observed data, analyzing the error distribution, and utilizing error matrices. Improved performance was achieved by increasing the number of epochs and fine-tuning hyperparameters. By applying proper feature engineering and optimization, this model can be adapted to other locations to facilitate univariate predictive analysis and potentially support the real-time prediction of SW variables.

1. Introduction

Surface water has come to be the most crucial resource for societies as a consequence of the growing demand for agriculture, drinking water sources, industrial use, production of electricity, etc. as well as for the necessity to maintain river environmental flow for ecological diversity [1,2,3,4]. Increasing climate change has caused harm to both the quality and quantity of surface water, by reduction of freshwater flow due to abrupt changes in rainfall patterns and through increased temperature [5,6,7,8,9,10]. Stream water (SW) is regarded as the main source of drinking water supply [11]. Often, it is used for recreational purposes such as fishing, swimming, and boating [12,13,14]. Aquatic life is impacted significantly due to the seasonal changes in water level and discharge over time [15,16]. The demand for water supply, environmental flow, and flood level assessment can all be assessed from discharge and water level through data analysis and numerical modeling, which gives us the scope of water-quantity estimation [17,18,19]. Surface water quality on the other hand needs a few more variables to be examined, which are dissolved oxygen, pH, turbidity, toxic substances, and aquatic macroinvertebrate life [20,21,22]. According to the New Jersey Department of Environmental Protection (NJDEP) (2012) Integrated Water Quality Report, at least one designated use of the aforementioned parameters has below-standard conditions and is termed as Not Supporting (NS) in the Trenton watershed and its sub-catchments [23].
For this study, Dissolved Oxygen (DO), Specific Conductance (SC), temperature, pH, and turbidity are chosen as SW parameters. Temperature, the most important ecological factor, is directly correlated with water’s chemical, physical, and biological characteristics [24,25,26,27]. It is also the most significant parameter to be affected by climate change [28]. DO is essential for aquatic life to survive, with differing oxygen concentration tolerances among species and life stages. pH and SC have a significant effect on the other metrics of overall water quality, both constructively and adversely. According to previous studies, the positive correlation between them and nitrate ions, ammonia, phosphorus, calcium, and magnesium, or even the detrimental influence of high pH on exotic species invasions, could induce disruptions in natural ecosystems [29,30,31]. Turbidity is the measure of the relative clarity of water caused by suspended or dissolved particles. High values can significantly reduce the aesthetic quality of streams and influence the natural migrations of species [32]. Assessment of turbidity improves the evaluation and indication of fecal contamination in water bodies such as Escherichia coli, the most common water infection [33,34].
Traditional physics-based numerical models (e.g., HEC-RAS, MIKE) involve spatial and temporal discretization for the entire computational space to compute SW variables, and these require high computational efforts [35,36]. To address the partial differential equation governing the behavior of shallow water in two dimensions, known as the Navier–Stokes equation, various numerical techniques such as Finite Volume, Finite Element, and Finite Difference methods are employed. The Navier–Stokes equation is a comprehensive representation of the conservation of mass, energy, and momentum for incompressible fluids. By utilizing these numerical methods, the equation can be solved, allowing for the analysis and understanding of the dynamics of shallow water systems [37]. The cost of spatial and temporal discretization increases exponentially with the increase in the required resolution and accuracy [38,39]. Input data for the physics-based river models consist of a significant amount of morphological, operational, and measured data. Data preprocessing for physics-based models can be daunting depending on the spatial and temporal tags of the target variables. Physics-based numerical models require measurable and empirical parameters to estimate the target variables [40,41]. Data-informed predictive models provide an efficient alternative approach to forecasting and monitoring both the SW flow and quality assessment of parameters. They offer reduced computational effort while simplifying complicated systems and predict the outcomes using observational data only and excluding complicated physics. Essentially, it is a data-driven model and the characteristics of the data, and their stochastic properties define how the model will behave [42,43,44,45]. Lately, Deep Learning (DL), a cutting-edge branch of artificial intelligence, has gained significant popularity as a favored approach for predictive modeling within the realm of water resource management [46]. However, the traditional deep neural network algorithms (e.g., Multilayer Perceptron (MLP)) are limited in their capacity to learn sequential input due to their inability to retain prior knowledge. As a result, it is limited in making accurate predictions for long-term time series, e.g., the temporal distribution of water-table depth is restricted [47,48]. To achieve accurate predictions of the target variables, the Multilayer Perceptron (MLP) algorithm requires intricate data preprocessing procedures [49,50,51]. Enhancing the MLP model’s ability to comprehend the data can be accomplished through data preprocessing techniques, although the involvement of subjective user intervention remains vital. For instance, this includes decisions such as determining the appropriate number of reconstructed components [52]. Numerous reconstructed components need to be calculated, so the preprocessing takes a significant amount of time [53].
Long Short-Term Memory (LSTM) is a unique neural network architecture designed to retain and process extensive sequential data by storing it within a hidden memory cell [54]. LSTM performs well in processing long-term sequential data, utilizing its sophisticated network structure specifically designed to carry the temporal linkage of the time-series data. Water quality and quantity data have not been widely investigated in previous work employing LSTM. The proposed LSTM model only needs a straightforward data preprocessing method, as opposed to the MLP model mentioned earlier [55]. The LSTM neural network exhibits a recurrent nature, with interconnected units forming a directed cycle that enables data to flow in both forward and backward directions within the network. Therefore, the model can preserve past information and use it for future prediction. The LSTM model has been employed extensively in various fields of deep learning, such as speech recognition, natural language processing, automatic image captioning, and machine translation, showcasing its advanced capabilities [47,56,57]. In the realm of water resource forecasting, there have been limited instances where researchers have utilized Recurrent Neural Networks (RNNs) or LSTMs to predict multivariate time-series data [58,59,60]. The objective of this research is to untangle the pattern of the temporal distribution and the relation among the selected SW (surface water) variables for this study; as well as perform predictive analysis using observed data. To accomplish the goal, a comprehensive Exploratory Data Analysis (EDA) is conducted to investigate the temporal dynamics of the SW variables, and LSTM prediction is performed to predict the future values based on past records. The following sections of the paper demonstrate the study location, data source and collection, EDA, LSTM prediction, performance evaluation, and possible future directions.
This study introduces a novel approach using deep-learning algorithms, specifically the LSTM neural network, to predict stream-water (SW) parameters. By leveraging data-informed analysis and predictive modeling, the research demonstrates the satisfactory performance of LSTM in forecasting SW variables up to one week ahead. Traditional physics-based models are limited by calibration efforts and computational complexity, while the data-informed approach simplifies the prediction process by relying solely on observed data. The LSTM model’s ability to process sequential data makes it well-suited for capturing temporal dynamics in SW variables. The study focuses on essential SW parameters such as dissolved oxygen, specific conductance, discharge, water level, temperature, pH, and turbidity, which are crucial for water quality preservation. By successfully applying LSTM models, this research provides an alternative to traditional models, enabling the real-time monitoring and prediction of SW variables. Overall, this study’s novelty lies in integrating deep-learning algorithms, comprehensive data analysis, and feature engineering to accurately predict SW variables, opening new possibilities for data-driven approaches in water resource management.

2. Data and Methods

2.1. Study Area

The monitoring station used in this study is located along the Central Delaware River, in Trenton City, Mercer County, NJ (New Jersey), USA [61]. It is positioned 450 feet upstream of Trenton’s Calhoun Street Bridge, 0.5 miles upstream of Assunpink Creek, and 0.9 miles north of Morrisville, PA. The Hydrologic Unit number for this station is 02040105 based on the USGS (United States Geological Survey) water resources database and it is located at 40°13′18″ N, 74°46′41″ W coordinates referenced to the North American Datum of 1983 with the 6780 mi2 of drainage area (Figure 1).
The entire workflow of the EDA and LSTM prediction tasks is divided into three distinct stages. In the first step, data are collected from the USGS web portal, and an exploratory analysis of the SW variables is conducted. To transform the data for training/testing the LSTM algorithm feature engineering is conducted. Variables used in the analysis are listed in Table 1. Activities in the first step are categorized as the transformer. After investigating the dataset and performing data transformation on the variables, the LSTM neural network is trained using the data prepared in the first step to perform predictive analysis. LSTM neural networks regression model is assessed using several error matrices. These activities are categorized as estimators. The LSTM algorithm is optimized by altering the hyperparameters to reduce the errors in the prediction and achieve satisfactory performance. In the third step, namely the evaluator, the model is deployed to predict the recession rate for a new set of target variables. Model performance is further improved through the iterative incorporation and validation of the input variables.
The LSTM workflow of predicting the SW performance indicator is illustrated in Figure 2. The first step of the workflow is data collection—time-series data of the SW variables are obtained from the USGS National Water Information System: Web Interface [61]. The range of the time-series data for all the variables was different due to the various recorded duration. Mean values of the SW variables are used in this study. The range of the data used in this research is from 25 February 2006 to 8 March 2022 with observed data of approximately 21 years. Historically, from the years 1898 to 1906, peak discharges were measured at Lambertville, NJ, 14.3 miles upstream from the Calhoun Street bridge. The maximum discharge was recorded on 20 August 1955 with the amount of 329,000 ft3/s and the minimum discharge was 1180 ft3/s, on 31 October 1963. Extreme flooding occurred on 11 October 1903 when the water level reached an elevation of 28.5 ft above the NGVD (National Geodetic Vertical Datum) of 1929, which resulted in a discharge amount of 295,000 ft3/s [61].
The second step of the workflow is exploratory data analysis, which is covered in Section 2.2. The third step is data transformation (done by feature engineering—discussed in Section 2.3). The fourth step is model training with test data. Finally, the fifth, sixth, and seventh steps of the prediction algorithm are model evaluation, model deployment, and model improvement, respectively.

2.2. Multivariate Exploratory Data Analysis (EDA)

In the second activity in Figure 2, a detailed EDA is performed to perceive the attributes and characteristics of the multivariate dataset. To ensure that the LSTM model runs correctly, doing EDA is an essential step in conducting preliminary analyses of the data. Through EDA, a variety of visual techniques and numerical indices are used to study the internal temporal distribution of all the SW variables. To better comprehend the hidden pattern of the distribution of the SW variables, EDA first investigates the variables. This procedure can be further broken down into several steps, including the use of descriptive statistics, the identification of outliers, extreme values, and the verification of normality. Descriptive statistics offer a valuable method for examining the distribution of SW variable values. By considering various statistical measures such as the number of data points, mean, standard deviation, percentiles, interquartile range, and range, one can effectively analyze and characterize the distribution of SW variable values. The complete multivariate descriptive statistics are displayed in Table 2. Histograms with density plots and Pearson’s Coefficient of Skewness (PCS) are used to visually display and measure the normality of the values, respectively. The Nearest Neighbors (NN) method was used to find missing data as a numerical imputation method to make the dataset consistent [62].
Turbidity and other water quality and quantity variables, such as discharge and water level, demonstrate a higher degree of non-normality when compared to other SW variables. A numerical measure of non-normality/skewness, PCS values of discharge, water level, and turbidity are also higher than the PCS values of other SW variables, which indicates relatively less normality.
Figure 3 illustrates the linear connection between two SW variables. Low values of the linear coefficients, delineating the overall non-linearity among several variables, are high. The study has found that the linear correlations can be either positive or negative in direction. A few variables are approximately linearly correlated e.g., discharge and water level, temperature and DO, SC, and pH.

2.3. Feature Engineering (FE)

FE is performed after a successful preliminary investigation of the dataset using EDA. The LSTM approach may not produce a satisfactory performance with minimal error without a successful FE. Additionally, without a thorough examination of the inputs, it is impossible to achieve adequate optimization using the iterative gradient descent. Therefore, an extensive feature engineering (FE) process is used to transform the variables into those that most appropriately embody the LSTM learning algorithm [63,64]. FE in this research involves data imputation, data transformation, data standardization, and preparing training, testing, and validation datasets. The process of imputation is used to replace missing data points in a dataset, therefore ensuring its overall consistency. Null values or missing observations were detected in every data series due to issues with the sensor malfunctioning. To address this, the missing values were imputed using the values of the NN (Nearest Neighbor). After a successful imputation, the distribution of the variable series is checked visually and numerically to confirm the normality. PCS (predictability, computability, stability) is used as an indicator of the normality of the variables. Due to the significantly left-skewed distribution and noticeable non-normality of discharge and water depth, neural network regression techniques without the required data transformation do not lead to satisfactory and optimized results [65,66,67]. Data transformation is performed to decrease the non-normality of discharge and water level. In this research, the performance of LSTMs can be improved using logarithmic transformation to stabilize the variance and lessen the impact of outliers in the feature distribution. In Figure 4, the distributions of the observed and transformed discharge and water level are shown. PCS values increase for all the transformed datasets compared to the original datasets, showing an increase in normality.
The gradient descent method, in which the step size is influenced by the feature value, is used by the LSTM recurrent neural network. This technique requires updating the steps for all feature values at the same pace to provide a smooth descent towards minima. To establish the LSTM model’s training and testing dataset, all the values are normalized utilizing Equation (1).
X n o r m = X X m i n X m a x X m i n  
X denotes the variable of interest and subscript norm, max, and min represent the normalized variable, maximum, and minimum value of the values of the variable. A training set and a testing set were generated from the entire normalized data series to evaluate and test the model.

2.4. Long Short-Term Memory (LSTM) Recurrent Neural

LSTM has gained significant popularity as an algorithm for handling time-series data in DL forecasting, specifically when variables rely on past information throughout the series [68,69]. The connections and relationships between variables over a considerable amount of time (long-term) can be captured by the LSTM model [70]. Due to erroneous backpropagation’s declining effect, recurrent backpropagation requires a lot of computational power to learn how to maintain long-term data [71]. As a result, RNNs encountered difficulties in accurately capturing long-term relationships, leading to the vanishing gradient problem [72]. LSTM stands out from conventional feedforward neural networks due to the fact it processes and retrieves long-term information because of its feedback connections.
In a typical LSTM algorithm, both long-term memory (c[t − 1]) and short-term memory (h[t − 1]) are processed using numerous gates to filter the data. The memory cell state is updated by forget and update gates for a constant gradient flow [73,74]. Three gates, i.e., input gate ig (pink), forgot gate fg (red), and output gate og (violet), and the cell state (green) control the flow of information by writing, erasing, keeping track of the past, and reading, respectively. (Figure 5). Therefore, because LSTM can store information over a range of intervals, it is an excellent choice for forecasting time-series data [75]. The forget gate in the LSTM incorporates and filters long-term data, discarding unnecessary information through a processing mechanism. The forget gate filters out redundant data using the sigmoid activation function where the range of the function is 0 and 1 for open and close status, respectively. An LSTM cell’s input gate filters and prioritizes incoming data to assess its relevance and importance. The input gate controls the flow of both short-term and long-term information within the cell, similarly to the forget gate, by removing extraneous information using binary activation functions. The value of the upcoming concealed state is also determined by the output gates and is based on the knowledge from preceding inputs.
In this study, a neural network with an LSTM hidden unit accompanied by a dense layer connecting the LSTM target output at the last time-step (t − 1) to a single output neuron with a non-linear activation function. The LSTM model underwent training using the Keras DL library in Python, utilizing the ReLU activation function and employing the coefficient of determination (R2) and Nash–Sutcliffe model efficiency coefficient (E) as loss functions. To predict the SW variable of a time-step in the future, e.g., daily/weekly, values of the variables at previous time steps are used. Hyperparameters are tuned to maximize the performance of the LSTM model through an iterative trial-and-error approach. This work utilized Keras, a Python library that enables the exploration of machine learning algorithms, to determine the optimal set of hyperparameters [76,77,78]. The impact of several hyperparameters of the LSTM algorithm—specifically, the number of neurons, the batch size, and the size of the epoch—were examined and investigated.

2.5. Model Evaluation and Improvement

In the model evaluation step in the fifth activity in Figure 2, the performance of the LSTM model is evaluated using the top three standard error matrices e.g., R 2 , and the E. Error matrices provide numeric values as the model performance indicator by comparing the observed and predicted values. The R 2 value is used to evaluate the LSTM model in showing the model performance improvement. The highest R 2 score corresponds to the best predictive accuracy. In addition, the R 2 and E are used to illustrate the model response due to the variation in the lead time. The better the model fits the data, the closer the R 2 value is to 1. The “E” metric, which is another performance measure in hydrological modeling, is frequently used to assess the model’s accuracy [79,80].
A positive E value suggests that the prediction value is a more accurate predictor of the actual recession rate than the average observed value. This is because the anticipated recession rate is more accurate than the average observed value. To ensure that training is effectively fit, it is vital to choose a model’s hyperparameters and carefully consider the controlling parameters that impact the learning rate of the model. By optimizing the size of the epoch, batch, and neurons in the stochastic process of the LSTM neural network, the LSTM algorithm’s performance in predicting SW parameters is further improved.

3. Results and Discussion

LSTM neural networks are employed to forecast the multivariate SW variables. Simultaneous prediction is conducted for various lead-time durations, including 6 h, 12 h, 1 day, 3 days, 1 week, 2 weeks, 3 weeks, and 1 month. The predicted values are then compared to the observed dataset to calculate the error matrices, and R 2 and E are used to estimate the error from the predicted SW variables. The incorporation of more epochs results in enhanced model performance. To show the relationship between model efficacy and lead times, error matrices are obtained through numerous models runs. The LSTM model’s hyperparameters are modified to effectively optimize model performance, taking into account a set of batch size, epoch size, and the total number of neurons.

3.1. Predicted and Observed SW Variables

Figure 6 shows a visual representation of the output from the LSTM algorithm with the observed values of the SW variables. The time-series plots both the observed and predicted values of the SW variables against the number of observations. Because the projected values of SW variables exhibit a distribution that reflects the observed data, the LSTM algorithm functions satisfactorily. The error metrics recorded for all variables and full time-series show LSTM performed well in the case of both training and test sets. In Figure 6, the orange portion of the plot illustrates the training portion of the dataset whereas the green portion shows the testing portion. Dashed lines in blue show the observed data.

3.2. Model Evaluation Matrices

The LSTM neural network’s performance is assessed using three error matrices, namely Root Mean Square Error (RMSE), R2, and E. The model’s performance is also evaluated and enhanced by increasing the number of epochs in the neural network. Figure 7 illustrates the change in the error matrix values as the number of epochs increases. The model’s performance shows significant improvement from the initial iterations in both the train and test scenarios. The increase in R2 values reaches a near-steady state after around 15–20 epochs, while there is a slight decrease in performance indicated by an increase in the RMSE value. Additionally, Figure 7 depicts the variation in performance in terms of RMSE with changes in the lead time.
Error matrices, e.g., R 2 and E, are reported for all selected lead times. Lead times are important parameters of the LSTM algorithm toward model performance. Lead-time values are 1 day, 2 days, 3 days, 4 days, 5 days, 6 days, and one week. The values of R 2 and E decreases with the increase in lead time, showing the degradation in the model performance with an increase in the lead times (Figure 8). Therefore, the selection of the lead times should be based on model performance and necessity.
Accuracies in the LSTM prediction for all SW parameters are presented in Figure 9 with the help of the coefficient of determination, R 2 . Observed and predicted values of SW variables from the LSTM prediction are plotted to determine the R 2 value. The range of the R 2 value for all SW parameters 0.552 to 0.953 delineates satisfactory performance from LSTM model prediction overall. The best prediction with minimum error is found for the DO prediction with the R 2 value of 0.953.

3.3. Hyperparameters Optimization

To ensure optimal model configuration for predictions, it is crucial to perform hyperparameter optimization of the LSTM algorithm. This study focuses on optimizing parameters that specifically impact the SW variables, considering the stochastic nature of the neural network tuning procedure. Initially, the optimization process involves determining the optimal epoch size while keeping the batch size at 4 and using a single neuron. A range of increasing epoch values (50, 75, 100, 125, and 150) is selected to assess the LSTM model’s performance. Similarly, a set of batch sizes (1, 3, and 5) and neurons (1 to 5) are chosen with a fixed epoch size of 1000 to observe performance improvements. Further optimization is carried out using an epoch size of 2000, considering the batch size and the number of neurons, which yields the highest R2 value. Figure 10 shows that a batch size of 1 and 5 neurons result in the highest R2 values. Consequently, the optimal combination for the LSTM model prediction is determined to be an epoch size of 2000, a batch size of 3, and a neuron count of 5.

4. Conclusions

Multivariate prediction of the SW variables under both the water quantity and quality categories at a point location using the observed data can be highly beneficial to water managers and decision-makers to perceive future flooding, irrigation works, and fluvial ecology and aquatic life. Unlike the physics-based numerical models where additional terrain data, land cover/vegetation data, meteorological data, river bathymetry, and human interventions such as structures are pre-requisite as input data, the proposed approach relies only on the previously recorded data of the surface water (SW) variables. The LSTM framework to predict the SW variables can be highly beneficial for the nearby community, where the short-term prediction of the dynamics of the SW variables daily/weekly/monthly in the future plays a critical role. The prediction of water quantity, i.e., discharge and water level, can substantially aid the preparation for flood inundation, irrigation work, and water supply and demand. Prior knowledge of the water quality of the SW can be highly beneficial for aquatic life sustenance, source management of drinking water supply, and irrigation. Water sports activity and water-centric tourism also require a clean aesthetic view of water. The model uses only historical observed data of the variables, and hence it is a data-driven model which utilizes a neural network algorithm to find data patterns and characteristics and predict through stochastic analysis. Several approaches through physics-based numerical modeling techniques have proven inefficient in terms of real-time forecasting and computational efficiency. However, the use of data-informed predictive models is particularly effective at forecasting numerous SW variables without the need for complex differential equations and presumptions. The LSTM algorithm can preserve both the short- and long-term patterns of the time series to forecast.
This study provides a reproducible template for analyzing the distinctiveness of the temporal dynamics of SW variables through comprehensive exploratory data analysis. The distribution of SW variables throughout seven years of data was examined using a variety of modern data exploration tools to find hidden patterns. The proper training of the LSTM algorithm depends on this essential criterion. Utilizing an explicit iterative performance record, the LSTM algorithm was adjusted and refined following a successful training phase. In the same geographic area, SW variables can then be predicted using this improved approach. The algorithm’s ability to predict river discharge was shown to be quite effective for the discharge time series, with several error matrices indicating promising performance and little error. The proposed LSTM configuration has been proven to offer satisfactory performance for the SW variables with lead times of up to one week. However, increasing the lead time increases the prediction error, limiting the performance of the LSTM model. Physics-based models are also incompetent in real-time prediction, where the proposed LSTM can easily be coupled with the sensor and cloud to predict the SW variables in real time. Computational time may increase exponentially with the increase in the size of the dataset. Principle parameters obtained after the training process with a minimum error are the numbers of neurons, batch, and epoch size. The parameters optimized to obtain the best LSTM configuration after training the model can be transferable in similar climatic and geographic regions. For instance, if the distribution of the values of the SW variables is identical, e.g., the difference among the PCS values being negligible, the parameters of the trained LSTM model can be transferred and used for predictive analysis in a different location. However, we should not use our LSTM model in an area where the distribution of the feature values through time is dissimilar. The study has a few limitations that should be considered. First, while the LSTM neural network model performed well in predicting surface water variables, it would be beneficial to explore other deep-learning models as well. Models such as CNNs or Transformer-based models may offer alternative approaches and potentially yield different outcomes. Second, the computational efficiency of the LSTM model needs to be considered. Deep-learning models can be computationally demanding, especially with large datasets or complex architectures. Finding ways to optimize model efficiencies, such as using model compression techniques or hardware acceleration, can enhance its practical usability. Additionally, the study focused on a specific range of lead times, but it would be valuable to assess model performance at longer or shorter lead times. Different lead times present varying prediction challenges and evaluating model reliability across different forecasting horizons is important. Lastly, the generalizability of the LSTM model may be limited to the specific location and dataset used in the study. Adapting and fine-tuning the model for different locations and environmental conditions is necessary to ensure its effectiveness in diverse settings. In summary, while the LSTM model showed promise, exploring other deep-learning models, addressing computational efficiency, considering different lead times, and assessing model generalizability are important for a more comprehensive understanding of the study’s findings.
Possible future work includes expanding the study to incorporate ensemble modeling techniques, such as combining multiple deep-learning models, to further improve the accuracy and robustness of the predictions. Additionally, exploring the integration of external environmental factors, such as meteorological data or land use information, could enhance the model’s predictive capabilities. Further investigation into the transferability of the LSTM model to different geographical locations and its adaptability to varying hydrological conditions is also crucial. The development of real-time prediction systems using the trained LSTM model, along with the integration of data assimilation techniques, would be valuable for operational applications. Lastly, considering the computational efficiency aspect, exploring model compression techniques or implementing distributed computing frameworks could optimize the model’s performance for larger datasets and facilitate its practical implementation in water resource management.

Author Contributions

Conceptualization, S.G., M.K. and M.M.S.Y.; methodology, S.G., N.N. and M.K.; software, N.N., M.K., M.M.S.Y. and B.M.D.; validation, N.N.; formal analysis, N.N. and M.K.; investigation, S.G., B.M.D. and N.N.; resources, S.G.; data curation, N.N.; writing—original draft preparation, S.G., N.N. and M.K.; writing—review and editing, S.G., N.N. and M.M.S.Y.; visualization, N.N., M.K. and M.M.S.Y.; supervision, H.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data collected for the study can be made available upon request from the corresponding author.

Acknowledgments

The remarkable assistance provided by Md Abdullah Al Mehedi, a candidate in the Department of Civil and Environmental Engineering at Villanova University, has been instrumental in the completion of this paper and the underlying research. From the initial encounter to the final draft, his enthusiasm, expertise, and meticulous attention to detail have served as a constant source of inspiration, ensuring the progress and quality of this work. Md Abdullah Al Mehedi made significant contributions to various aspects, including model formulation, strategic planning for model simulation, result analysis, and interpretation, as well as identifying future directions and limitations. We express our gratitude for his valuable ideas and contributions. Additionally, we acknowledge the support from the Computer Science program in the School of Computing and Analytics at Northern Kentucky University for facilitating this study.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Uddin, M.G.; Nash, S.; Olbert, A.I. A Review of Water Quality Index Models and Their Use for Assessing Surface Water Quality. Ecol. Indic. 2021, 122, 107218. [Google Scholar] [CrossRef]
  2. Ni, X.; Parajuli, P.B.; Ouyang, Y.; Dash, P.; Siegert, C. Assessing Land Use Change Impact on Stream Discharge and Stream Water Quality in an Agricultural Watershed. Catena 2021, 198, 105055. [Google Scholar] [CrossRef]
  3. Simeonov, V.; Stratis, J.A.; Samara, C.; Zachariadis, G.; Voutsa, D.; Anthemidis, A.; Sofoniou, M.; Kouimtzis, T. Assessment of the Surface Water Quality in Northern Greece. Water Res. 2003, 37, 4119–4124. [Google Scholar] [CrossRef]
  4. Alam, R.Q.; Duti, B.M.; Hossain, M.M. Potential of water footprint assessment as a decision support tool for sustainable water allocation option in Dhaka city. In Proceedings of the 4th Annual Paper Meet and 1st Civil Engineering Congress, Dhaka, Bangladesh, 22–24 December 2011; Institution of Engineers (IEB): Dhaka, Bangladesh, 2011. [Google Scholar]
  5. Alam, R.Q.; Duti, B.M.; Monowar, M.M. Climate Change Impacts on Water Related Sectors of Dhaka City and Assessing the Plausible Adaptation Options. In Proceedings of the 2nd International Conference on Environmental Technology & Construction Engineering for Sustainable Development ICETCESD, Sylhet, Bangladesh, 10–12 March 2012; Shahjalal University of Science and Technology: Sylhet, Bangladesh, 2012. [Google Scholar]
  6. Duti, B.M.; Aurin, F.H.; Rahman, M.D.M. Changes Observed in the Historical Trend of Local Rainfall as a Climatic Factor and Its Effect on the Streamflow of the Turag and Buriganga River System. In Proceedings of the International Conference on Environmental Technology & Construction Engineering for Sustainable Deve, ICETCESD-2011, Rhodes, Greece, 8–10 October 2011; Shahjalal University of Science and Technology: Sylhet, Bangladesh, 2011. [Google Scholar]
  7. Islam, M.T.; Duti, B.M.; Hasan, M.R.; Rahman, M.A.; Sahabuddin, S.M. Groundwater Salinity Modelling in the South West Region of Bangladesh Considering Climate Change. J. Indian Soc. Coast. Agric. Res. 2020, 38, 76–84. [Google Scholar]
  8. Li, K.; Wang, L.; Li, Z.; Xie, Y.; Wang, X.; Fang, Q. Exploring the Spatial-Seasonal Dynamics of Water Quality, Submerged Aquatic Plants and Their Influencing Factors in Different Areas of a Lake. Water 2017, 9, 707. [Google Scholar] [CrossRef] [Green Version]
  9. Ebrahimi, S.; Khorram, M. Variability Effect of Hydrological Regime on River Quality Pattern and Its Uncertainties: Case Study of Zarjoob River in Iran. J. Hydroinform. 2021, 23, 1146–1164. [Google Scholar] [CrossRef]
  10. Hamid, A.; Bhat, S.U.; Jehangir, A. Local Determinants Influencing Stream Water Quality. Appl. Water Sci. 2019, 10, 24. [Google Scholar] [CrossRef] [Green Version]
  11. Mehedi, M.A.A.; Reichert, N.; Molkenthin, F. Sensitivity Analysis of Hyporheic Exchange to Small Scale Changes in Gravel-Sand Flumebed Using a Coupled Groundwater-Surface Water Model. In Proceedings of the 22th EGU General Assembly, Online, 4–8 May 2020. [Google Scholar] [CrossRef]
  12. Aktar, N.; Ahmed, F.; Duti, B.M.; Khan, M.; Saniruzzaman; Akand, K. Assessing WATSAN (Water Supply and Sanitation) Vulnerability due to Climate Change in Bangladesh and Formulating Adaptation Strategies. In Proceedings of the 5th International Conference on Water & Flood Management (ICWFM), Dhaka, Bangladesh, 6–8 March 2015. [Google Scholar]
  13. Tremblay, J.-É.; Raimbault, P.; Garcia, N.; Lansard, B.; Babin, M.; Gagnon, J. Impact of River Discharge, Upwelling and Vertical Mixing on the Nutrient Loading and Productivity of the Canadian Beaufort Shelf. Biogeosciences 2014, 11, 4853–4868. [Google Scholar] [CrossRef] [Green Version]
  14. How Much Is an Urban Stream Worth? Using Land Senses and Economic Assessment of an Urban Stream Restoration. Available online: https://www.tandfonline.com/doi/full/10.1080/13504509.2021.1929546 (accessed on 16 May 2022).
  15. Duti, B.M.; Willems, P. Impact of Climate Change on Water Availability and Extreme flows of Jamuneshwari River Basin in Bangladesh, 2020. In Proceedings of the International Conference on Research into Action in Bangladesh, Gobeshona6, Dhaka, Bangladesh, 20–24 January 2020. [Google Scholar]
  16. Ghoochani, S.; Salehi, M.; DeSimone, D.; Esfandarani, M.S.; Bhattacharjee, L. Studying the Impacts of Non-Routine Extended Schools’ Closure on Heavy Metal Release into Tap Water. Environ. Sci. Water Res. Technol. 2022, 8, 1223–1235. [Google Scholar] [CrossRef]
  17. Onabule, O.A.; Mitchell, S.B.; Couceiro, F.; Williams, J.B. The Impact of Creek Formation and Land Drainage Runoff on Sediment Cycling in Estuarine Systems. Estuar. Coast. Shelf Sci. 2022, 264, 107698. [Google Scholar] [CrossRef]
  18. Saniruzzaman; Duti, B.M.; Khan, M.; Hazra, S.; Bhadra, T. Development of environmental flow assessment methodology for the Sundarbans ecosystem. In Proceedings of the 5th International Conference on Water & Flood Management (ICWFM), BUET, Dhaka, Bangladesh, 6–8 March 2015. [Google Scholar]
  19. Ji, H.; Pan, S.; Chen, S. Impact of River Discharge on Hydrodynamics and Sedimentary Processes at Yellow River Delta. Mar. Geol. 2020, 425, 106210. [Google Scholar] [CrossRef]
  20. Mehedi, M.A.A.; Yazdan, M.M.S. Automated Particle Tracing & Sensitivity Analysis for Residence Time in a Saturated Subsurface Media. Liquids 2022, 2, 72–84. [Google Scholar] [CrossRef]
  21. Whitehead, P.G.; Wilby, R.L.; Battarbee, R.W.; Kernan, M.; Wade, A.J. A Review of the Potential Impacts of Climate Change on Surface Water Quality. Hydrol. Sci. J. 2009, 54, 101–123. [Google Scholar] [CrossRef] [Green Version]
  22. Alnahit, A.O.; Mishra, A.K.; Khan, A.A. Stream Water Quality Prediction Using Boosted Regression Tree and Random Forest Models. Stoch. Environ. Res. Risk Assess. 2022, 36, 2661–2680. [Google Scholar] [CrossRef]
  23. Mehedi, M.A.A.; Yazdan, M.M.S.; Ahad, M.T.; Akatu, W.; Kumar, R.; Rahman, A. Quantifying Small-Scale Hyporheic Streamlines and Resident Time under Gravel-Sand Streambed Using a Coupled HEC-RAS and MIN3P Model. Eng 2022, 3, 276–300. [Google Scholar] [CrossRef]
  24. Ron, J.; MacGillivray, R.; Panuccio, E. 103rd NJ Water Environment Association Conference. 2018. Available online: https://nj.gov/drbc/library/documents/njwea/may2018/yagecic_monitoring_NJWEAmay2018.pdf (accessed on 16 May 2022).
  25. Benyahya, L.; Caissie, D.; St-Hilaire, A.; Ouarda, T.B.M.J.; Bobée, B. A Review of Statistical Water Temperature Models. Can. Water Resour. J. Rev. Can. Resour. Hydr. 2007, 32, 179–192. [Google Scholar] [CrossRef] [Green Version]
  26. Kelleher, C.A.; Golden, H.E.; Archfield, S.A. Monthly River Temperature Trends across the US Confound Annual Changes. Environ. Res. Lett. 2021, 16, 104006. [Google Scholar] [CrossRef]
  27. Ducharne, A. Importance of Stream Temperature to Climate Change Impact on Water Quality. Hydrol. Earth Syst. Sci. 2008, 12, 797–810. [Google Scholar] [CrossRef] [Green Version]
  28. van Vliet, M.T.H.; Ludwig, F.; Zwolsman, J.J.G.; Weedon, G.P.; Kabat, P. Global River Temperatures and Sensitivity to Atmospheric Warming and Changes in River Flow. Water Resour. Res. 2011, 47, W02544. [Google Scholar] [CrossRef]
  29. Duti, B.M.; Alam, R.Q.; Hossain, M.M. Changing Climate and Surface & Ground Water Related Issues in Dhaka. J. Eng. Sci. 2012, 3, 161–169. [Google Scholar]
  30. Ehrenfeld, J.G.; Schneider, J.P. Chamaecyparis Thyoides Wetlands and Suburbanization: Effects on Hydrology, Water Quality and Plant Community Composition. J. Appl. Ecol. 1991, 28, 467–490. [Google Scholar] [CrossRef]
  31. Dow, C.L.; Zampella, R.A. Specific Conductance and PH as Indicators of Watershed Disturbance in Streams of the New Jersey Pinelands, USA. Environ. Manag. 2000, 26, 437–445. [Google Scholar] [CrossRef]
  32. Zampella, R.A.; Dow, C.L.; Lathrop, R.G.; Bognar, J.A.; Bunnell, J.F.; Laidig, K.J.; Procopi, N.A. Using Multiple Regression to Quantify the Effect of Land Use on Surface-Water Quality and Aquatic Communities in the New Jersey Pinelands, Pinelands Commission, Long Term Environmental Monitoring Program, Final Report Submitted to the, U.S. Environmental Protection Agency EPA Grant Agreement No. Cd992770-01-0. Available online: https://www.researchgate.net/publication/264382478_Using_multiple_regression_to_quantify_the_effect_of_land_use_on_surface-water_quality_and_aquatic_communities_in_the_New_Jersey_Pinelands?enrichId=rgreq-ebf55ba379bc445b02049b2a8f0bffd8-XXX&enrichSource=Y292ZXJQYWdlOzI2NDM4MjQ3ODtBUzoxMjUwNjUyMDMwMzIwNjRAMTQwNjgyOTI3NjY1Nw%3D%3D&el=1_x_2&_esc=publicationCoverPdf (accessed on 16 May 2022).
  33. Money, E.S.; Carter, G.P.; Serre, M.L. Modern Space/Time Geostatistics Using River Distances: Data Integration of Turbidity and E. coli Measurements to Assess Fecal Contamination along the Raritan River in New Jersey. Environ. Sci. Technol. 2009, 43, 3736–3742. [Google Scholar] [CrossRef] [Green Version]
  34. Tousi, E.G.; Duan, J.G.; Gundy, P.M.; Bright, K.R.; Gerba, C.P. Evaluation of E. coli in Sediment for Assessing Irrigation Water Quality Using Machine Learning. Sci. Total Environ. 2021, 799, 149286. [Google Scholar] [CrossRef]
  35. Kumar, R.; Yazdan, M.M.S. Evaluating Preventive Measures for Flooding from Groundwater: A Case Study. J 2023, 6, 1–16. [Google Scholar] [CrossRef]
  36. Saksena, S.; Merwade, V.; Singhofen, P.J. Flood Inundation Modeling and Mapping by Integrating Surface and Subsurface Hydrology with River Hydrodynamics. J. Hydrol. 2019, 575, 1155–1177. [Google Scholar] [CrossRef]
  37. Belayneh, A.; Duti, B.M.; Mekuanent, F.; Biniyam, S.; Gebrehiwot, T.; Buruk, W. Effect of Different HRU Definition on Catchment Runoff Prediction and Climate Change Impact Investigation Using the SWAT Model in the Kleine Nete Basin, Belgium, 3rd ed.; Open Water Symposium: Addis Ababa, Ethiopia, 2015. [Google Scholar]
  38. Subramanya, K. Engineering Hydrology, 3rd ed.; Tata McGraw-Hill Publishing: New Delhi, India, 2008. [Google Scholar]
  39. Woznicki, S.A.; Baynes, J.; Panlasigui, S.; Mehaffey, M.; Neale, A. Development of a Spatially Complete Floodplain Map of the Conterminous United States Using Random Forest. Sci. Total Environ. 2019, 647, 942–953. [Google Scholar] [CrossRef]
  40. Horritt, M.S.; Bates, P.D. Effects of Spatial Resolution on a Raster Based Model of Flood Flow. J. Hydrol. 2001, 253, 239–249. [Google Scholar] [CrossRef]
  41. Duti, B.M.; Khan, M.; Tamanna, T.; Mukherjee, N.; Rashid, M.A. Vulnerability Assessment and Adaptation Technique for Climate Change Induced Drought in Bangladesh. In Proceedings of the 5th International Conference on Water & Flood Management (ICWFM-2015), Dhaka, Bangladesh, 6–8 March 2015. [Google Scholar]
  42. Barzegar, R.; Aalami, M.T.; Adamowski, J. Short-Term Water Quality Variable Prediction Using a Hybrid CNN–LSTM Deep Learning Model. Stoch. Environ. Res. Risk Assess. 2020, 34, 415–433. [Google Scholar] [CrossRef]
  43. Zhu, X.; Khosravi, M.; Vaferi, B.; Nait Amar, M.; Ghriga, M.A.; Mohammed, A.H. Application of Machine Learning Methods for Estimating and Comparing the Sulfur Dioxide Absorption Capacity of a Variety of Deep Eutectic Solvents. J. Clean. Prod. 2022, 363, 132465. [Google Scholar] [CrossRef]
  44. Sinshaw, T.A.; Surbeck, C.Q.; Yasarer, H.; Najjar, Y. Artificial Neural Network for Prediction of Total Nitrogen and Phosphorus in US Lakes. J. Environ. Eng. 2019, 145, 04019032. [Google Scholar] [CrossRef]
  45. Khosravi, M.; Arif, S.B.; Ghaseminejad, A.; Tohidi, H.; Shabanian, H. Performance Evaluation of Machine Learning Regressors for Estimating Real Estate House Prices. Preprints 2022. [Google Scholar] [CrossRef]
  46. Yazdan, M.M.S.; Khosravi, M.; Saki, S.; Mehedi, M.A.A. Forecasting Energy Consumption Time Series Using Recurrent Neural Network in Tensorflow. Preprints 2022. [Google Scholar] [CrossRef]
  47. Zhang, J.; Zhu, Y.; Zhang, X.; Ye, M.; Yang, J. Developing a Long Short-Term Memory (LSTM) Based Model for Predicting Water Table Depth in Agricultural Areas. J. Hydrol. 2018, 561, 918–929. [Google Scholar] [CrossRef]
  48. Cannas, B.; Fanni, A.; See, L.; Sias, G. Data Preprocessing for River Flow Forecasting Using Neural Networks: Wavelet Transforms and Data Partitioning. Phys. Chem. Earth Parts ABC 2006, 31, 1164–1171. [Google Scholar] [CrossRef]
  49. Paoli, C.; Voyant, C.; Muselli, M.; Nivet, M.-L. Forecasting of Preprocessed Daily Solar Radiation Time Series Using Neural Networks. Sol. Energy 2010, 84, 2146–2160. [Google Scholar] [CrossRef] [Green Version]
  50. Khosravi, M.; Tabasi, S.; Hossam Eldien, H.; Motahari, M.R.; Alizadeh, S.M. Evaluation and Prediction of the Rock Static and Dynamic Parameters. J. Appl. Geophys. 2022, 199, 104581. [Google Scholar] [CrossRef]
  51. Abdollahzadeh, M.; Khosravi, M.; Hajipour Khire Masjidi, B.; Samimi Behbahan, A.; Bagherzadeh, A.; Shahkar, A.; Tat Shahdost, F. Estimating the Density of Deep Eutectic Solvents Applying Supervised Machine Learning Techniques. Sci. Rep. 2022, 12, 4954. [Google Scholar] [CrossRef]
  52. Kumar, R.; Yazdan, M.M.S.; Mehedi, M.A.A. Demystifying the Preventive Measures for Flooding from Groundwater Triggered by the Rise in Adjacent River Stage. Preprints 2022. [Google Scholar] [CrossRef]
  53. Sahoo, S.; Russo, T.A.; Elliott, J.; Foster, I. Machine Learning Algorithms for Modeling Groundwater Level Changes in Agricultural Regions of the U.S. Water Resour. Res. 2017, 53, 3878–3895. [Google Scholar] [CrossRef] [Green Version]
  54. Predicting Residential Energy Consumption Using CNN-LSTM Neural Networks—ScienceDirect. Available online: https://www.sciencedirect.com/science/article/pii/S0360544219311223 (accessed on 23 May 2022).
  55. Khosravi, M.; Ghoochani, S.; Nazemi, N. Deep Learning-Based Modeling of Daily Suspended Sediment Concentration and Discharge in Esopus Creek. Preprints 2023, 2023051167. [Google Scholar] [CrossRef]
  56. Sutskever, I.; Vinyals, O.; Le, Q.V. Sequence to Sequence Learning with Neural Networks. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Dutchess County, NY, USA, 2014; Volume 27. [Google Scholar]
  57. Sundermeyer, M.; Schlüter, R.; Ney, H. LSTM Neural Networks for Language Modeling. In Proceedings of the Interspeech 2012, ISCA’s 13th Annual Conference, Portland, OR, USA, 9–13 September 2012; pp. 194–197. [Google Scholar]
  58. Mikolov, T. Recurrent Neural Network Based Language Model. Available online: http://www.fit.vutbr.cz/research/groups/speech/servite/2010/rnnlm_mikolov.pdf (accessed on 16 April 2022).
  59. Akatu, W.; Khosravi, M.; Mehedi, M.A.A.; Mantey, J.; Tohidi, H.; Shabanian, H. Demystifying the Relationship Between River Discharge and Suspended Sediment Using Exploratory Analysis and Deep Neural Network Algorithms. Preprints 2022. [Google Scholar] [CrossRef]
  60. Khosravi, M.; Mehedi, M.A.A.; Baghalian, S.; Burns, M.; Welker, A.L.; Golub, M. Using Machine Learning to Improve Performance of a Low-Cost Real-Time Stormwater Control Measure. Preprints 2022. [Google Scholar] [CrossRef]
  61. USGS. Current Conditions for USGS 01463500 Delaware River at Trenton NJ. Available online: https://waterdata.usgs.gov/nwis/uv?01463500 (accessed on 28 May 2022).
  62. Beretta, L.; Santaniello, A. Nearest Neighbor Imputation Algorithms: A Critical Evaluation. BMC Med. Inform. Decis. Mak. 2016, 16, 74. [Google Scholar] [CrossRef] [Green Version]
  63. Feature Engineering and Deep Learning-Based Intrusion Detection Framework for Securing Edge IoT|SpringerLink. Available online: https://link.springer.com/article/10.1007/s11227-021-04250-0 (accessed on 17 May 2022).
  64. Zheng, A.; Casari, A. Feature Engineering for Machine Learning: Principles and Techniques for Data Scientists; O’Reilly Media, Inc.: Sebastopol, CA, USA, 2018; ISBN 978-1-4919-5319-8. [Google Scholar]
  65. Talbot, C.; Thrane, E. Flexible and Accurate Evaluation of Gravitational-Wave Malmquist Bias with Machine Learning. Astrophys. J. 2022, 927, 76. [Google Scholar] [CrossRef]
  66. Karimi, M.; Khosravi, M.; Fathollahi, R.; Khandakar, A.; Vaferi, B. Determination of the Heat Capacity of Cellulosic Biosamples Employing Diverse Machine Learning Approaches. Energy Sci. Eng. 2022, 10, 1925–1939. [Google Scholar] [CrossRef]
  67. Rebala, G.; Ravi, A.; Churiwala, S. Machine Learning Definition and Basics. In An Introduction to Machine Learning; Rebala, G., Ravi, A., Churiwala, S., Eds.; Springer International Publishing: Cham, Switzerland, 2019; pp. 1–17. ISBN 978-3-030-15729-6. [Google Scholar]
  68. Bengio, Y.; Simard, P.; Frasconi, P. Learning Long-Term Dependencies with Gradient Descent Is Difficult. IEEE Trans. Neural Netw. 1994, 5, 157–166. [Google Scholar] [CrossRef]
  69. Kilinc, H.C.; Haznedar, B. A Hybrid Model for Streamflow Forecasting in the Basin of Euphrates. Water 2022, 14, 80. [Google Scholar] [CrossRef]
  70. Song, X.; Liu, Y.; Xue, L.; Wang, J.; Zhang, J.; Wang, J.; Jiang, L.; Cheng, Z. Time-Series Well Performance Prediction Based on Long Short-Term Memory (LSTM) Neural Network Model. J. Pet. Sci. Eng. 2020, 186, 106682. [Google Scholar] [CrossRef]
  71. Younger, A.S.; Hochreiter, S.; Conwell, P.R. Meta-Learning with Backpropagation. In Proceedings of the IJCNN’01, International Joint Conference on Neural Networks, Washington, DC, USA, 15–19 July 2001; Proceedings (Cat. No.01CH37222). Volume 3, pp. 2001–2006. [Google Scholar]
  72. Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
  73. Staudemeyer, R.C.; Morris, E.R. Understanding LSTM—A Tutorial into Long Short-Term Memory Recurrent Neural Networks. arXiv 2019, arXiv:1909.09586. [Google Scholar]
  74. Tsang, G.; Deng, J.; Xie, X. Recurrent Neural Networks for Financial Time-Series Modelling. In Proceedings of the 2018 24th International Conference on Pattern Recognition (ICPR), Beijing, China, 20–24 August 2018; pp. 892–897. [Google Scholar]
  75. Maulik, R.; Egele, R.; Lusch, B.; Balaprakash, P. Recurrent Neural Network Architecture Search for Geophysical Emulation. arXiv 2020, arXiv:2004.10928. [Google Scholar]
  76. Keras: The Python Deep Learning API. Available online: https://keras.io/ (accessed on 28 May 2022).
  77. Mehedi, M.A.A.; Khosravi, M.; Yazdan, M.M.S.; Shabanian, H. Exploring Temporal Dynamics of River Discharge Using Univariate Long Short-Term Memory (LSTM) Recurrent Neural Network at East Branch of Delaware River. Hydrology 2022, 9, 202. [Google Scholar] [CrossRef]
  78. Ahmad, M.; Al Mehedi, M.A.; Yazdan, M.M.S.; Kumar, R. Development of Machine Learning Flood Model Using Artificial Neural Network (ANN) at Var River. Liquids 2022, 2, 147–160. [Google Scholar] [CrossRef]
  79. Gupta, H.V.; Kling, H. On Typical Range, Sensitivity, and Normalization of Mean Squared Error and Nash-Sutcliffe Efficiency Type Metrics. Water Resour. Res. 2011, 47, W10601. [Google Scholar] [CrossRef]
  80. Willmott, C.J.; Robeson, S.M.; Matsuura, K. A Refined Index of Model Performance. Int. J. Climatol. 2012, 32, 2088–2094. [Google Scholar] [CrossRef]
Figure 1. Aerial photo of the research location with flow measuring station at Central Delaware (HUC8 02040105). (a) the state of the study location is New Jersey state of the United States, (b) surrounding topography of USGS gage location of the study, (c) surrounding land covers and (d) gauge station.
Figure 1. Aerial photo of the research location with flow measuring station at Central Delaware (HUC8 02040105). (a) the state of the study location is New Jersey state of the United States, (b) surrounding topography of USGS gage location of the study, (c) surrounding land covers and (d) gauge station.
Eng 04 00109 g001
Figure 2. Pipeline of the EDA and LSTM prediction tasks illustrates how the activities are linked from the data preprocessing steps to the model deployment stage. The steps are further categorized into their distinct group namely transformer, estimator, and evaluator.
Figure 2. Pipeline of the EDA and LSTM prediction tasks illustrates how the activities are linked from the data preprocessing steps to the model deployment stage. The steps are further categorized into their distinct group namely transformer, estimator, and evaluator.
Eng 04 00109 g002
Figure 3. Storm-water variables indicated by the correlation heatmaps’ bivariate correlation coefficients.
Figure 3. Storm-water variables indicated by the correlation heatmaps’ bivariate correlation coefficients.
Eng 04 00109 g003
Figure 4. Logarithmic transformation is applied to increase the normality of discharge and water level values. (a) discharge histogram, (b) Q-Q plot of discharge distribution, (c) water level histogram and (d) Q-Q plot of water level values.
Figure 4. Logarithmic transformation is applied to increase the normality of discharge and water level values. (a) discharge histogram, (b) Q-Q plot of discharge distribution, (c) water level histogram and (d) Q-Q plot of water level values.
Eng 04 00109 g004
Figure 5. Schematic representation of an LSTM architecture.
Figure 5. Schematic representation of an LSTM architecture.
Eng 04 00109 g005
Figure 6. Distribution of observed value from the gage records (dashed blue lines) and prediction from the LSTM approach for the stream-water variables, discharge (a), water level (b), temperature (c), DO (d), pH (e), turbidity (f) and SC (g) with train/test split (orange).
Figure 6. Distribution of observed value from the gage records (dashed blue lines) and prediction from the LSTM approach for the stream-water variables, discharge (a), water level (b), temperature (c), DO (d), pH (e), turbidity (f) and SC (g) with train/test split (orange).
Eng 04 00109 g006
Figure 7. Improvement of the model prediction capability with the increase in the number of epochs for the train and test set. RMSE value is the indicator of the model performance for (a) discharge, (b) temperature, (c) dissolved oxygen, (d) turbidity, (e) pH, (f) specific conductance and (g) water level.
Figure 7. Improvement of the model prediction capability with the increase in the number of epochs for the train and test set. RMSE value is the indicator of the model performance for (a) discharge, (b) temperature, (c) dissolved oxygen, (d) turbidity, (e) pH, (f) specific conductance and (g) water level.
Eng 04 00109 g007
Figure 8. Error matrices for various lead times for LSTM neural network model to predict discharge.
Figure 8. Error matrices for various lead times for LSTM neural network model to predict discharge.
Eng 04 00109 g008
Figure 9. Model performances are presented using the scatterplot of the standardized observed and predicted discharge values from the LSTM model and the histogram of the distribution of the difference between the observed and predicted values of the SW parameters. (a) Discharge, (b) Water Level, (c) Temperature, (d) Dissolved Oxygen (DO), (e) Turbidity, (f) pH, (g) Specific Conductance (SC).
Figure 9. Model performances are presented using the scatterplot of the standardized observed and predicted discharge values from the LSTM model and the histogram of the distribution of the difference between the observed and predicted values of the SW parameters. (a) Discharge, (b) Water Level, (c) Temperature, (d) Dissolved Oxygen (DO), (e) Turbidity, (f) pH, (g) Specific Conductance (SC).
Eng 04 00109 g009
Figure 10. Change in the error matrix, R2 values with the increase in the number of epochs batch, and neurons.
Figure 10. Change in the error matrix, R2 values with the increase in the number of epochs batch, and neurons.
Eng 04 00109 g010
Table 1. List of the stream-water variables used for exploratory data analysis and LSTM model.
Table 1. List of the stream-water variables used for exploratory data analysis and LSTM model.
SW ParametersUnitDescriptions
Dischargeft3/sQuantity of stream flow
Water LevelftStream-water height/level at the gage location
Temperature°CSensor-recorded temperature in °C at the gage
Dissolved Oxygen (DO)mg/LThe amount oxygen dissolved in the SW.
TurbidityFNUMeasure of turbidity in Formazin Nephelometric Unit (FNU)
pH-the acidity or alkalinity of a solution on a logarithmic scale
Specific Conductance (SC)μS/cmMeasure of the collective concentration of dissolved ions in solution
Table 2. Storm-water variables’ descriptive statistics.
Table 2. Storm-water variables’ descriptive statistics.
CountMeanStdMin25%50%75%Max
Discharge (ft3/s)255,06613,265.4310,657.912150624010,80016,100150,000
Water Level (ft)255,0669.981.477.88.899.7310.7320.76
Temperature (°C)255,06613.354.43012.0213.5815.0131.30
pH255,0667.900.2086.67.008.239.169.71
SC (μS/cm)255,066208.1922.2349201.11208.64221.09453
Turbidity (FNU)255,0666.446.540.25.616.447.29469
DO (mg/L)255,06611.021.11611.0211.0712.6716.90
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Khosravi, M.; Duti, B.M.; Yazdan, M.M.S.; Ghoochani, S.; Nazemi, N.; Shabanian, H. Multivariate Multi-Step Long Short-Term Memory Neural Network for Simultaneous Stream-Water Variable Prediction. Eng 2023, 4, 1933-1950. https://doi.org/10.3390/eng4030109

AMA Style

Khosravi M, Duti BM, Yazdan MMS, Ghoochani S, Nazemi N, Shabanian H. Multivariate Multi-Step Long Short-Term Memory Neural Network for Simultaneous Stream-Water Variable Prediction. Eng. 2023; 4(3):1933-1950. https://doi.org/10.3390/eng4030109

Chicago/Turabian Style

Khosravi, Marzieh, Bushra Monowar Duti, Munshi Md Shafwat Yazdan, Shima Ghoochani, Neda Nazemi, and Hanieh Shabanian. 2023. "Multivariate Multi-Step Long Short-Term Memory Neural Network for Simultaneous Stream-Water Variable Prediction" Eng 4, no. 3: 1933-1950. https://doi.org/10.3390/eng4030109

APA Style

Khosravi, M., Duti, B. M., Yazdan, M. M. S., Ghoochani, S., Nazemi, N., & Shabanian, H. (2023). Multivariate Multi-Step Long Short-Term Memory Neural Network for Simultaneous Stream-Water Variable Prediction. Eng, 4(3), 1933-1950. https://doi.org/10.3390/eng4030109

Article Metrics

Back to TopTop