Next Article in Journal
Evaluation and Adjustment of Historical Hydroclimate Data: Improving the Representation of Current Hydroclimatic Conditions in Key California Watersheds
Previous Article in Journal
High-Resolution Flow and Phosphorus Forecasting Using ANN Models, Catering for Extremes in the Case of the River Swale (UK)
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Forecasting Model for Danube River Water Temperature Using Artificial Neural Networks

by
Cristina-Sorana Ionescu
1,
Ioana Opriș
2,*,
Daniela-Elena Gogoașe Nistoran
1 and
Constantin-Alexandru Baciu
1
1
Department of Hydraulics, Hydraulic Machinery and Environmental Engineering, Faculty of Energy Engineering, National University of Science and Technology Politehnica Bucharest, 060042 București, Romania
2
Department of Power Generation and Use, Faculty of Energy Engineering, National University of Science and Technology Politehnica Bucharest, 060042 București, Romania
*
Author to whom correspondence should be addressed.
Hydrology 2025, 12(2), 21; https://doi.org/10.3390/hydrology12020021
Submission received: 3 December 2024 / Revised: 8 January 2025 / Accepted: 18 January 2025 / Published: 21 January 2025

Abstract

The objective of this paper is to propose an artificial neural network (ANN) model to forecast the Danube River temperature at Chiciu–Călărași, Romania, bordered by Romanian and Bulgarian ecological sites, and situated upstream of the Cernavoda nuclear power plant. Given the temperature increase trend, the potential of thermal pollution is rising, impacting aquatic and terrestrial ecosystems. The available data covered a period of eight years, between 2008 and 2015. Using as input data actual air and water temperatures, and discharge, as well as air temperature data provided by weather forecasts, the ANN model predicts the Danube water temperature one week in advance with a root mean square deviation (RMSE) of 0.954 °C for training and 0.803 °C for testing. The ANN uses the Levenberg–Marquardt feedforward backpropagation algorithm. This feature is useful for the irrigation systems and for the power plants in the area that use river water for different purposes. The results are encouraging for developing similar studies in other locations and extending the ANN model to include more parameters that can have a significant influence on water temperature.

1. Introduction

Water temperature is a powerful parameter that triggers the initiation and development of complex biogeochemical processes in watercourses [1], influencing water quality and changes in ecosystems [2]. Regrettably, global warming has led to a considerable increase in the mean temperature at the surface of the Earth [3]. As well, recent data provided by NASA indicate a 1.36 °C increase in 2023 compared to the preindustrial average (an aggregate of the second half of the 19th century, 1850–1900). The same NASA source stressed that during the last decade the hottest years from all records were registered [4]. In this established climate change context, and considering the rapid increase in anthropogenic impacts, water temperature forecasting has become a practice of utmost necessity to correctly evaluate the quality of water courses and their supporting land ecosystems [5]. This leads to deeper insight into temperature fluctuations, allowing identification of the most suitable strategies to better adapt to climate change.
Over time, several types of mathematical models have been used to forecast the temperature of water courses. These range in complexity from statistical to process-based and artificial intelligence (AI) models [6]. Due to their reliability and optimization capacity, AI techniques have gained precedence with respect to previous classical methods [5,7,8]. Replacing statistical models with AI ones brings at least a 20% improvement in the accuracy of predicting river temperature [8]. Thus, ref. [9] proposed an extreme learning machine (ELM) AI model to estimate the daily river water temperature based on the air temperature, the day of the year, and the water discharge. Long short-term memory (LSTM) deep learning neural networks were used by [5,10] to predict mean daily river temperatures.
River water temperature was also modelled using a hybrid model integrating long short-term memory and a transformer encoder [11]. Another hybrid model forecasts the daily river water temperature by combining a nonlinear autoregressive neural network with a Bayesian Optimization algorithm [12]. A different model, using measured data from five stations in Poland, predicts water temperature based on signal decomposition algorithms (wavelet transform, maximum overlap discrete wavelet transform) and machine learning (feedforward neural network, optimally pruned extreme learning, adaptive boosting, bootstrap aggregating) [13].
An extensive review on river water temperature modelling, including machine learning, is conducted by [14]. Also, the use of machine learning in hydrologic sciences applications is discussed by [15]. The article focusses on issues dealing with controlling factors influencing hydrological parameters.
The Danube River’s water temperature was statistically analysed by [16] to assess its monthly changes and forecast its values in certain locations. Other researchers studied the trends in the mean annual water temperature in a location at the confluence of the Sava and Danube Rivers [17].
Among different AI models (artificial neural networks, wavelet–artificial intelligence integrated models, Gaussian process regression, adaptive neuro-fuzzy inference systems, adapting boosting, hybrid machine learning [8,18]) provided by the scientific literature, artificial neural network (ANN) models are among the best suited to approach unknown nonlinear functions and to tackle noisy data [19,20,21]. Also, even though ANN models require big data sets and extensive power for computing, these disadvantages are increasingly overcome by advancements in computing technology [22]. The stability and fast convergence of the Levenberg–Marquardt algorithm makes it fit for implementation in ANN models for forecasting procedures, including for river water temperatures [23,24].
River temperature forecast several days in advance based on artificial neural networks [25,26] still encounters certain difficulties and gaps, such as (i) data quality and availability; (ii) model generalization to different locations; (iii) integrating environmental and climatic drivers; (iv) model complexity; and (v) lack of interdisciplinary collaboration between scientists from different fields.
The objective of this paper is to develop a tool addressing the problem of Danube water temperature prediction in a certain location (Chiciu–Călărași) over a time span. This prediction is useful because it is more reliable to forecast the air temperature than the water, with the latter depending on many other factors (such as discharge, solar radiation, nebulosity, wind, etc.). Air temperature can be predicted over a 7-day period with an accuracy of 80%. If this period further increases, the accuracy drops. The place was selected due to its proximity to sensitive locations: ecological areas in Romania and Bulgaria, irrigation stations, and the only nuclear power plant in Romania, for which the cooling water for the reactor is supplied from the Danube River.
The ANN model used in the paper builds on the Levenberg–Marquardt feedforward backpropagation algorithm, as it is considered by researchers to outperform other machine learning algorithms [23,27]. The model provides a useful tool for Danube River water temperature prediction at Chiciu–Călărași, offering a valuable input for the nuclear power plant at Cernavoda. Knowing in advance the temperature of the water from the Danube that is used as cooling water, the power plant can be safely operated.

2. Materials and Methods

2.1. Study Area and Hydrometeorological Data

The Danube River is the second-longest fluvial system in Europe (about 11% of the continent’s surface), flowing through 19 countries. The ecosystems of the Danube are subject to increasing human impact. Its lower stretch can be divided into four sections from Baziaș to the downstream Danube River mouth (rkm 0) into the Black Sea:
  • Baziaș (rkm 1072)–Drobeta Turnu Severin (rkm 931);
  • Iron Gate II (rkm 863)–Călărași (rkm 370);
  • Călărași–Ceatal Ismail (delta apex at rkm 80);
  • Ceatal Ismail–Black Sea.
The upstream mountain section Baziaș–Drobeta Turnu Severin is characterized by a narrow and deep channel, with high flow velocities. Downstream, the Iron Gates II dam (Iron Gates–Călărași section), the river channel becomes wider, less deep, with major islands and embankment dikes along the left Romanian bank floodplain, modifying the hydrodynamic regime.
The tectonic uplift from river km 370 (from the river mouth at the Black Sea), near Călărași, is considered the cause for the abrupt bend in the river course towards the north and a reduced bed slope of the channel. These led to a split of the river channel into two branches, and to diminished velocities after the split [28]. The S–N-oriented reach of the Danube (Figure 1) is the border between the Dobrogea–Litoral River basin district (RBD) and the rest of Romania.
The most downstream section (Ceatal Ismail–Black Sea) is the Danube delta, with three main branches, where the hydrodynamics and water quality parameters change dramatically.
While mean annual precipitation in Romania is about 637 mm, Dobrogea–Litoral is the region with the lowest precipitation (less than 400 mm mean annual rainfall), with the smallest density of surface water resources. In terms of air temperature, the Dobrogea region has an arid climate with mean multiannual temperatures of 10–11 °C, compared to the 8.5–9 °C towards the central and northern parts of the country. This is why this region is usually affected by drought during summers.
Chiciu–Călărași represents an important gauging station (GS) on the left bank of the Danube River. Measured data consist of daily water temperatures at Călărași GS, where the mean multiannual water temperature is 14.2 °C, with annual variation between 0 and 28 °C [29]. The mean multiannual flow at Chiciu GS (rkm 371) is 6107 m3/s [30].
The mean multiannual air temperature in Călărași City is 11.2 °C, with the lowest value on 8 January 1938, of −30 °C, and the highest on 10 August 1951, of 41.4 °C. Mean annual precipitation is 500 mm. Summers are hot in the area, with the hottest July in history being in 2012, when the mean monthly temperature was 27.1 °C, with a peak temperature of 42 °C. Solar radiation in the area is high at 1454 kW/m2 [29].
In addition to the natural climate, the industrial, agricultural, and transport activities performed along the Danube River heavily affect the water’s temperature and the other physical and chemical parameters.
A study on the lower Danube River conducted over 16 years showed an increasing trend in the water temperature, specifically identified at the Chiciu–Călărași gauging station [31].
These influences should be closely monitored due to the proximity of many of the Natura 2000 sites, located on both banks of the Danube River (Figure 2). Some of the natural sites in the proximity of Chiciu–Călărași GS in Romania are Iezerul–Călărași, Danube–Ostroave, Oltenița–Ulmeni, Danube–Oltenița, Valea Mostiștea, Galațui Lake, Ciocănești–Danube, Oltenița–Mostiștea–Chiciu, Eseschioi forest, Bugeac Lake, Borcea Danube branch, Canaraua Feții forest–Iortmac, Oltina Lake, and Vederoasa Lake. In Bulgaria, in the proximity of Silistra (the city on the right bank of the Danube, across from Călărași) the Natura 2000 sites are Srebarna and Ludogorie, Pozharevo–Garvan, and Ostrov–Chayka.
The Oltenița–Mostiștea–Chiciu site is located in the central–south area of Călărași county and has an area of 11,540 hectares. Its ecological value resides in the wetlands along the Oltenița–Călărași reach of the Danube River, renowned for its diverse habitats. The Srebarna Nature Reserve, including the Srebarna Lake, extending over 600 hectares, is an important wetland adjacent to the Danube River, being listed in the World Heritage and protected under the Ramsar Convention and as a UNESCO Biosphere Reserve.
High water temperatures during summers affect the natural areas, irrigation processes, and the cooling of the nuclear power plant reactor. It is important to know several days in advance what the water temperature will be, so that the power plant operators are able to take the appropriate measures. This is because such a reactor needs several days to be stopped. For example, due to the drought in the summer of 2003, Unit 1 of the Cernavoda nuclear power plant (NPP), with a power of 706 MW, was stopped on 23 August, when the Danube water levels dropped (below 2.5 m above Baltic Sea level), discharge reached 1800 m3/s, and water temperatures increased over the restricted levels.

2.2. Air and Water Data

The data range period to forecast the Danube water temperature was 2008–2015, selected to cover both extreme flood (2010, 2013, and 2014) and drought (2011 and 2015) events, in addition to the normal hydrological years.
Hourly mean air temperature data for the period 2008–2015 were downloaded from OpenWeather [32] and averaged to obtain daily mean values. Daily Danube River temperature data were obtained from the edelta.ro website [33], while discharges were provided by the National Administration “Romanian Waters” for the same period.
Figure 3 presents the daily mean variation in air temperature between 1 January 2008 and 31 December 2015 at Chiciu. Figure 4 and Figure 5 show the daily river water discharge and temperature at Chiciu–Călărași, respectively, for the same period.

2.3. ANN Arhitecture

An ANN contains three or more layers: one input layer, at least one intermediate (hidden) layer, and one output layer. In turn, these layers include a number of neurons. The neurons of the input layer are connected to the input parameters, and the neurons from the output layer correspond to the output parameters. The number of hidden layers, and their number of neurons, depend on the ANN model. To each neuron, from any of the layers, a weight is assigned. The value of the weight ranges from 0 to 1, showing the influence the neuron has over the network.
To make a prediction, the ANN passes sequentially through all the layers, starting from the input layer towards the last output layer (Figure 6). Through this process, the neurons generate output information by using the input information received from the neurons within the previous layer, in accordance with their assigned weights. A bias is also introduced as an overall adjustment of the weights to better fit the data.
The output of the neurons from a layer is given by a function that depends on the inputs and a bias:
O u t = f i = 1 n I n i · w i + B I A S
where f is the activation function used by the ANN algorithm to calculate the output value; n is the number of input values from previous neurons; I n i are variables from the input that are connected to the neurons; w i are the weights associated with each input variable; and BIAS is a bias value.
The neurons that belong to the same layer are calculated by the same activation function, independently, without influencing each other [34].
To allow high-accuracy ANN results, the weights w i are calculated by training the network through Feedforward Backpropagation (FB) [23,35]. This process includes forward and backward calculation of the weights until the error between the actual and ANN-predicted values is acceptable. Using an initial estimation of the weights, by forward propagation (from the input layer towards the output layer), the errors are calculated using an algorithm based on second-order derivatives. Next, by backward propagation (from the output layer towards the input layer), the errors are used to adjust the weights using an algorithm based on first-order derivatives. These forward–backward propagation iterations are repeated until the condition of maximum prediction error is met [36].
The Levenberg–Marquardt (LM) algorithm is a good choice for training ANNs by FB based on its advantages of being a robust algorithm with good optimization characteristics. To adjust and refine the weights, the LM algorithm uses linear interpolation between two methods: the gradient descent method (the steepest descent method) and the Gauss–Newton method [37,38].
If the calculated weights are far from the optimum values and the gradient is steep, a first-order algorithm is used, due to its very good convergence [39]. Although it has a slow convergence, it is a simple algorithm that facilitates the convergence to the optimum values of the weights. Therefore, the LM algorithm uses the gradient descent method to reduce the sum of the squared errors and adjust the weights towards the steepest descent direction. When the weights come closer to their optimum values, the LM algorithm uses the Gauss–Newton method, a second-order algorithm. This algorithm has a very fast convergence because it has the capability to adjust its step sizes while evaluating the curvature of the error surface pending on the quadratic approximation of the error function. Otherwise, the scheme becomes divergent.
The LM algorithm is therefore used to develop the ANN forecast water temperature model. Thus, the relationship linking a Hessian and a Jacobian matrix in the LM algorithm is [38,40]
w i , i 1 = w i w i 1 = J i 1 T   J i 1 + η I 1 J i 1 T   ε i 1
where i is the actual iteration; w i , i 1 is the change in the weight vector between two consecutive iterations; w i is the actual weight vector; w i 1   is the previous weight vector; J is the Jacobian matrix with the derivative of the network error; ε i 1 is the error vector given by the difference between the actual and the previous output; η is the combination coefficient that can be zero or positive; and I is the identity matrix.
From (2), the actual weight vector can be written as
w i = w i 1 H i 1 + η I 1 J i 1 T   ε i 1
where H is the Hessian matrix, defined as
H = J i 1 T J i 1 ,
The selection between two algorithms is influenced by the η parameter [41]. The flowchart in Figure 7 summarizes the training selection algorithm of the ANN model. When η tends to zero, the Gauss–Newton second-order algorithm is used, while for larger η values the steepest descent first-order algorithm applies. In Figure 7, g i 1 is the first-order derivative of the total error vector and 1/η represents the step size (the learning coefficient).
The training algorithm runs until the output weights show predefined acceptable results.

2.4. ANN Danube Water Temperature Prediction Model at Chiciu–Călărași

Given the benefits provided by ANN models in predicting water temperature variation with respect to time, a model was set up for the Danube River at Chiciu–Călărași GS. In this location, daily mean air and water temperatures, as well as water discharge values, were available for eight years (Figure 3, Figure 4 and Figure 5), making it possible to develop a reliable neural model.
In addition to air temperature, which is the dominant physical quantity that has the greatest influence on river water temperature, discharge is the second critical factor exerting significant impact on water temperature [5]. These two input variables together with the water temperature are suitable and adequate for a sound ANN prediction [42]. As well, as previously mentioned, the ANN can handle the noisiness of the meteorological data [19,20,21].
Figure 8 presents the chosen architecture of the ANN forecasting model for the Danube River temperature. The network has three layers: the input layer, the intermediate hidden layer, and the output layer. The input layer contains four neurons. These designate the actual data for air and water temperature, flowrate, and the weather forecasted air temperature. A lag time is linked to the weather forecasted air temperature neuron.
For the type of problem to be solved, involving the Levenberg–Marquardt algorithm, one hidden layer is considered to be sufficient for the ANN architecture [43]. The intermediate hidden layer contains ten neurons connected to the input and the output layer. The number of intermediate neurons was determined by trial and error to obtain good results and also avoid overfitting.
In the output layer is the neuron corresponding to the predicted water temperature, having the same lag time as the weather forecasted air temperature.
The input is represented by a matrix of size 5 × 2335 for the training stage and 4 × 584 for the testing stage. The entire data range consists of 2919 value sets (meteorological and hydrological), chronologically ranked. In the training stage, the four input parameters (Figure 8) and the output parameter (predicted water temperature) are used. In the testing stage, only the four input parameters are used, with the output parameter (predicted water temperature) being computed.
The matrix stores the actual daily data as well as the forecasted data. The data lag is used to obtain the forecast with a specified delay. The parameters (I1, I2, I3) are the terms of the matrix corresponding to the values of the actual day. The parameter I4 and the output O (the forecasted ones) are terms of the matrix corresponding to a day in the future, specified by the data lag.
The Scilab open software (version 6.0.1) [44] was used to develop the ANN forecast model. The feedforward backpropagation simulation was performed in two steps. For the ANN training and weights computation the ann_ffbp_init(N,r) function was used, while for the ANN run and temperature prediction the ann_FFBP_run(X,W) function was used. Figure 9 and Figure 10 present the flowcharts for the ANN training with the feedforward backpropagation algorithm and the ANN prediction steps.

2.5. Input Data for the ANN Model

The input data for the ANN model consists of 2919 daily mean values for each of the three parameters (air and water temperature and discharge; Figure 3, Figure 4 and Figure 5), spanning 8 years.
To test the prediction capability of the model, a data lag of seven days was considered feasible for a river like the Danube, since seven days is a threshold between short- and long-term forecasting of air temperature. Beyond this threshold, the prediction accuracy drops significantly [45,46].
The available data were split into two different sets: 80% (2335 values) for training and the remaining 20% (584 values) for testing. The 80% used for training were selected as the first ones from the investigated 8-year period, since they contained the whole range of discharge and temperature data. The normalized input data were computed using
x k N = x k x M I N x M A X x M I N ,
where x k N is the normalized value, and x M I N and x M A X are the minimum and maximum values of x k , respectively, from the entire study period. The interval ranges for the considered variables were obtained from the available data: (0.1–28.4) °C for the Danube water temperature; (−16.22 to 31.82) °C for air temperature; and (2120–14,600) m3/s for the discharge.
Figure 11 and Figure 12 depict the normalized variation with respect to time for each of the considered values for training.
The discharge presents a much more pronounced variability over the study period as compared to the air and water temperatures.

2.6. Simple Statistical Models for Danube River Temperature Prediction

To estimate the accuracy and the usefulness of the ANN model, four simple models were used.

2.6.1. Statistical Model 1

The predicted water temperature is assumed to have the same value as the actual river water temperature, and therefore the linear dependence is identified by the first bisection line:
t P = t M
where t P is the predicted water temperature considering the given lag time, in °C, and t M is the actual measured water temperature, in °C.
The model does not consider the influence of air temperature and discharge variations during the lag time period (a week).

2.6.2. Statistical Model 2

The predicted water temperature is also assumed to have a linear dependence, given by
t P = a 0 _ 2 + a 1 _ 2 · t M ,
where a 0 _ 2 and a 1 _ 2 are the intercept and the slope that define the linear regression.
Also, the model neglects the air temperature and discharge variability.

2.6.3. Statistical Model 3

The water temperature variation linearly depends on the air temperature variation:
t w = a 0 _ 3 + a 1 _ 3 · t a i r ,
where a 0 _ 3 and a 1 _ 3 are the coefficients that define the linear regression line, and t a i r is the air temperature variation, defined by
t a i r = t P _ a i r t M _ a i r ,
where t P _ a i r is the predicted air temperature, in °C, and t M _ a i r is the actual measured air temperature, in °C.
Using Equations (8) and (9), the predicted water temperature, in °C, is
t P = t M + t w ,
The model neglects the discharge variation during the lag time period (a week).

2.6.4. Statistical Model 4

The water temperature change is calculated by multiple linear regression, depending on air temperature and discharge variations:
t w _ 4 = a 0 _ 4 + a 1 _ 4 · t a i r + a 2 _ 4 · Q ,
where a 0 _ 4 , a 1 _ 4 , and a 2 _ 4 are the coefficients that define the multiple linear regression, and Q is the discharge, in m3/s.
The predicted water temperature results from adding the water temperature variation t w _ 4 to the actual water temperature t M , similar to (11).

2.7. Evaluation Metrics

To evaluate the model performance, the following indicators were used:
  • The correlation coefficient (R):
R = n t M i · t P i t M i · t P i n t M i 2 t M i 2 · n t P i 2 t P i 2
where t M i , t P i —measured and predicted water temperatures, in °C; n —the number of values;
  • The root mean square error (RMSE),
    R M S E = t M i t P i 2 n ,
    representing the standard deviation of the predicted value;
  • The root mean square error corresponding to a confidence level of 95% (RMSE 95%):
    R M S E   95 % = 2 · R M S E .

3. Results and Discussion

A linear regression algorithm was used to assess the prediction accuracy of the water temperature during the training and validation steps.
As the ANN model uses normalized values, the resulting values are presented both as normalized and dimensional values. Relation (6) was used for normalizing the input parameters and conversely to obtain the dimensional value of the output water temperature.

3.1. Results of the Training Stage of the ANN Danube Water Temperature Model at Chiciu–Călărași

As shown by the equations in Figure 13 (normalized temperature values) and Figure 14 (temperature values), a very good correlation is established between the input (measured) temperatures, y M , and the predicted ones, y P , one week later. The two values are almost equal, and the Pearson correlation coefficient has a very high value, R = 0.993, showing that the regression is statistically significant. The prediction regression line fits on the bisection line, y P , getting very close to y M .
For the training stage the standard deviation of the water temperatures predicted values, the RMSE, is 0.954 °C, showing that the model has a good performance. Considering a 95% confidence level, the RMSE is 1.908 °C.

3.2. Results of the Testing Stage of the ANN Danube Water Temperature Model at Chiciu–Călărași

Similar results were obtained by evaluating the model’s prediction capability when inputting new data. The equations in Figure 15 and Figure 16 (normalized temperature values and temperature values, respectively) show an even better correlation between the measured and predicted temperatures 7 days later. The data fit close to the bisection line, with a Pearson correlation coefficient of R = 0.995.
In Figure 15, the regression line presents a deviation from the bisection, one that increases with increasing temperature.
The predicted water temperatures a week later mimic the actual measured data, as depicted in Figure 17. They fall within 68% and 95% confidence intervals, corresponding to RMSEs of 0.803 °C and 1.606 °C, respectively. The small values of the standard deviation of the predicted values show the small differences between the predicted and the actual water temperatures values.

3.3. Comparison of the Testing Stage of the ANN Danube Water Temperature Model with Simple Statistical Models

Table 1 presents the results provided by the ANN model and simple statistical models. For each model, the correlation coefficient (R) and the root mean square deviation at confidence levels of 68% and 95% (RMSE and RMSE 95%) are computed, with the ANN showing the highest performance.
The findings show that the ANN model outperforms all the other statistical models, having the highest R and the lowest RMSE. Among the statistical models, a better performance is obtained if only water temperature or if water temperature and discharge are considered. This can be attributed both to the high thermal inertia of water and to the large and unpredictable air temperature variations from one week to another. The weak correlation between the water and air temperature variation leads to a high RMSE.
In Table 2, a comparison is made between the ANN Danube Water Temperature Model performance and other models from the scientific literature.
The values of the correlation coefficient and the mean square root error obtained with the ANN developed in this paper fall in the range of the values specified in the scientific literature, indicating a good performance among the other models.

4. Conclusions

The paper proposes an ANN model to estimate the Danube River Temperature at Chiciu–Călărași, located in the vicinity of many sensitive ecological areas (nature reserves) in Romania and Bulgaria. The temperature trend in this location was found by previous research to show a significant increase over the last sixteen years. If this trend continues, the thermal pollution potential will increase, which in turn will impact both aquatic and terrestrial ecosystems.
Moreover, due to the downstream proximity of Cernavoda nuclear power plant and its expected extension with two new units in the near future, two important risks arise. Firstly, the increased temperature of the water supplied as cooling water to the power plant could be ineffective in providing the necessary steam condensing pressure in the condenser. Secondly, the thermal pollution of the river will be worsened due to the heated water released from the power plant condenser. Therefore, knowing the water temperature a few days in advance will allow the power plant operators to take informed decisions.
The study used an eight-year data range, between 2008 and 2015. The input data consisted of observed air and water temperatures, discharges, and air temperature data provided by weather forecasts. The model ANN used to predict the Danube water temperature is based on the Levenberg–Marquardt feedforward backpropagation algorithm. The output of the ANN model is the forecasted Danube water temperature one week in advance. The water temperature was estimated with a root mean square deviation (RMSE) of 0.954 °C for training and 0.803 °C for testing.
The ANN Danube Water Temperature Model predicts the water temperature with good accuracy with a lag time of one week. This result is an encouraging start for extending the ANN model to include more parameters that can have a significant influence on water temperature. The method can also be tested for monitoring stations on other rivers, provided similar data sets are available.

Author Contributions

Conceptualization, C.-S.I., I.O. and D.-E.G.N.; methodology, C.-S.I. and D.-E.G.N.; software, I.O.; validation, I.O.; formal analysis, D.-E.G.N.; investigation, C.-S.I. and I.O.; resources, D.-E.G.N.; writing—original draft, C.-S.I., I.O. and D.-E.G.N.; writing—review and editing, C.-S.I., I.O., D.-E.G.N. and C.-A.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Restrictions apply to the data sets used in this article: air temperature data are available from Open Weather under commercial conditions; river water temperature data are available from edelta.ro website; discharges were provided by the National Administration “Romanian Waters” are not readily available because they are part of an ongoing study.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Caissie, D. The thermal regime of rivers: A review. Freshw. Biol. 2006, 51, 1389–1406. [Google Scholar] [CrossRef]
  2. Stephen, J.D.; David, M.H.; Iain, A.M. River temperature modelling: A review of process-based approaches and future directions. Earth-Sci. Rev. 2017, 175, 97–113. [Google Scholar]
  3. IPCC. Climate Change 2023: Synthesis Report. Contribution of Working Groups I, II and III to the Sixth Assessment Report of the Intergovernmental Panel on Climate Change; Core Writing Team, Lee, H., Romero, J., Eds.; IPCC: Geneva, Switzerland, 2023; pp. 35–115. [Google Scholar]
  4. NASA. Global Temperatures. Available online: https://climate.nasa.gov/vital-signs/global-temperature/?intent=121 (accessed on 28 November 2024).
  5. Qiu, R.; Wang, Y.; Rhoads, B.; Wang, D.; Qiu, W.; Tao, Y.; Wu, J. River water temperature forecasting using a deep learning method. J. Hydrol. 2021, 595, 126016. [Google Scholar] [CrossRef]
  6. Sarker, I.H. AI-Based Modeling: Techniques, Applications and Research Issues Towards Automation, Intelligent and Smart Systems. SN Comput. Sci. 2022, 3, 158. [Google Scholar] [CrossRef] [PubMed]
  7. Abdi, R.; Rust, A.; Hogue, T.S. Development of a Multilayer Deep Neural Network Model for Predicting Hourly River Water Temperature from Meteorological Data. Front. Environ. Sci. 2021, 9, 738322. [Google Scholar] [CrossRef]
  8. Zhu, S.; Piotrowski, A.P. River/stream water temperature forecasting using artificial intelligence models: A systematic review. Acta Geophys. 2020, 68, 1433–1442. [Google Scholar] [CrossRef]
  9. Zhu, S.; Heddam, S.; Wu, S.; Dai, J.; Jia, B. Extreme learning machine-based prediction of daily water temperature for rivers. Environ. Earth Sci. 2019, 78, 202. [Google Scholar] [CrossRef]
  10. Zhi, W.; Klingler, C.; Liu, J.; Li, L. Widespread deoxygenation in warming Rivers. Nat. Clim. Chang. 2023, 13, 1105–1113. [Google Scholar] [CrossRef]
  11. Chen, J.; Xue, X. A transfer learning-based long short-term memory model for the prediction of river water temperature. Eng. Appl. Artif. Intell. 2024, 133, 108605. [Google Scholar] [CrossRef]
  12. Sun, J.; Di Nunno, F.; Sojka, M.; Ptak, M.; Luo, Y.; Xu, R.; Xu, J.; Luo, Y.; Zhu, S.; Granata, F. Prediction of daily river water temperatures using an optimized model based on NARX networks. Ecol. Indic. 2024, 161, 111978. [Google Scholar] [CrossRef]
  13. Heddam, S.; Merabet, K.; Difi, S.; Kim, S.; Ptak, M.; Sojka, K.; Zounemat-Kermani, M.; Kisi, O. River water temperature prediction using hybrid machine learning coupled signal decomposition: EWT versus MODWT. Ecol. Inform. 2023, 78, 102376. [Google Scholar] [CrossRef]
  14. Corona, C.R.; Hogue, T.S. Machine Learning in Stream/River Water Temperature Modelling: A review and metrics for evaluation. Hydrol. Earth Syst. Sci. Discuss, 2024; in review. [Google Scholar] [CrossRef]
  15. Xu, T.; Liang, F. Machine learning for hydrologic sciences: An introductory overview. Wiley Interdiscip. Rev. Water 2021, 9, e1533. [Google Scholar] [CrossRef]
  16. Pekárová, P.; Bajtek, Z.; Pekár, J.; Výleta, R.; Bonacci, O.; Miklánek, P.; Belz, J.U.; Gorbachova, L. Monthly stream temperatures along the Danube River: Statistical analysis and predictive modelling with incremental climate change scenarios. J. Hydrol. Hydromech. 2023, 71, 382–398. [Google Scholar] [CrossRef]
  17. Bonacci, O.; Žaknić-Ćatović, A.; Roje-Bonacci, T.; Prohaska, S.; Bonacci, D.; Ćatović, S. Air and Water Temperature Trend Analysis at the Confluence of the Sava and Danube Rivers in Belgrade, Serbia. Pure Appl. Geophys. 2024, 181, 2895–2912. [Google Scholar] [CrossRef]
  18. Briceno Medina, L.; Joehnk, K.; Deo, R.C.; Ali, M.; Prasad, S.S.; Downs, N. Forecasting River Water Temperature Using Explainable Artificial Intelligence and Hybrid Machine Learning: Case Studies in Menindee Region in Australia. Water 2024, 16, 3720. [Google Scholar] [CrossRef]
  19. Zhu, S.; Nyarko, E.K.; Hadzima-Nyarko, M. Modelling daily water temperature from air temperature for the Missouri River. PeerJ 2018, 6, e4894. [Google Scholar] [CrossRef]
  20. Mosavi, A.; Salimi, M.; Faizollahzadeh, A.S.; Rabczuk, T.; Shamshirband, S.; Varkonyi-Koczy, A. State of the art of machine learning models in energy systems, a systematic review. Energies 2019, 12, 1301. [Google Scholar] [CrossRef]
  21. Chakraborty, A.; Lahiri, S.N.; Wilson, A. A statistical analysis of noisy crowdsourced weather data. Ann. Appl. Stat. 2020, 14, 116–142. [Google Scholar] [CrossRef]
  22. Bimpas, A.; Violos, J.; Leivadeas, A.; Varlamis, I. Leveraging pervasive computing for ambient intelligence: A survey on recent advancements, applications and open challenges. Comput. Netw. 2024, 239, 110156. [Google Scholar] [CrossRef]
  23. Shaik, N.B.; Pedapati, S.R.; Taqvi, S.A.A.; Othman, A.R.; Dzubir, F.A.A. A feed-forward back propagation neural network approach to predict the life condition of crude oil pipeline. Processes 2020, 8, 661. [Google Scholar] [CrossRef]
  24. Ionescu, C.S.; Opris, I.; Gogoașe Nistoran, D.-E.; Copilău, C. A Simple Artificial Neural Model to Predict Dambovita River Temperature Affected by Urban Heat Islands in Bucharest City. Remote Sens. 2024, 16, 1513. [Google Scholar] [CrossRef]
  25. Piotrowski, A.P.; Napiorkowski, M.J.; Napiorkowski, J.J.; Osuch, M. Comparing various artificial neural network types for water temperature prediction in rivers. J. Hydrol. 2015, 529, 302–315. [Google Scholar] [CrossRef]
  26. Gogoașe Nistoran, D.E.; Marin, A.F.; Ionescu, C.S.; Armaș, I.; Tudor, G.M.; Cozma, A. Hydro-Sedimentary Modeling and Fluvial Morphological Processes along the Lower Danube River (Giurgiu–Oltenița-Călărași reach). In The Lower Danube River: Hydroenvironmental Issues and Sustainability; Negm, A., Zaharia, L., Ioana-Toroimac, G., Eds.; Earth and Environmental Sciences Library; Springer: Cham, Switzerland, 2022; Chapter 3; pp. 69–111. [Google Scholar] [CrossRef]
  27. Qiu, R.; Wang, Y.; Wang, D.; Qiu, W.; Wu, J.; Tao, Y. Water temperature forecasting based on modified artificial neural network methods: Two cases of the Yangtze River. Sci. Total Environ. 2020, 737, 139729. [Google Scholar] [CrossRef]
  28. Heddam, S. Multi-step Ahead Forecasting of River Water Temperature Using Advance Artificial Intelligence Models: Voting Based Extreme Learning Machine Based on Empirical Mode Decomposition. In Computational Intelligence for Water and Environmental Sciences; Bozorg-Haddad, O., Zolghadr-Asli, B., Eds.; Studies in Computational Intelligence; Springer: Singapore, 2022; Volume 1043. [Google Scholar] [CrossRef]
  29. Gogoaşe Nistoran, D.E.; Ionescu, C.S.; Opriș, I. Models to estimate river temperature. Example for Danube, at Oltenița in the context of climate change and anthropic impact. E3S Web Conf. 2021, 286, 04003. [Google Scholar] [CrossRef]
  30. Nistoran, D.G.; Ionescu, C.; Pǎtru, G.; Armaş, I.; Grigorie Omrani, Ş.G. One Dimensional Sediment Transport Model to Assess Channel Changes along Olteniţa-Cǎlǎraşi Reach of Danube River, Romania. Energy Procedia 2017, 112, 67–74. [Google Scholar] [CrossRef]
  31. Dunea, D.; Brețcan, P.; Șerban, G.; Tanislav, D.; Țuchiu, E.; Iordache, Ș. Water Temperature Variability in the Lower Danube River. In The Lower Danube River; Negm, A., Zaharia, L., Ioana-Toroimac, G., Eds.; Earth and Environmental Sciences Library; Springer: Cham, Switzerland, 2022. [Google Scholar] [CrossRef]
  32. Openweather. Available online: https://openweather.co.uk/products/historical-weather-collection (accessed on 28 November 2024).
  33. eDelta. Delta Dunarii Pentru Pescari Si Turisti. Available online: https://edelta.ro/ (accessed on 28 November 2024).
  34. Sumayyabeevi, V.A.; Poovely, J.J.; Aswathy, N.; Chinnu, S. A New Hardware Architecture for FPGA Implementation of Feed Forward Neural Networks. In Proceedings of the 2021 2nd International Conference on Advances in Computing, Communication, Embedded and Secure Systems (ACCESS), Ernakulam, India, 2–4 September 2021; pp. 107–111. [Google Scholar] [CrossRef]
  35. Prashanthi, A.; Reddy, R.R. A Feed-Forward and Back Propagation Neural Network Approach for Identifying Network Anomalies. In Proceedings of the 2023 International Conference for Advancement in Technology (ICONAT), Goa, India, 24–26 January 2023; pp. 1–6. [Google Scholar]
  36. Bebis, G.; Georgiopoulos, M. Feed-forward neural networks. IEEE Potentials 1994, 13, 27–31. [Google Scholar] [CrossRef]
  37. Wilamowski, B.M.; Yu, H. Improved Computation for Levenberg Marquardt Training. IEEE Trans. Neural Netw. 2010, 21, 930–937. [Google Scholar] [CrossRef] [PubMed]
  38. Yagli, G.M.; Yang, D.; Srinivasan, D. Automatic hourly solar forecasting using machine learning models. Renew. Sustain. Energy Rev. 2019, 105, 487–498. [Google Scholar] [CrossRef]
  39. Meza, J.C. Steepest descent. WIREs Comput. Stat. 2010, 2, 719–722. [Google Scholar] [CrossRef]
  40. Sushmi, N.B.; Subbulekshmi, D. Performance Analysis of FFBP-LM-ANN Based Hourly GHI Prediction Using Environmental Variables: A Case Study in Chennai. Math. Probl. Eng. 2022, 2022, 1713657. [Google Scholar] [CrossRef]
  41. Briciu, A.-E.; Mihăilă, D.; Graur, A.; Oprea, D.I.; Prisăcariu, A.; Bistricean, P.I. Changes in the Water Temperature of Rivers Impacted by the Urban Heat Island: Case Study of Suceava City. Water 2020, 12, 1343. [Google Scholar] [CrossRef]
  42. Jallal, M.A.; Chabaa, S.; Zeroual, A. Half-hour global solar radiation forecasting based on static and dynamic multivariate neural networks. J. Eng. Res. 2021, 9, 203–217. [Google Scholar] [CrossRef]
  43. Pourpasha, H.; Farshad, P.; Zeinali, S.H. Modeling and optimization the effective parameters of nanofluid heat transfer performance using artificial neural network and genetic algorithm method. Energy Rep. 2021, 7, 8447–8464. [Google Scholar] [CrossRef]
  44. Scilab. Version 6.0.1. Available online: https://www.scilab.org/ (accessed on 28 November 2024).
  45. Frnda, J.; Durica, M.; Nedoma, J.; Zabk, S.; Martinek, R.; Kostelansky, M. A Weather Forecast Model Accuracy Analysis and ECMWF Enhancement Proposal by Neural Network. Sensors 2019, 19, 5144. [Google Scholar] [CrossRef] [PubMed]
  46. Sterna, H.; Davidson, N.E. Trends in the skill of weather prediction at lead times of 1–14 days. Q. J. R. Meteorol. Soc. 2015, 141, 2726–2736. [Google Scholar] [CrossRef]
  47. Zhu, S.; Hadzima-Nyarko, M.; Gao, A.; Wang, F.; Wu, J.; Wu, S. Two hybrid data-driven models for modeling water-air temperature relationship in rivers. Environ. Sci. Pollut. Res. 2019, 26, 12622–12630. [Google Scholar] [CrossRef]
Figure 1. Danube River basin with the lower course in Romania.
Figure 1. Danube River basin with the lower course in Romania.
Hydrology 12 00021 g001
Figure 2. Neighbouring Natura 2000 sites in Romania and Bulgaria around Chiciu–Călărași–Silistra.
Figure 2. Neighbouring Natura 2000 sites in Romania and Bulgaria around Chiciu–Călărași–Silistra.
Hydrology 12 00021 g002
Figure 3. Daily air temperature at Chiciu between 2008 and 2015.
Figure 3. Daily air temperature at Chiciu between 2008 and 2015.
Hydrology 12 00021 g003
Figure 4. Daily water flow rate at Chiciu between 2008 and 2015.
Figure 4. Daily water flow rate at Chiciu between 2008 and 2015.
Hydrology 12 00021 g004
Figure 5. Daily water temperature at Călărași between 2008 and 2015.
Figure 5. Daily water temperature at Călărași between 2008 and 2015.
Hydrology 12 00021 g005
Figure 6. ANN architecture to calculate artificial neurons.
Figure 6. ANN architecture to calculate artificial neurons.
Hydrology 12 00021 g006
Figure 7. Training selection algorithm of the ANN model.
Figure 7. Training selection algorithm of the ANN model.
Hydrology 12 00021 g007
Figure 8. ANN prediction model for the Danube River temperature.
Figure 8. ANN prediction model for the Danube River temperature.
Hydrology 12 00021 g008
Figure 9. Flowchart for the ANN feedforward backpropagation training step.
Figure 9. Flowchart for the ANN feedforward backpropagation training step.
Hydrology 12 00021 g009
Figure 10. Flowchart for the ANN prediction step.
Figure 10. Flowchart for the ANN prediction step.
Hydrology 12 00021 g010
Figure 11. Normalized air and water temperatures input into the ANN training model.
Figure 11. Normalized air and water temperatures input into the ANN training model.
Hydrology 12 00021 g011
Figure 12. Normalized discharge input into the ANN training model.
Figure 12. Normalized discharge input into the ANN training model.
Hydrology 12 00021 g012
Figure 13. Linear regression to evaluate the ANN training—normalized values.
Figure 13. Linear regression to evaluate the ANN training—normalized values.
Hydrology 12 00021 g013
Figure 14. Linear regression to evaluate the ANN training—temperature values.
Figure 14. Linear regression to evaluate the ANN training—temperature values.
Hydrology 12 00021 g014
Figure 15. Linear regression to evaluate the ANN testing—normalized values.
Figure 15. Linear regression to evaluate the ANN testing—normalized values.
Hydrology 12 00021 g015
Figure 16. Linear regression to evaluate the ANN prediction for water temperature a week later (ANN testing stage).
Figure 16. Linear regression to evaluate the ANN prediction for water temperature a week later (ANN testing stage).
Hydrology 12 00021 g016
Figure 17. Measured and computed temperatures given using the ANN model for the tested time interval.
Figure 17. Measured and computed temperatures given using the ANN model for the tested time interval.
Hydrology 12 00021 g017
Table 1. Statistical metrics of prediction water temperature models.
Table 1. Statistical metrics of prediction water temperature models.
Model Predicted Water Temperature, in °CR
[-]
RMSE [°C]
ANN t P = A N N t M , t M _ a i r , Q M , t P _ a i r 0.9950.803
Model 1 t P = t M 0.9891.288
Model 2 t P = 0.00119 + 1.02082 t M 0.9891.283
Model 3 t P = t M + 1.231981 2.702 t P _ a i r t M _ a i r 0.57813.159
Model 4 t P = t M + 0.10155 + 0.06295 t P _ a i r t M _ a i r + 0.01168 Q 0.9891.217
Table 2. Comparison of the ANN Danube Water Temperature Model with other models.
Table 2. Comparison of the ANN Danube Water Temperature Model with other models.
ReferenceModelTrainingTesting
RRMSE
[°C]
RRMSE
[°C]
[47]WTAI 10.919–0.9841.127–2.4710.916–0.9801.286–2.350
[11]LSTMTE 20.9310.567 °C0.8450.625 °C
[12]FFNN 3
OPELM 4
AdaBoost 5
Bagging 6
0.938
0.937
0.939
0.941
2.634
2.655
2.618
2.580
0.941
0.942
0.941
0.939
2.605
2.583
2.615
2.660
Danube River ANN modelLMFB 70.9930.9540.9950.803
1 WTAI—integration of wavelet transformation with AI (multilayer perceptron neural network, adaptive neural fuzzy inference); 2 LSTMTE—integration of long short-term memory and transformer encoder; 3 FFNN—feedforward neural network; 4 OPELM—optimally pruned extreme learning machine; 5 AdaBoost—adaptive boosting; 6 Bagging—bootstrap aggregating; 7 LMFB—Levenberg–Marquardt feedforward backpropagation.
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

Ionescu, C.-S.; Opriș, I.; Nistoran, D.-E.G.; Baciu, C.-A. Forecasting Model for Danube River Water Temperature Using Artificial Neural Networks. Hydrology 2025, 12, 21. https://doi.org/10.3390/hydrology12020021

AMA Style

Ionescu C-S, Opriș I, Nistoran D-EG, Baciu C-A. Forecasting Model for Danube River Water Temperature Using Artificial Neural Networks. Hydrology. 2025; 12(2):21. https://doi.org/10.3390/hydrology12020021

Chicago/Turabian Style

Ionescu, Cristina-Sorana, Ioana Opriș, Daniela-Elena Gogoașe Nistoran, and Constantin-Alexandru Baciu. 2025. "Forecasting Model for Danube River Water Temperature Using Artificial Neural Networks" Hydrology 12, no. 2: 21. https://doi.org/10.3390/hydrology12020021

APA Style

Ionescu, C.-S., Opriș, I., Nistoran, D.-E. G., & Baciu, C.-A. (2025). Forecasting Model for Danube River Water Temperature Using Artificial Neural Networks. Hydrology, 12(2), 21. https://doi.org/10.3390/hydrology12020021

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop