
==== Front
PLoS One
PLoS One
plos
PLOS ONE
1932-6203
Public Library of Science San Francisco, CA USA

10.1371/journal.pone.0308266
PONE-D-24-07720
Research Article
Computer and Information Sciences
Artificial Intelligence
Machine Learning
Support Vector Machines
Earth Sciences
Marine and Aquatic Sciences
Bodies of Water
Rivers
Ecology and Environmental Sciences
Aquatic Environments
Freshwater Environments
Rivers
Earth Sciences
Marine and Aquatic Sciences
Aquatic Environments
Freshwater Environments
Rivers
Ecology and Environmental Sciences
Natural Resources
Water Resources
Earth Sciences
Hydrology
Surface Water
Physical Sciences
Mathematics
Operator Theory
Kernel Functions
Research and Analysis Methods
Mathematical and Statistical Techniques
Statistical Methods
Forecasting
Physical Sciences
Mathematics
Statistics
Statistical Methods
Forecasting
Research and Analysis Methods
Mathematical and Statistical Techniques
Mathematical Functions
Earth Sciences
Hydrology
Flooding
Forecasting for Haditha reservoir inflow in the West of Iraq using Support Vector Machine (SVM)
Forecasting for Haditha reservoir inflow using Support Vector Machine
Mahmood Othman A. Methodology Software Validation Visualization Writing – original draft Writing – review & editing 1
https://orcid.org/0000-0001-6240-5685
Sulaiman Sadeq Oleiwi Data curation Project administration Software Supervision Writing – review & editing 1
Al-Jumeily Dhiya Conceptualization Formal analysis Project administration Software 2 *
1 Dams and Water Resources Engineering Department, College Engineering, University of Anbar, Anbar, Iraq
2 Faculty of Engineering and Technology, Liverpool John Moores University, Liverpool, British
Samantaray Sandeep Editor
National Institute of Technology Srinagar, INDIA
Competing Interests: The authors have declared that no competing interests exist.

* E-mail: d.aljumeily@ljmu.ac.uk
6 9 2024
2024
19 9 e030826626 2 2024
18 7 2024
© 2024 Mahmood et al
2024
Mahmood et al
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.

Accurate inflow forecasting is an essential non-engineering strategy to guarantee flood management and boost the effectiveness of the water supply. As inflow is the primary reservoir input, precise inflow forecasting may also offer appropriate reservoir design and management assistance. This study aims to generalize the machine learning model using the support vector machine (SVM), which is support vector regression (SVR), to predict the discharges of the Euphrates River upstream of the Haditha Dam reservoir in Anbar province West of Iraq. Time series data were collected for the period (1986-2024) for the river’s daily, monthly, and seasonal flow. Different kernel functions of SVR were applied in this study. The kernels are linear, Quadratic, and Gaussian (RBF). The results showed that the daily time scale is better than the monthly and seasonal performance. In contrast, the linear kernel outperformed the other SVR kernel with a time delay of one day based on the value of the coefficient of determination (R2 = 0.95) and the root mean square error (RMSE = 53.29) m3/sec for predicting daily river flow. The results showed that the proposed machine learning model performed well in predicting the daily flow of the Euphrates River upstream of the Haditha Dam reservoir; this indicates that the model might effectively forecast flows, which helps improve water resource management and dam operations.

The author(s) received no specific funding for this work. Data AvailabilityAll relevant data are within the manuscript and its Supporting Information files.
Data Availability

All relevant data are within the manuscript and its Supporting Information files.
==== Body
pmcIntroduction

Water flow is the basis of life on Earth and is considered one of the basic needs of living and plant organisms, as well as the prosperity of agriculture and ensuring survival. Rivers are considered one of the primary sources of water on the surface of the Earth. Therefore, it has become necessary to study the quantity of river flow, as it is one of the main factors for achieving sustainable development of water resources issues. These studies include the design of hydraulic facilities and proper planning of water projects, in addition to operating water reservoirs, flood control, and treating droughts. It must be noted that the economic return of any region is directly related to the quantity and quality of water sources in that region. Therefore, we must work to protect and manage water resources well, develop sustainable strategies to provide clean and sustainable water for all and balance the needs of humans and aquatic ecosystems. Recent studies indicate that river flow levels are becoming unstable and are at increasing risk of drying out. Rivers in Iraq, in general, are vulnerable to this risk for several reasons, including climate change and human use of water. Therefore, many studies have been conducted to provide sufficient data to estimate river flow amounts and predict drought. Many hydrological models have been developed to analyze and predict river water flow, giving practical tools for water resource management and sustainable decision-making. These hydrological models are based on a wide range of data, including climate information, past water information, and hydrological system behavior. These models use many equations and variables to estimate water flow and predict drought and are valuable tools for hydrological planning and water resource management under changing conditions. Using these models and sufficient data, those interested in water resources management can analyze and evaluate drought risk and take the necessary measures to deal with it, contributing to the sustainable development of water resources issues. Forecasting future river flows is essential for making decisions in water resource management and water project planning. Future forecasting depends on analyzing past and current variables that describe the hydrological phenomenon to be studied. Accurate river flow prediction has been a significant challenge in flood management and reducing damage and potential threats to life. Accordingly, it is increasingly important to use reliable river flow forecasting methods to enable timely and effective planning of water resource use [1]. Accurate river flow prediction can be essential in water resource planning and management. However, many complex factors influence this phenomenon, making it challenging to analyze [2]. Therefore, it becomes necessary to incorporate the influencing factors into a model that can estimate river flow with acceptable accuracy [3]. Currently, intelligent systems are widely used to estimate nonlinear phenomena, and one of the methods used in hydrology is the support vector machine model (SVM). The support vector machine (SVM) model is effective, and optimization algorithms have been developed in recent years to improve its performance, increase its accuracy, and reduce the error rate in river flow prediction. Accurate river flow forecasting can be achieved using the SVM model, and this information can be used in planning and water resource management processes. The SVM model can be applied in hydrological analyses to improve river flow prediction and achieve more accurate results. It is important to note that using advanced models such as SVM requires consideration of optimizing algorithms and tuning parameters and providing sufficient and appropriate training data to achieve the best model performance in river flow prediction. Forecasting river discharges enhances sustainability, reduces the negative impacts of floods and droughts, and improves water resources management and environmental planning. It also supports strategic decision-making in risk management and planning for the future, enhancing water resources’ sustainability and balancing the diverse water needs of different communities and sectors [4]. Many researchers have used artificial intelligence techniques, including support vector machines, to predict future river discharges in other regions. A study used a support vector machine (SVM) model to forecast monthly flow at the Huaxian station in China. The study found that the proposed SVM model accurately predicted monthly flow at the station. The SVM model was trained to estimate future flow patterns by analyzing and utilizing historical monthly flow data. The results demonstrated that the SVM model successfully achieved accurate predictions of monthly flow at the Huaxian station; this indicates that the SVM model can be an effective water resource planning and management tool in the specified area [5]. In a study, artificial neural networks (ANNs) and support vector machine (SVM) models in forecasting storm water runoff in the Roodak watershed northeast of Tehran. Was used 92 Modis sensors to collect data during the statistical period from 2003 to 2005. According to the study, the SVM model showed acceptable performance in estimating rainwater runoff in the mentioned area; this means that the model could predict the amount of water flowing on the surface based on the sensed data [6]. Also, a study compared support vector machines (SVM) and artificial neural networks to predict daily flow in the Cypress River in Texas. The results of the study found that the SVM model outperformed the neural networks, demonstrating superior accuracy. This highlights the effectiveness of SVM in analyzing data and predicting hydrological models [7]. In a study, a support vector machine (SVM) was used to forecast monthly flow. The SVM model’s performance was enhanced by employing principal components analysis (PCA) for preprocessing the input variables. The study demonstrated that incorporating PCA as an optimization technique improved the SVM model’s accuracy in predicting monthly flow; this highlights PCA’s positive impact on enhancing prediction accuracy and the model’s effectiveness in handling data [8]. A study analyzed the Wei River in China to forecast 10-day inflows using input factors like inflow, precipitation, relative humidity, minimum and maximum temperature, and precipitation projections. The three methods used in the study were compared using the available data: Artificial Neural Networks (ANN), Support Vector Regression (SVR), and Adaptive Neuro-Fuzzy Inference System (ANFIS). The results indicated that changes in income variables significantly impacted forecast uncertainty. The contribution of data-driven models was limited and varied seasonally, performing better in winter and summer but needing to be more critical in spring and fall [9]. A study was conducted on the Three Gorges Reservoir; the predicted monthly flow using three machine learning models: genetic programming (GP), seasonal autoregressive (SAR), and autoregressive neural kernel (SVR). The RBF was used as the kernel Influential in the SVR model. The results showed that the performance of the SVR and GP models improves when coupled with independent principal components analysis (SSA) for flow series forecasting [10]. A study conducted in the Sutami Watershed in Indonesia used a Wavelet Support Vector Machine (WSVM) with an adapted RBF kernel to predict flow in the reservoir. WSVM is a machine learning model based on wavelet support, a technique used for classification and prediction. The RBF (Radial Basis Function) kernel has been adapted in the model to improve its performance in flow prediction. The results showed that the WSVM model better predicted the inflow into the reservoir using the RBF kernel [11]. In a study, a support vector machine (SVM) model was used to forecast lake water levels. It compared with a multilayer perceptual (MLP) model and a multiplicative seasonal autoregressive (SAR) model. The results of the SVM forecast were found to be more accurate than the other two models in predicting lake water levels for several months. These results suggest that support vector machine (SVM) models can be effective in predicting lake water levels [12]. A study used the Muskingum model to predict floods in the United States of America and the United Kingdom. A combination of a hybrid of the bat algorithm (BA) and the particle swarm optimization (PSO) algorithm, i.e., the hybrid bat-swarm algorithm (HBSA) was used. The results showed that the Muskingum model represented by (HBSA) achieved excellent performance compared to other methods based on the squared deviations (SSD), the sum of the absolute deviations (SAD), the peak discharge error, and the time-to-peak error [13]. A study used the Adaptive Neuro-Fuzzy Inference System (ANFIS) model to study the case of the influence of climate on monthly flow in the Aydoughmoush basin in Iran for the period 1987 - 2007. The bat algorithm (BA), particle swarm optimization (PSO), and Genetic Algorithm (GA) were used to obtain the ANFIS parameter and obtain the best ANFIS structure. The results showed better climate index performance with six months’ delays. The study indicated that ANFIS-BA obtained better results than ANFIS-PSO and ANFIS-GA, with a root mean square error (RMSE) of 25% and 30% less than ANFIS-PSO and ANFIS-GA, respectively [14]. A study used the Support Vector Machine Method (SVM) at meteorological stations in Mosul and Baghdad. It analyzed different weather variables and found the SVM method successfully predicted wind speed, rainfall amounts, and humidity at the Mosul station (R2 = 0.92). These variables can improve the accuracy of weather forecasts in the region [15]. In a study, was used two artificial intelligence models to predict subsurface evaporation rates, represented by the generalized neural network model for regression and the neural network for the radiative basis function. The model’s input variables for this model include temperature, wind speed, humidity, and water depth. The applied models utilize actual hydrological and climatological in an arid region in the Iraqi Western Desert for two soil types. The results showed that the neural network model (ANN) could accurately predict subsurface reservoir evaporation based on the correlation coefficient, which reached (0.936) for fine gravel soil and (0.959) for coarse gravel soil [16]. A study used a deep learning model to predict river courses on data from the Tigris River in Iraq. Two methods were used to collect samples: linear deep learning (LDL) and stratified deep learning (SDL) in deep learning algorithms. The results indicated that stratified deep learning (SDL) improves accuracy by approximately 7.96-94.6 concerning several evaluation criteria. Thus, it is worth noting that SDL outperforms (LDL) in monthly streamflow modelling [17].

This study aims to use artificial intelligence with an SVM model to predict the discharge of the Euphrates River upstream of the Haditha Dam and improve water resources management and dam operations. The study uses historical data on the discharge of the Euphrates River upstream of Haditha Dam and information about flow behavior and the impact of the recently constructed dams in upstream countries. Also, this study aims to analyze and evaluate the relationship between the river’s daily, monthly, and seasonal discharges and the effect of previous values on predicting and better understanding the behavior of the water drainage system.

Materials and methods

Study area

The Euphrates River is considered the primary water source in Anbar, Iraq, as most of the governorate’s cities are located on its banks and depend on the river’s water for their municipal, industrial, and agricultural needs [18]. The Euphrates River is an international river that passes through Turkey, Syria, and Iraq. The length of the Euphrates River in the governorate is about 450 km, representing 43% of the total length inside Iraq (1,160 km) and 17% of the entire length of the river from its source in Turkey to the mouth of the river. The Euphrates River enters Iraqi territory at Al-Qaim in Anbar Governorate. It constitutes a vital artery for the governorate’s economic, industrial, and agricultural life. The Euphrates River in Anbar province feeds many agricultural areas, contributes to producing essential crops such as wheat, barley, and corn, and provides drinking water for the governorate’s residents [19]. Therefore, maintaining regular flow levels in the Euphrates River downstream of Haditha Dam is essential to ensuring Iraq’s future development. The Euphrates River and the Haditha Dam reservoir are located between latitudes (34° 40’ and 34° 13’) north and longitudes (42° 26’ and 41° 55’) east. The highest flood water level for the reservoir and the river is at level 147 and covers about 500 km2 with 10 km of shoreline [20]. Fig 1 shows the Euphrates River upstream of the Haditha Dam reservoir in Anbar Governorate, western Iraq [21]. The Euphrates River in Anbar faces many challenges. The biggest challenge is the continuous decline in river flow due to dams built in Turkey and Syria, which negatively affects agriculture and hydroelectric energy production. The Euphrates River in Anbar suffers from pollution due to industrial and agricultural sewage, which affects the quality of the river’s water and the population’s health [22]. The Euphrates River is suffering from a decrease in discharge due to climate change and the upstream countries [23]. The river witnessed a decline in its water revenues by up to 30% after Iraq’s neighboring countries began implementing development projects and building dams at the river’s sources, especially in Turkey. As a result, the annual yield of the Euphrates River decreased from 30 billion cubic meters annually to 17 billion cubic meters annually. If the upstream countries continue to implement these projects and complete all plans, revenues reaching Iraq will gradually decrease to 24% by 2035; this indicates that Iraq will be significantly affected by these development projects and dams built on the Euphrates River, which will affect water availability and its future needs. Due to its importance in light of these conditions to which Iraq is exposed in terms of drought, the Euphrates River was chosen, which constitutes a large part of the water sources in Iraq, precisely the provider of the Haditha Dam reservoir, which is considered the only dam on this river, and all Iraqi cities derive their municipal and industrial water and agriculture from the water of this river.

10.1371/journal.pone.0308266.g001 Fig 1 The red circle indicates the location of the study area, the Haditha Dam reservoir location in Iraq [21].

Data used

The study relied on the discharges of the Euphrates River at the Husaybah hydrological station, one of the main old stations in Iraq located on the river in Al-Qaim town, west of Anbar Governorate. Time series data on daily discharges from the Haditha Dam Project Administration - the General Authority for Dams and Reservoirs of the Iraqi Ministry of Water Resources (unpublished data) were collected from 1985 - 2024. It was observed that the highest value of discharges was (3361) m3/s in 1988, while the lowest was (50) m3/s in 2015. Daily time series data of the river was used, then converted to monthly and seasonal data. Table 1 shows the statistical characteristics of the river’s discharge series, while (Fig 2) shows the time series of daily river discharges.

10.1371/journal.pone.0308266.g002 Fig 2 Time series of daily discharges of the Euphrates River.

10.1371/journal.pone.0308266.t001 Table 1 Statistical characteristics of drainage data for the study area.

Statistics	Years	Max.	Min.	Mean	S.D	
Daily (m 3 /sec)	Whole data set	1985-2024	3361	50	551.2	369.25	
Training & Validation data set	1985-2012	3361	75	604.02	405.35	
Testing data set	2012-2024	1600	50	432.25	230.06	
Monthly (m 3 /sec)	Whole data set	1985-2024	2984	97	551.08	347.1	
Training & Validation data set	1985-2012	2984	159	607.15	378.94	
Testing data set	2012-2024	964	97	422.3	207.22	
Seasonal (m 3 /sec)	Whole data set	1985-2024	3459	105	551.25	319.52	
Training & Validation data set	1985-2012	2459	214	607.44	346.2	
Testing data set	2012-2024	897	105	426.48	196.18	

Support Vector Machine (SVM)

Support vector machine (SVM) refers to supervised learning techniques that examine data and identify patterns for regression analysis and classification. The SVM learning system uses a hypothesis space of linear functions in a high-dimensional feature space. It is taught using an optimization theory-derived learning algorithm that applies a learning bias from statistical learning theory [24]. Vapnik [25] presented this learning technique as implementing the structural risk reduction concept. The hyperplane level and Lagrange multipliers, two crucial factors that significantly impact classification accuracy, are the foundation of the Support Vector Machine (SVM) model. The underlying data is represented in the input space, where the classification process is carried out. A hyperplane is defined as a boundary between different categories or groups in the data. This level is determined based on the characteristics and information extracted from the training data. In addition, support machine models (SVMs) use Lagrange multipliers to achieve optimal cutoffs between classes. These multipliers are adjusted based on data characteristics and desired performance expectations. The support vector machine (SVM) effectively deals with various problems, including classifying data in a nonlinear space. This technique defines cutoffs in a way that minimizes classification error and enhances the overall accuracy of the analytical model. An appropriate linear separator that best separates the data into two classes is found through the SVM algorithm. The separator is the super level that maximizes the margin between the supporting data and the remaining errors. The margin is defined as the distance between the hyperplane and the nearest data points, and these points are called support points. SVM is used in wide applications in artificial intelligence, such as future predictions of flood discharges of rivers evaporation from lakes. This technique has achieved great success in many fields. However, SVM must be trained and parameterized with an extensive data set to achieve satisfactory performance. The SVM model requires careful selection of parameters such as kernel type and setting of parameter values. It may be difficult to specify these parameters appropriately, and trial and repeated adjustment may be required to obtain optimal performance. The SVM model requires careful selection of parameters such as kernel type and setting of parameter values. It may be difficult to specify these parameters appropriately, and trial and repeated adjustment may be required to obtain optimal performance. When dealing with large datasets, SVM model training can be expensive in terms of time and resources. Getting quick results may take time in these cases.

Consider regression within the collection of linear functions that reflect the data. Eq (1) [26]. f(x)=wTx+b (1)

N is the number of training values, while input xk ∈ Rn and yk ∈ R are the output values.

The following initial problem may then be used to define the optimization problem. MinJ(w,ξ,ξ*)=12wTw+c∑K=1N(ξk+ξk*) (2)

Suchthat{yk−wTxk−b≤ε+ξkwTxk+b−yk≤ε+ξk*ξk,ξk*≥0 (3)

The constant c determines the tolerance level for deviations from the desired ε accuracy, and it is associated with slack variables ξk and ξk* for k = 1, …, N. The issue must first be expressed in Lagrange form, after which the dual problem’s quadratic programming must solve it. The linear function is converted in the double space.

f(x)=∑k=1N(αk+αk*)xkTx+b (4)

With ∑k=1N(αk+αk*)xk and αk+αk* are the Lagrange multipliers. The fundamental weight space model that follows is considered to facilitate SVM predictions for a nonlinear scenario. f(x)=wTϕ(x)+b (5)

Applying the mapping ϕ(x): Rn → Rnh to a high dimensional feature space. The kernel methods have been used in that case, resulting in K (xk, xl) = ϕ(xk)T ϕ(xl) for k = 1,…, N.

Different kernel functions were used in designing the SVM with type space ε. The support model incorporates additional kernel functions such as the polynomial kernel, linear kernel function, and radial basis functions (RBFs) [27], as in Table 2, which were used in this study due to their popularity and wide use. It is worth noting that the vector machine calculations were based on programming in MATLAB, and the parameters were optimized.

K(xi,xj)=(γXiT×Xj+r)d (6)

K(xi,xj)=exp(−||xi−x||σ) (7)

K(xi,x)=XiT×Xj (8)

10.1371/journal.pone.0308266.t002 Table 2 Tuning components for three different kernels in SVR.

Type of kernel functions	Tuning or affecting parameters	
Linear	C	
polynomial kernel	C and γ	
Gausses (RBF)	C, γ and r	

Statistical measurements

Determination coefficient (R2)

Determination coefficient is a measure to evaluate how well a prediction model fits the observed data. It is measures the extent to which the model can explain the variance in observed data. The formula for the coefficient of determination is shown in Eq (9) [28].

R2=[∑i=1n(Qobs−Q¯obs)(Qpre−Q¯pre)∑i=1n(Qobs−Q¯obs)2*∑i=1n(Qpre−Q¯pre)2]2 (9)

Root Mean Square Error (RMSE)

Root Mean Square Error is a measure used to evaluate the accuracy of a data prediction. It is an improvement of the standard square error (MSE) as it takes the square root of the MSE value to bring it into the same unit of measure as the original data. The formula for RMSE is shown in Eq (11) [29].

RMSE=1n∑i=1n(Qobs−Qpre)2 (10)

Mean Absolute Error (MAE)

Mean Absolute Error is a measure used to evaluate the accuracy of a prediction or prediction model. It measures the average of the absolute errors between the predicted values and the actual values in the data set, the formula for MAE is as shown in Eq (11) [30]. MAE=∑i=1n|Qobs−Qpren (11)

Where,

Qobs&Qpre: Value of the observation and predicted discharge data, respectively.

Qobs−&Qpre−: Mean values of observation and prediction discharge data, respectively.

n = number of real data.

Training process

Different training patterns were adopted using the previous values as input to predict the later values, as in Table 3 below. While the (Fig 3) shows the flowchart of the mechanism for predicting future discharges of the Euphrates River upstream of the Haditha Dam reservoir and how to divide, train and test the data using the SVM model.

10.1371/journal.pone.0308266.g003 Fig 3 Flowchart of the prediction mechanism using the SVM model.

10.1371/journal.pone.0308266.t003 Table 3 Different types of inputs and outputs in SVM.

Model	Input combination	Output Variable	
Model-1	Q t−1	Q t	
Model-2	Qt−1.Qt−2	Q t	
Model-3	Qt−1.Qt−2.Qt−3	Q t	
Model-4	Qt−1.Qt−2.Qt−3.Qt−4	Q t	
Model-5	Qt−1.Qt−2.Qt−3.Qt−4.Qt−5	Q t	

Results and discussion

Before the training process, the data was divided into two groups. The first group is the training and calibration group, representing 70% of the river discharge data. The second set is the test set, representing 30% of the river discharge data.

The SVR technique was applied in MATLAB three-time horizons (daily, monthly and seasonal) with different kernels: linear, quadratic, Gaussian or RBF. These kernels were used to find the most accurate kernel. Five models with varying input sets were applied to the three different time horizons, as shown in Table 3. This process aims to study the effect of the response of daily discharges to previous values in predicting subsequent discharges. After completing the training process, the test data was used to make predictions and measure the capacity of time delay prediction; this way, the models can predict future values based on past values. This process aims to analyze and evaluate the relationship between the river’s daily, seasonal and monthly discharges and the impact of previous values on forecasting and better understanding the behavior of the water drainage system. SVR models are developed and compared regarding RMSE and R2, with different kernel functions and designed input parameters. A model that produces lower errors will reflect higher performance in this prediction of reservoir flow. Different kernel parameters were used as tuning parameters to improve the model accuracy. Several tuning or effect parameters are used in the SVR kernel. (Fig 4A) show the results of training the model on daily discharge rates and comparing them with the observed values observed for the same period. (Fig 5A) show the relationship between the observed values and the predicted values for the linear kernel function training phase with a determination factor of R2= 0.96. (Fig 4B) show the results of training the model on monthly predicted rates and comparing them with the observed values for the same period. (Fig 5B) show the relationship between the observed values and the predicted values for the linear kernel function training phase with a determination factor of R2. =0.68. Also, (Fig 4C) show the results of training the model on seasonal discharge rates and comparing them with the observed values for the same period. (Fig 5C) show the relationship between the recorded observed values and the predicted values for the training phase of the quadratic kernel function with a determination factor of R2= 0.21.

10.1371/journal.pone.0308266.g004 Fig 4 Training process of the SVM model for discharges (a) daily, (b) monthly, and (c) seasonal.

10.1371/journal.pone.0308266.g005 Fig 5 R2-value of observed versus predicted flow for the training phase SVM model for discharges (a) daily, (b) monthly, and (c) seasonal.

Table 4 shows the results obtained from training the models and verifying their performance on the daily river discharges based on several successive time delays shown in Table 3. After analyzing the results, it was concluded that the linear kernel outperformed the other kernels (Quadratic and Gaussian) in predicting the daily data rate using a one-day time delay. This superiority was measured using significant statistical performance measures, namely the coefficient of determination (R2), the root mean square error (RMSE) and mean absolute error (MAE). The value of (R2) for the linear kernel in the testing phase was equal to (0.95), as in the (Fig 6A), which means that it achieved the highest ability to agree between predicted values and observed values compared to other kernels, as in the (Fig 7A). The value of (RMSE) in the testing phase was equal to (53.29) m3/sec, the lowest value among the compared kernels, indicating higher prediction accuracy and less deviation between the predicted values and the observed values. While the MAE was Value equal to (33.26) m3/sec. Based on these results, it can be concluded that the linear kernel outperforms other kernels in using a 1-day time delay to predict the daily data rate.

10.1371/journal.pone.0308266.g006 Fig 6 R2 value of observed versus predicted flow for the testing phase SVM model for discharges (a) daily, (b) monthly, and (c) seasonal.

10.1371/journal.pone.0308266.g007 Fig 7 Time series of observation and predicted discharges for the model SVR on discharges (a) daily, (b) monthly, and (c) seasonal.

10.1371/journal.pone.0308266.t004 Table 4 Indicators for evaluating daily discharge performance of SVM kernel functions.

Model	Train	Test	
R2	RMSE	MAE	R2	RMSE	MAE	
Linear	Model-1	0.96	88.07	54.39	0.95	53.29	33.26	
Model-2	0.95	88.33	54.09	0.945	54.05	33.86	
Model-3	0.95	87.55	53.37	0.945	54.2	33.66	
Model-4	0.95	87.41	53.35	0.945	53.83	33.49	
Model-5	0.95	87.01	53.08	0.945	54.01	33.54	
Quadratic	Model-1	0.94	97.9	66.65	0.9465	58.41	42.7	
Model-2	0.95	90.3	57.35	0.9444	64.21	49.3	
Model-3	0.95	87.9	55.12	0.9436	56.65	38.22	
Model-4	0.95	91.7	59.32	0.944	57.41	39.97	
Model-5	0.95	91.7	59.28	0.9431	55.08	34.52	
Fine Gaussian	Model-1	0.95	90.78	55.98	0.931	61.1	37.7	
Model-2	0.94	102.07	58.21	0.921	65.5	39.01	
Model-3	0.92	114.54	60.41	0.913	68.8	40.41	
Model-4	0.9	128.74	63.64	0.913	69	40.78	
Model-5	0.88	139.61	66.52	0.914	68.7	41.04	
Medium Gaussian	Model-1	0.95	88.47	55.05	0.947	53.45	35.05	
Model-2	0.95	88.55	54.97	0.945	54.79	36.51	
Model-3	0.95	88.92	54.32	0.944	54.79	35.1	
Model-4	0.95	89.33	54.38	0.944	54.73	35.78	
Model-5	0.95	89.72	54.52	0.944	54.89	35.78	
Coarse Gaussian	Model-1	0.95	88.16	55.28	0.946	53.67	35.61	
Model-2	0.95	87.95	55.26	0.944	54.87	36.94	
Model-3	0.95	87.05	54.43	0.944	54.68	36.52	
Model-4	0.95	87.1	54.62	0.945	53.96	35.64	
Model-5	0.95	86.8	54.58	0.945	54.25	36.37	

While Table 5 shows the results obtained from training the models and verifying their performance on the monthly river discharges based on several successive time delays shown in Table 3, after analyzing the results, it is noted that the performance of the linear kernel is also superior to the other kernels, with a time delay of three days in predicting the monthly rate of discharges through comparison with the statistical coefficients (R2), (RMSE) and (MAE). The value of (R2) in the testing phase was equal to (0.731) as in (Fig 6B), which is the best value compared to the other cores. In contrast, the value of (RMSE) in the testing phase is equal to (109.4) m3/sec, which is the lowest value and is considered the best among them, which means that it achieved the highest ability to agree between predicted values and observed values compared to other kernels, as in the (Fig 7B). While the MAE was Value equal to (76.08) m3/sec. Based on these results, the linear kernel also performs better than other kernels when using a three-day time delay in predicting a monthly data rate.

10.1371/journal.pone.0308266.t005 Table 5 Indicators for evaluating monthly discharge performance of SVM kernel functions.

Model	Train	Test	
R2	RMSE	MAE	R2	RMSE	MAE	
Linear	Model-1	0.69	214.37	147.25	0.718	111.3	76.23	
Model-2	0.69	212.71	143.87	0.73	110.5	78.45	
Model-3	0.68	213.94	144.87	0.731	109.4	76.08	
Model-4	0.68	215.32	145.43	0.729	109.8	76.61	
Model-5	0.68	214.58	146.46	0.727	110.2	77.76	
Quadratic	Model-1	0.86	216.14	148.81	0.72	111.3	76.23	
Model-2	0.67	219.22	147.29	0.721	113.8	76.17	
Model-3	0.55	254.39	160.51	0.727	111.9	72.68	
Model-4	0.54	256.54	163.09	0.725	111.9	72.97	
Model-5	0.48	273.19	166.32	0.713	115.4	75.99	
Fine Gaussian	Model-1	0.54	257.91	158.74	0.562	141.4	93.82	
Model-2	0.45	284.05	169.39	0.471	157	109.9	
Model-3	0.37	301.12	183.3	0.553	148	105.86	
Model-4	0.35	505.16	184.55	0.482	155	113.2	
Model-5	0.32	313.12	191.14	0.489	159	119.46	
Medium Gaussian	Model-1	0.58	247.54	155.34	0.718	112.5	80.43	
Model-2	0.55	255.83	159.34	0.691	119.4	89.19	
Model-3	0.56	249.8	154.15	0.699	118.6	89.48	
Model-4	0.58	245.38	151.38	0.693	118.3	87.36	
Model-5	0.52	264.87	159.53	0.702	115.9	86.25	
Coarse Gaussian	Model-1	0.62	236.61	152.82	0.714	112.45	80.43	
Model-2	0.63	231.77	152.97	0.721	112.17	83.06	
Model-3	0.63	229.66	152.52	0.716	112.7	82.16	
Model-4	0.63	231.51	156.68	0.711	113.3	82.74	
Model-5	0.61	237.25	158.12	0.698	114.9	83.61	

While Table 6 shows the results obtained from training the models and verifying their performance on the seasonal river discharges based on several successive time delays shown in Table 3, after analyzing the results, it is noted that the quadratic kernel is superior to the other kernels in prediction average the data seasonal using a time delay of 1 day. The comparison between the quadratic kernel and other kernels was done using well-known statistical performance metrics, namely the coefficient of (R2), (RMSE) and (MAE). The quadratic kernel showed a value (R2) equal to (0.415) in the testing phase, as shown in (Fig 6C), which indicates the strength of agreement between the predicted values and the observed values better than other kernels, as shown in (Fig 7C). In addition, the value of (RMSE) for the linear kernel was estimated at (152.3) m3/sec, the lowest value, indicating high prediction accuracy and low deviation between the predicted and observed values. While the MAE was Value equal to (129.3) m3/sec. Based on these results, the quadratic kernel performs better than other kernels in predicting seasonal data rates using a time delay of 1 day. The (Fig 8) shows the difference in the value of MAE between the daily, monthly and seasonal discharges in the testing phase of the models used. It is noted that the lowest value of the statistical coefficient MAE was on the daily discharges of the first model using the linear kernel function, where its value reached (33.26) m3/sec, which is the lowest value compared to the monthly and seasonal discharges. The same applies to the other kernels, which are Gaussian and quadratic. While the (Fig 9) shows the difference in the value of RMSE between the daily, monthly and seasonal discharges in the testing phase of the models used. It is noted that the lowest value of the statistical coefficient RMSE was on the daily discharges of the first model using the linear kernel function, where its value reached (53.29) m3/sec, which is the lowest value compared to the monthly and seasonal discharges. The same applies to the other kernels, which are Gaussian and quadratic. Table 7 shows the statistical characteristics between the observed and predicted values for each of the daily, monthly and seasonal discharge. By comparing the results, it is noted that the observed and predicted values for the daily discharge are very good. As for the monthly and seasonal discharge, there is a closeness but less than the daily discharge.

10.1371/journal.pone.0308266.g008 Fig 8 AME value for the testing phase SVM model for daily, monthly, and seasonal discharges.

10.1371/journal.pone.0308266.g009 Fig 9 RMSE value for the testing phase SVM model for daily, monthly, and seasonal discharges.

10.1371/journal.pone.0308266.t006 Table 6 Indicators for evaluating seasonal discharge performance of SVM kernel functions.

Model	Train	Test	
R2	RMSE	MAE	R2	RMSE	MAE	
Linear	Model-1	0.29	292.61	197.14	0.413	153.6	131.5	
Model-2	0.26	299.13	201.19	0.379	154.5	129.5	
Model-3	0.24	303.19	206.57	0.34	159	130.4	
Model-4	0.23	303.24	196.83	0.222	176.1	140.8	
Model-5	0.25	300.56	191.44	0.28	171.5	136.7	
Quadratic	Model-1	0.21	307.96	210.34	0.415	152.3	129.3	
Model-2	0.41	311.6	170.96	0.3309	160.1	119.87	
Model-3	0.28	340.05	178.26	0.3421	158.75	119.26	
Model-4	0.14	321.54	205.46	0.112	198.3	159	
Model-5	0.05	337.39	196.49	0.143	202.4	161.7	
Fine Gaussian	Model-1	0.18	314.15	216.95	0.322	175.3	149.8	
Model-2	0.13	323.85	209.58	0.156	203.4	166.8	
Model-3	0.07	335.04	226.83	0.253	188.9	163.2	
Model-4	0.1	329.23	216.61	0.17	203.6	178.3	
Model-5	0.12	325.27	206.18	0.055	227	196.2	
Medium Gaussian	Model-1	0.18	314.13	208.39	0.385	158.8	136.7	
Model-2	0.13	325.15	211.59	0.265	170.6	139.2	
Model-3	0.12	326.42	218.69	0.263	174.1	143.6	
Model-4	0.17	316.2	202.75	0.122	195.2	162.2	
Model-5	0.17	316.2	204.07	0.155	192.1	158.1	
Coarse Gaussian	Model-1	0.19	313.18	209.06	0.406	158.7	137.7	
Model-2	0.17	316.85	205.06	0.338	162.6	140.3	
Model-3	0.15	320	209.8	0.318	166.2	142.2	
Model-4	0.21	307.81	199.73	0.21	176.1	146.1	
Model-5	0.22	305.75	196.03	0.277	171.4	145.3	

10.1371/journal.pone.0308266.t007 Table 7 Statistical characteristics between observation data and prediction data for the study area.

Statistic	Daily (m3/sec)	Monthly (m3/sec)	Seasonal (m3/sec)	
Observation Data	Prediction Data	Observation Data	Prediction Data	Observation Data	Prediction Data	
Max.	1600	1582	964	924	897	706	
Min.	50	15	97	123	105	260	
Mean	432.25	434.49	422.3	434.94	426.48	446.24	
S.D	230.06	226.16	207.22	190.65	196.18	110.59	

Based on the results obtained, as shown in Tables 4–6 above, it is clear that using a linear kernel can provide excellent performance in predicting the daily discharge of the Euphrates River upstream of Haditha reservoir, especially when a time delay of one day is applied. That confirms that the linear kernel shows superior ability in predicting discharge rates with high accuracy and reliability, indicating substantial agreement between the predicted and observed values. In addition, the coefficient of determination (R2) and root mean square error (RMSE) values suggest that the linear kernel provided remarkably accurate estimates, with a correlation coefficient of 0.95 and a root mean square error of 53.29, the lowest values recorded. Also, using a linear kernel can provide excellent performance in predicting the monthly discharge of the Euphrates River, especially when a three-day time delay is applied. The coefficient of determination (R2) and root mean square error (RMSE) values indicate that the linear kernel provided remarkably accurate estimates, with the coefficient of determination of 0.731 and the root mean square error of 109.4 being the lowest values recorded. As for predicting seasonal discharge, using a quadratic kernel gives an acceptable performance in predicting monthly discharge, especially when applying a time delay of one day, based on the coefficient of determination, which reached (0.415) and the root mean square error (152.3).

Many global researches have used the same model for future prediction as [12, 16, 23, 28] was used on certain regions. In this study, the same model was used to predict the future daily, monthly, and seasonal discharges of the Euphrates River upstream of the Haditha Dam reservoir. After analyzing the results, we find that the model used has an acceptable performance in future prediction, and compared to the results of other research, there are no significant differences between the results. From observing the results obtained from applying the (SVM) method on the Euphrates River on a daily basis and comparing them with previous studies such as [31–33] we notice that the values of statistical coefficients such as (MAE) were close or close to the general average of these studies, as well as the values of (RMSE) and (R2) When applied on a monthly or seasonal basis, the results were acceptable, but not as accurate as the daily forecast. The SVM model used to predict the daily discharges of the Euphrates River upstream of the Haditha Dam reservoir is considered acceptable and reliable and can provide many benefits for water resources management and the water sector in general. The model can predict the size and timing of potential floods; this can help develop flood coping strategies and improve early warning and risk management procedures. Forecasts can be used to determine future water needs and plan sustainable use of water resources; this helps determine adequate irrigation, storage, and groundwater management policies. Strategies can be developed to mitigate the effects of drought and improve water management in periods of drought. The allocation of water resources can be enhanced, precautionary measures can be applied, and water consumption can be controlled. Forecasts can be used to determine water infrastructure needs such as dams, canals, and other hydrological structures. Infrastructure planning and design can be improved, and more effective use of water resources can be achieved. With a better understanding of river discharges and their forecasts, strategies can be developed to protect and improve the aquatic environment. River management and environmental measures can be enhanced, and biodiversity and ecological balance can be maintained.

Conclusion and recommendations

The main conclusions of the present study could be summarized as follows:

• According to the results, the daily flow of the river obtained the highest accuracy compared to the seasonal and monthly time intervals.

• By comparing the statistical standards of the SVM models, we notice the superior performance of the linear kernel function to predict the daily discharge of the Euphrates River according to the coefficient of determination, which reached (R2 = 0.95), which is the highest value compared to the other values, and (RMSE = 53.29), which is the lowest value, between them.

• Based on the results, the (SVR) model can be used to improve water resources management and dam operations for the Euphrates River upstream of the Haditha reservoir.

• The model (SVR) can support develop flood adaptation strategies, improve early warning and risk management measures, mitigate the effects of drought, and improve water management in drought periods within the selected area.

• A hybrid model is recommended to predict the Euphrates River discharges upstream of the Haditha Dam reservoir.

• Adopting time series data for other variables (rain, temperatures, evaporation coefficient, etc.) as inputs for forecasting models and investigating their impact on future discharges.

• It is recommended that SVM technology and artificial intelligence models be expanded to study various issues related to water resources in Iraq.

Supporting information

S1 Data Haditha reservoir daily inflow 1985-2023.

(XLSX)

The authors would like to acknowledge their gratitude and appreciation to the College of Engineering, Department of Dams and Water Resources, Anbar University. Also, thanks and gratitude to the management of the Haditha Dam Project / Operating Authority for Dams and Reservoirs / Ministry of Water Resources in Iraq, who contributed the specific information in the research.

Abbreviations

Qobs Value of the observation discharge data, m3/sec

Qpre Value of the predicted discharge data, m3/sec

Qobs− Mean values of observation discharge data, m3/sec

Qobs− Mean values of observation discharge data, m3/sec

Qpre− Mean values of prediction discharge data, m3/sec

n Number of real data

b Bias

C Regularization parameter

f Function of

J Lagrange functional

K kernel function

L Insensitive loss function

N Number of input examples

t Time step

W Weight vector

WT Transpose of vector w

T Transpose of

X Input vector of independent variables, and

||X|| Euclidean norm length of vector x

α Lagrange multiplier SVM parameter

ε Error insensitive zone prescribed parameter

ξ Constraint violation estimation error

σ Width of the radial basis kernel function, and

ϕ Function to be minimized

10.1371/journal.pone.0308266.r001
Decision Letter 0
Samantaray Sandeep Academic Editor
© 2024 Sandeep Samantaray
2024
Sandeep Samantaray
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Submission Version0
20 Mar 2024

PONE-D-24-07720Forecasting for Haditha Reservoir Inflow in the West of Iraq Using Support Vector MachinePLOS ONE

Dear Dr. Sulaiman,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

Please submit your revised manuscript by May 04 2024 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:A rebuttal letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: https://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols.

We look forward to receiving your revised manuscript.

Kind regards,

Sandeep Samantaray

Academic Editor

PLOS ONE

Journal Requirements:

When submitting your revision, we need you to address these additional requirements.

1. Please ensure that your manuscript meets PLOS ONE's style requirements, including those for file naming. The PLOS ONE style templates can be found at 

https://journals.plos.org/plosone/s/file?id=wjVg/PLOSOne_formatting_sample_main_body.pdf and 

https://journals.plos.org/plosone/s/file?id=ba62/PLOSOne_formatting_sample_title_authors_affiliations.pdf

2. Please note that PLOS ONE has specific guidelines on code sharing for submissions in which author-generated code underpins the findings in the manuscript. In these cases, all author-generated code must be made available without restrictions upon publication of the work. Please review our guidelines at https://journals.plos.org/plosone/s/materials-and-software-sharing#loc-sharing-code and ensure that your code is shared in a way that follows best practice and facilitates reproducibility and reuse.

3. We note that your Data Availability Statement is currently as follows: All relevant data are within the manuscript and its Supporting Information files.

Please confirm at this time whether or not your submission contains all raw data required to replicate the results of your study. Authors must share the “minimal data set” for their submission. PLOS defines the minimal data set to consist of the data required to replicate all study findings reported in the article, as well as related metadata and methods (https://journals.plos.org/plosone/s/data-availability#loc-minimal-data-set-definition).

For example, authors should submit the following data:

- The values behind the means, standard deviations and other measures reported;

- The values used to build graphs;

- The points extracted from images for analysis.

Authors do not need to submit their entire data set if only a portion of the data was used in the reported study.

If your submission does not contain these data, please either upload them as Supporting Information files or deposit them to a stable, public repository and provide us with the relevant URLs, DOIs, or accession numbers. For a list of recommended repositories, please see https://journals.plos.org/plosone/s/recommended-repositories.

If there are ethical or legal restrictions on sharing a de-identified data set, please explain them in detail (e.g., data contain potentially sensitive information, data are owned by a third-party organization, etc.) and who has imposed them (e.g., an ethics committee). Please also provide contact information for a data access committee, ethics committee, or other institutional body to which data requests may be sent. If data are owned by a third party, please indicate how others may request data access.

4. We note that Figure 1 in your submission contain map/satellite images which may be copyrighted. All PLOS content is published under the Creative Commons Attribution License (CC BY 4.0), which means that the manuscript, images, and Supporting Information files will be freely available online, and any third party is permitted to access, download, copy, distribute, and use these materials in any way, even commercially, with proper attribution. For these reasons, we cannot publish previously copyrighted maps or satellite images created using proprietary data, such as Google software (Google Maps, Street View, and Earth). For more information, see our copyright guidelines: http://journals.plos.org/plosone/s/licenses-and-copyright.

We require you to either (a) present written permission from the copyright holder to publish these figures specifically under the CC BY 4.0 license, or (b) remove the figures from your submission:

a. You may seek permission from the original copyright holder of Figure 1  to publish the content specifically under the CC BY 4.0 license.  

We recommend that you contact the original copyright holder with the Content Permission Form (http://journals.plos.org/plosone/s/file?id=7c09/content-permission-form.pdf) and the following text:

“I request permission for the open-access journal PLOS ONE to publish XXX under the Creative Commons Attribution License (CCAL) CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). Please be aware that this license allows unrestricted use and distribution, even commercially, by third parties. Please reply and provide explicit written permission to publish XXX under a CC BY license and complete the attached form.”

Please upload the completed Content Permission Form or other proof of granted permissions as an "Other" file with your submission.

In the figure caption of the copyrighted figure, please include the following text: “Reprinted from [ref] under a CC BY license, with permission from [name of publisher], original copyright [original copyright year].”

b. If you are unable to obtain permission from the original copyright holder to publish these figures under the CC BY 4.0 license or if the copyright holder’s requirements are incompatible with the CC BY 4.0 license, please either i) remove the figure or ii) supply a replacement figure that complies with the CC BY 4.0 license. Please check copyright information on all replacement figures and update the figure caption with source information. If applicable, please specify in the figure caption text when a figure is similar but not identical to the original image and is therefore for illustrative purposes only.

The following resources for replacing copyrighted map figures may be helpful:

USGS National Map Viewer (public domain): http://viewer.nationalmap.gov/viewer/

The Gateway to Astronaut Photography of Earth (public domain): http://eol.jsc.nasa.gov/sseop/clickmap/

Maps at the CIA (public domain): https://www.cia.gov/library/publications/the-world-factbook/index.html and https://www.cia.gov/library/publications/cia-maps-publications/index.html

NASA Earth Observatory (public domain): http://earthobservatory.nasa.gov/

Landsat: http://landsat.visibleearth.nasa.gov/

USGS EROS (Earth Resources Observatory and Science (EROS) Center) (public domain): http://eros.usgs.gov/#

Natural Earth (public domain): http://www.naturalearthdata.com/

5. Please ensure that you refer to Figures 1-4 in your text as, if accepted, production will need this reference to link the reader to the figure.

Additional Editor Comments:

1. Please modify the objective section for a clear understanding i.e novelty part should be clearly mentioned.

2. There are so many techniques in the recent world for the assessment; why does the author use a specified classical model for research purposes? Is there any specific reason for this? Suggest to add Hybrid model/ensable model.

3. Author must add statistical components/parameters of collected data in the study area section.

4. Equation 9-12; please add a recent citation for reference purposes. [Ex; 10.1016/j.jhydrol.2024.131042, 10.1016/j.jclepro.2024.141069, 10.1016/j.engappai.2023.107559]

5. Here author must be mentioned where they got the data and what is the span of the used data. Is there any specific reason for that?

6. Comparison statement (compare with other research articles) must be added in the result and discussion section to better visualize the proposed research.

7. Author must add future scope in the last portion of the manuscript.

8. Advantages and limitations of the proposed model must be added.

9. For better analysis of the result author must add a Histogram plot, box plot, and Taylor diagram

10. Author must provide a flow chart, pseudo code, and architecture of proposed models.

11. Author must provide a parameter table for clear understanding.

[Note: HTML markup is below. Please do not edit.]

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

1. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented.

Reviewer #1: No

Reviewer #2: No

Reviewer #3: No

**********

2. Has the statistical analysis been performed appropriately and rigorously?

Reviewer #1: No

Reviewer #2: No

Reviewer #3: No

**********

3. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: No

Reviewer #2: No

Reviewer #3: No

**********

4. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.

Reviewer #1: No

Reviewer #2: No

Reviewer #3: No

**********

5. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)

Reviewer #1: I am glad that the authors effectively addressed my concerns and challenges in their research work. The authors' ability to provide timely and satisfactory responses to my queries reflects their strong commitment to adhering to scientific principles and conducting reliable research. This dedication benefits the scientific community and enhances our understanding of the subject matter. Therefore, based on the authors' satisfactory response, I find this version of the article to be acceptable.

Reviewer #2: Abstract is acceptable, however the authors should highlight the importance of their findings.

The introduction section should cover many recent studies. The authors should refer to studies related to application of AI in water resources management.

The objectives of the study should be clearly presented.

Fig. 1 The location of the study area should be improved.

Fig. 2 Time series of daily river discharges. If possible avoid using excel in plotting the figures.

Figure 3 and 4 should be under results section.

All the figures are generated from the software so should be presented in better way. The current way is not acceptable.

Conclusion needs to be revised and discuss the findings and also the limitations of the study.

Reviewer #3: In the submitted paper, the authors utilized a single model called SVR for forecasting inflow in the Haditha Reservoir. They employed two kernels, namely linear and Gaussian kernels, and concluded that the linear kernel performed better.

Here are my comments:

� The significance of the paper is very limited.

� I have come across several published papers in recent years that have employed more advanced models to forecast inflow in the same case study of the Haditha Reservoir. Therefore, your model is not novel, and there are already numerous papers addressing this topic [1]–[3].

[1] M. F. Allawi, I. R. Hussain, M. I. Salman, and A. El-Shafie, “Monthly inflow forecasting utilizing advanced artificial intelligence methods: a case study of Haditha Dam in Iraq,” Stoch. Environ. Res. Risk Assess., vol. 35, no. 11, pp. 2391–2410, 2021, doi: 10.1007/s00477-021-02052-7.

[2] M. M. Hameed, M. K. AlOmar, A. A. A. Al-Saadi, and M. A. AlSaadi, “Inflow forecasting using regularized extreme learning machine: Haditha reservoir chosen as case study,” Stoch. Environ. Res. Risk Assess., 2022, doi: 10.1007/s00477-022-02254-7.

[3] Z. Abd Saleh, “Forecasting by Box-Jenkins (ARIMA) Models to Inflow of Haditha Dam,” J. Babylon Univ. Eng. Sci., vol. 21, no. 5, pp. 1675–1685, 2013.

� The literature review and introduction in the paper are weak.

� The methodology has a potential flaw in that the comparison is limited to only one model, which may lead to misconceptions. When the objective is to achieve accurate predictions, it is important to consider a broader range of model cases rather than restricting the comparison to just a linear kernel and a radial basis kernel. This approach could create the impression of cherry-picking results to emphasize significant improvements derived from a particular model.

� The research seems to focus solely on presenting statistical results without providing sufficient elaboration in interpreting those results.

� Based on the data presented in the study, it is unclear what constructive contribution the researcher aims to make to the field of hydrology. The research only showcases the performance of the predictive model without offering any meaningful addition or contribution to the discipline of hydrology or water resources.

� Considering the results presented in Table 3, it is questionable why only one input lag is used. In time series data, forecasting usually requires multiple input lags to capture the complex relationships between these lags and future inflow.

� The paper utilizes non-meaningful statistical analysis parameters (see Table 3 and 4). For instance, RMSE and MSE are used, but it is known that RMSE is the square root of MSE. Hence, this information is redundant.

� The statistical analysis is insufficiently robust.

� There is a significant discrepancy in the results, as evident from the third and fourth figures.

� There is no discussion section.

� According to Figures 4 and 5, the best model is not suitable to forecast the majority of inflow values, particularly those that deviate significantly from the mean inflow. Also, this indicates that classical statistical assessments are inadequate.

� The paper's organization and graphical figures are of low quality.

� There is no validation assessment included.

� The conclusion and recommendation section lacks strength.

**********

6. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

Reviewer #3: No

**********

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org. Please note that Supporting Information files do not need this step.

10.1371/journal.pone.0308266.r002
Author response to Decision Letter 0
Submission Version1
6 Apr 2024

PONE-D-24-07720

Forecasting for Haditha Reservoir Inflow in the West of Iraq Using Support Vector Machine (SVM)

PLOS ONE

1-3 Editor Comments

Author response: The authors greatly appreciate to the Editor’s comments.

All comments were responded to and implemented

1- Complete data were obtained from the Haditha Dam Project Administration - the General Authority for Dams and Reservoirs of the Iraqi Ministry of Water Resources (unpublished data) as described in the data used section.

2- The Euphrates River and the Haditha Dam reservoir are located between latitudes (34° 40' and 34° 13') north and longitudes (42° 26' and 41° 55') east. The highest flood water level for the reservoir and the river is at level 147 and covers about 500 km2 with 10 km of shoreline. Figure (1) shows the Euphrates River upstream of the Haditha Dam reservoir in Anbar Governorate, western Iraq [20].

3- Figures (1, 3) are referred to in the text as follows:

• Figure (1) shows the Euphrates River upstream of the Haditha Dam reservoir in Anbar Governorate, western Iraq [20].

• While (Fig 3) shows the flowchart of the mechanism for predicting future discharges of the Euphrates River upstream of the Haditha Dam reservoir and how to divide, train and test the data using the SVM model.

4. We note that Figure 1 in your submission contain map/satellite images which may be copyrighted. All PLOS content is published under the Creative Commons Attribution License (CC BY 4.0), which means that the manuscript, images, and Supporting Information files will be freely available online, and any third party is permitted to access, download, copy, distribute, and use these materials in any way, even commercially, with proper attribution. For these reasons, we cannot publish previously copyrighted maps or satellite images created using proprietary data, such as Google software (Google Maps, Street View, and Earth). For more information, see our copyright guidelines: http://journals.plos.org/plosone/s/licenses-and-copyright.

Author response: The authors greatly agree with the reviewer’s comment.

The appearance of the study area has changed

5. Please ensure that you refer to Figures 1-4 in your text as, if accepted, production will need this reference to link the reader to the figure.

Author response: The authors greatly agree with the reviewer’s comment.

The mentioned forms are referred to within the text of the speech

Additional Editor Comments:

1. Please modify the objective section for a clear understanding i.e novelty part should be clearly mentioned.

Author response: The authors greatly agree with the reviewer’s comment.

This study aims to use artificial intelligence with an SVM model to predict the discharge of the Euphrates River upstream of the Haditha Dam and improve water resources management and dam operations. The study uses historical data on the discharge of the Euphrates River upstream of Haditha Dam and information about flow behavior and the impact of the recently constructed dams in upstream countries. Also, this study aims to analyze and evaluate the relationship between the river's daily, monthly, and seasonal discharges and the effect of previous values on predicting and better understanding the behavior of the water drainage system.

2. There are so many techniques in the recent world for the assessment; why does the author use a specified classical model for research purposes? Is there any specific reason for this? Suggest to add Hybrid model/enable model.

Author response: The authors greatly agree with the reviewer’s comment.

A paragraph was added to the conclusions and recommendations section recommending using a hybrid model in the study area.

3. Author must add statistical components/parameters of collected data in the study area section.

Author response: The authors greatly agree with the reviewer’s comment.

Table (1) has been added with the data parameters used within the study area

4. Equation 9-12; please add a recent citation for reference purposes. [Ex; 10.1016/j.jhydrol.2024.131042, 10.1016/j.jclepro.2024.141069, 10.1016/j.engappai.2023.107559]

Author response: The authors greatly agree with the reviewer’s comment.

Adding the required citation to Equations has been added

5. Here author must be mentioned where they got the data and what is the span of the used data. Is there any specific reason for that?

Author response: The authors greatly agree with the reviewer’s comment.

The study relied on the discharges of the Euphrates River at the Husaybah hydrological station, one of the main old stations in Iraq located on the river in Al-Qaim town. Time series data of daily discharges were collected from 1985 to 2024.

6. Comparison statement (compare with other research articles) must be added in the result and discussion section to better visualize the proposed research.

Author response: The authors greatly agree with the reviewer’s comment.

Many global researches have used the same model for future prediction as [12-16-23-28] was used on certain regions. In this study, the same model was used to predict the future daily, monthly, and seasonal discharges of the Euphrates River upstream of the Haditha Dam reservoir. After analyzing the results, we find that the model used has an acceptable performance in future prediction, and compared to the results of other research, there are no significant differences between the results.

7. Author must add future scope in the last portion of the manuscript.

Author response: The authors greatly agree with the reviewer’s comment.

A paragraph has been added to the conclusions and recommendations section explaining Adopting time series data for other variables (rain, temperatures, evaporation coefficient, etc.) as inputs for forecasting models and investigating their impact on future discharges.

8. Advantages and limitations of the proposed model must be added.

Author response: The authors greatly agree with the reviewer’s comment.

The SVM model is used in classification and regression problems

The SVM learning system uses a hypothesis space of linear functions in a high-dimensional feature space.

The support vector machine (SVM) effectively deals with various problems, including classifying data in a nonlinear space.

SVM is used in wide applications in artificial intelligence, such as future predictions of flood discharges of rivers evaporation from lakes

The SVM model requires careful selection of parameters such as kernel type and setting of parameter values. It may be difficult to specify these parameters appropriately, and trial and repeated adjustment may be required to obtain optimal performance.

SVM model training can be expensive in terms of time and resources when dealing with very large datasets. Getting quick results may be difficult in these cases.

9. For better analysis of the result author must add a Histogram plot, box plot, and Taylor diagram

Author response: The authors greatly agree with the reviewer’s comment.

Figures have been added to compare the true and predicted values on daily, monthly, and seasonal discharges in the testing phases, as shown in the Results and Discussion section.

10. Author must provide a flow chart, pseudo code, and architecture of proposed models.

Author response: The authors greatly agree with the reviewer’s comment.

A flow chart has been added to the prediction mechanism using the SVM model, as shown in Figure (3) in the Training Process section.

11. Author must provide a parameter table for clear understanding.

Author response: The authors greatly agree with the reviewer’s comment.

Table 2 has been added showing the parameters and types of functions used

5. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)

Reviewer #1: I am glad that the authors effectively addressed my concerns and challenges in their research work. The authors' ability to provide timely and satisfactory responses to my queries reflects their strong commitment to adhering to scientific principles and conducting reliable research. This dedication benefits the scientific community and enhances our understanding of the subject matter. Therefore, based on the authors' satisfactory response, I find this version of the article to be acceptable.

Author response: The authors greatly appreciate with the reviewer’s comment.

Reviewer #2: Abstract is acceptable; however, the authors should highlight the importance of their findings.

Author response: The authors greatly agree with the reviewer’s comment.

The results showed that the proposed machine learning model performed well in predicting the daily flow of the Euphrates River upstream of the Haditha Dam reservoir; this indicates that the model might effectively forecast flows, which helps improve water resource management and dam operations.

The introduction section should cover many recent studies. The authors should refer to studies related to application of AI in water resources management.

Author response: The authors greatly agree with the reviewer’s comment.

Resources related to artificial intelligence techniques in water resources management have been added as follows:

A study used the Muskingum model to predict floods in the United States of America and the United Kingdom. A combination of a hybrid of the bat algorithm (BA) and the particle swarm optimization (PSO) algorithm, i.e., the hybrid bat-swarm algorithm (HBSA) was used. The results showed that the Muskingum model represented by (HBSA) achieved excellent performance compared to other methods based on the squared deviations (SSD), the sum of the absolute deviations (SAD), the peak discharge error, and the time-to-peak error [13]. A study used the Adaptive Neuro-Fuzzy Inference System (ANFIS) model to study the case of the influence of climate on monthly flow in the Aydoughmoush basin in Iran for the period 1987 - 2007. The bat algorithm (BA), particle swarm optimization (PSO), and Genetic Algorithm (GA) were used to obtain the ANFIS parameter and obtain the best ANFIS structure. The results showed better climate index performance with six months' delays. The study indicated that ANFIS-BA obtained better results than ANFIS-PSO and ANFIS-GA, with a root mean square error (RMSE) of 25% and 30% less than ANFIS-PSO and ANFIS-GA, respectively [14]. In a study, was used two artificial intelligence models to predict subsurface evaporation rates, represented by the generalized neural network model for regression and the neural network for the radiative basis function. The model’s input variables for this model include temperature, wind speed, humidity, and water depth. The applied models utilize actual hydrological and climatological in an arid region in the Iraqi Western Desert for two soil types. The results showed that the neural network model (ANN) could accurately predict subsurface reservoir evaporation based on the correlation coefficient, which reached (0.936) for fine gravel soil and (0.959) for coarse gravel soil [16]. A study used a deep learning model to predict river courses on data from the Tigris River in Iraq. Two methods were used to collect samples: linear deep learning (LDL) and stratified deep learning (SDL) in deep learning algorithms. The results indicated that stratified deep learning (SDL) improves accuracy by approximately 7.96-94.6 concerning several evaluation criteria. Thus, it is worth noting that SDL outperforms (LDL) in monthly streamflow modelling [17].

The objectives of the study should be clearly presented.

Author response: The authors greatly agree with the reviewer’s comment.

This study aims to use artificial intelligence with an SVM model to predict the discharge of the Euphrates River upstream of the Haditha Dam and improve water resources management and dam operations. The study uses historical data on the discharge of the Euphrates River upstream of Haditha Dam and information about flow behavior and the impact of the recently constructed dams in upstream countries. Also, this study aims to analyze and evaluate the relationship between the river's daily, monthly, and seasonal discharges and the effect of previous values on predicting and better understanding the behavior of the water drainage system.

Fig. 1 The location of the study area should be improved.

Author response: The authors greatly agree with the reviewer’s comment.

We have optimized the location of the study area as shown in Figure 1 in the Study Area section

Fig. 2 Time series of daily river discharges. If possible, avoid using excel in plotting the figures.

Author response: The authors greatly agree with the reviewer’s comment.

The format of the time series for daily discharges has been modified better, as in the data used section

Figure 3 and 4 should be under results section.

Author response: The authors greatly agree with the reviewer’s comment.

Figure 3 and Figure 4 have been moved to the Results section

All the figures are generated from the software so should be presented in better way. The current way is not acceptable.

Author response: The authors greatly agree with the reviewer’s comment.

All figures were presented in a better way, as shown in the results section

Conclusion needs to be revised and discuss the findings and also the limitations of the study.

Author response: The authors greatly agree with the reviewer’s comment.

The discussion of the results has been completely revised and as described in the Results and Discussion section

Reviewer #3: In the submitted paper, the authors utilized a single model called SVR for forecasting inflow in the Haditha Reservoir. They employed two kernels, namely linear and Gaussian kernels, and concluded that the linear kernel performed better.

Here are my comments:

� The significance of the paper is very limited.

Author response: The authors greatly agree with the reviewer’s comment.

The artificial intelligence model represented by the support vector machine was used in future forecasting of the daily, monthly, and seasonal discharges of the Euphrates River upstream of the Haditha dam reservoir. The SVR model was used to predict future discharges. The proposed model contains four function kernels in forecasting, and the best of them were used: linear, quadratic, and Gaussian (RBF) kernels. There are three types of Gaussian kernel in the MATLAB format, and they were used, as shown in Tables 4. 5, and 6 in the Results and Discussion section. Therefore, the research focuses on more than just using two kernels. Instead, it focuses on the future prediction of river flows, and these two kernels were chosen as the best among the other kernels in forecasting the river's flow.

� I have come across several published papers in recent years that have employed more advanced models to forecast inflow in the same case study of the Haditha Reservoir. Therefore, your model is not novel, and there are already numerous papers addressing this topic [1]–[3].

[1] M. F. Allawi, I. R. Hussain, M. I. Salman, and A. El-Shafie, “Monthly inflow forecasting utilizing advanced artificial intelligence methods: a case study of Haditha Dam in Iraq,” Stoch. Environ. Res. Risk Assess., vol. 35, no. 11, pp. 2391–2410, 2021, doi: 10.1007/s00477-021-02052-7.

[2] M. M. Hameed, M. K. AlOmar, A. A. A. Al-Saadi, and M. A. AlSaadi, “Inflow forecasting using regularized extreme learning machine: Haditha reservoir chosen as case study,” Stoch. Environ. Res. Risk Assess., 2022, doi: 10.1007/s00477-022-02254-7.

[3] Z. Abd Saleh, “Forecasting by Box-Jenkins (ARIMA) Models to Inflow of Haditha Dam,” J. Babylon Univ. Eng. Sci., vol. 21, no. 5, pp. 1675–1685, 2013.

Author response: The authors greatly agree with the reviewer’s comment.

Indeed, the model is not new, but due to its importance in light of these conditions to which Iraq is exposed in terms of drought, the Euphrates River was chosen, which constitutes a large part of the water sources in Iraq, precisely the provider of the Haditha Dam reservoir, which is consi

Attachment Submitted filename: PONE-D-24-07720 - Response to Reviewers 3.docx

10.1371/journal.pone.0308266.r003
Decision Letter 1
Samantaray Sandeep Academic Editor
© 2024 Sandeep Samantaray
2024
Sandeep Samantaray
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Submission Version1
2 May 2024

PONE-D-24-07720R1Forecasting for Haditha Reservoir Inflow in the West of Iraq Using Support Vector Machine (SVM)PLOS ONE

Dear Dr. Sulaiman, 

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.Kindly add more chart for better analysis 

Compare the result with previous study.

Please submit your revised manuscript by Jun 16 2024 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:

A rebuttal letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: https://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols.

We look forward to receiving your revised manuscript.

Kind regards,

Dr. Sandeep Samantaray

Academic Editor

PLOS ONE

Journal Requirements:

Please review your reference list to ensure that it is complete and correct. If you have cited papers that have been retracted, please include the rationale for doing so in the manuscript text, or remove these references and replace them with relevant current references. Any changes to the reference list should be mentioned in the rebuttal letter that accompanies your revised manuscript. If you need to cite a retracted article, indicate the article’s retracted status in the References list and also include a citation and full reference for the retraction notice.

[Note: HTML markup is below. Please do not edit.]

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org. Please note that Supporting Information files do not need this step.

10.1371/journal.pone.0308266.r004
Author response to Decision Letter 1
Submission Version2
9 May 2024

Forecasting for Haditha Reservoir Inflow in the West of Iraq Using Support Vector Machine

PLOS ONE

Comments

• Kindly add more chart for better analysis

Author response: The authors greatly appreciate to the Editor’s comments.

The (Fig.8) shows the difference in the value of MAE between the daily, monthly and seasonal discharges in the testing phase of the models used. It is noted that the lowest value of the statistical coefficient MAE was on the daily discharges of the first model using the linear kernel function, where its value reached (33.26), which is the lowest value compared to the monthly and seasonal discharges. The same applies to the other kernels, which are Gaussian and quadratic. While the (Fig. 9) shows the difference in the value of RMSE between the daily, monthly and seasonal discharges in the testing phase of the models used. It is noted that the lowest value of the statistical coefficient RMSE was on the daily discharges of the first model using the linear kernel function, where its value reached (53.29), which is the lowest value compared to the monthly and seasonal discharges. The same applies to the other kernels, which are Gaussian and quadratic.

Fig 8. AME value for the testing phase SVM model for daily, monthly, and seasonal discharges

Fig 9. RMSE value for the testing phase SVM model for daily, monthly, and seasonal discharges

• Compare the result with previous study.

Author response: The authors greatly appreciate to the Editor’s comments.

Many global researches have used the same model for future prediction as [12-16-23-28] was used on certain regions. In this study, the same model was used to predict the future daily, monthly, and seasonal discharges of the Euphrates River upstream of the Haditha Dam reservoir. After analyzing the results, we find that the model used has an acceptable performance in future prediction, and compared to the results of other research, there are no significant differences between the results. From observing the results obtained from applying the (SVM) method on the Euphrates River on a daily basis and comparing them with previous studies such as [29][30][31] we notice that he values of statistical coefficients such as (MAE) were close or close to the general average of these studies, as well as the values of (RMSE) and (R2) When applied on a monthly or seasonal basis, the results were acceptable, but not as accurate as the daily forecast.

All comments were responded to and implemented

Attachment Submitted filename: PONE-D-24-07720 - Response to Reviewers 4.docx

10.1371/journal.pone.0308266.r005
Decision Letter 2
Samantaray Sandeep Academic Editor
© 2024 Sandeep Samantaray
2024
Sandeep Samantaray
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Submission Version2
31 May 2024

PONE-D-24-07720R2Forecasting for Haditha Reservoir Inflow in the West of Iraq Using Support Vector Machine (SVM)PLOS ONE

Dear Dr. Sulaiman,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

1) Comments from PLOS Editorial Office: We note that one or more reviewers and the Academic Editor have recommended that you cite specific previously published works in an earlier round of revision. As always, we recommend that you please review and evaluate the requested works to determine whether they are relevant and should be cited. It is not a requirement to cite these works and you may remove them before the manuscript proceeds to publication. We appreciate your attention to this request

2) Please ensure that all figures are of sufficient quality for publication. We note that Fig 4 and Fig 5 need updating before potential publication, as these look like screenshots with poor resolution. Furthermore, Fig 1 appears to contain copyrighted material.

Please submit your revised manuscript by Jul 14 2024 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:A rebuttal letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: https://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols.

We look forward to receiving your revised manuscript.

Kind regards,

Hanna Landenmark

Staff Editor, PLOS ONE

on behalf of 

Sandeep Samantaray

Academic Editor, PLOS ONE

Journal Requirements:

Please review your reference list to ensure that it is complete and correct. If you have cited papers that have been retracted, please include the rationale for doing so in the manuscript text, or remove these references and replace them with relevant current references. Any changes to the reference list should be mentioned in the rebuttal letter that accompanies your revised manuscript. If you need to cite a retracted article, indicate the article’s retracted status in the References list and also include a citation and full reference for the retraction notice.

Additional Editor Comments:

Thank you for the revison.

[Note: HTML markup is below. Please do not edit.]

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org. Please note that Supporting Information files do not need this step.

10.1371/journal.pone.0308266.r006
Author response to Decision Letter 2
Submission Version3
12 Jun 2024

Editor Comments

• Kindly add more chart for better analysis

Author response: The authors greatly appreciate to the Editor’s comments.

1- All citations mentioned in the manuscript belong to my work and are part of the research methodology.

2- Regarding Figure (1), the issue related to copyright was solved by replacing the image of the study site with that of the source for Figure (1) and as shown in the manuscript in the Study Area section.

Figs 4. Training process of the SVM model for discharges (a) daily, (b) monthly, and (c) seasonal.

Fig 5. R2-value of observed versus predicted flow for the training phase SVM model for discharges (a) daily, (b) monthly, and (c) seasonal

Fig. 1 The red circle indicates the Location of the study area, the Haditha Dam reservoir location in Iraq [21].

All comments were responded to and implemented

Attachment Submitted filename: PONE-D-24-07720 - Response to Reviewers 5.docx

10.1371/journal.pone.0308266.r007
Decision Letter 3
Samantaray Sandeep Academic Editor
© 2024 Sandeep Samantaray
2024
Sandeep Samantaray
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Submission Version3
22 Jul 2024

Forecasting for Haditha Reservoir Inflow in the West of Iraq Using Support Vector Machine (SVM)

PONE-D-24-07720R3

Dear Dr. %Sulaiman%,

We’re pleased to inform you that your manuscript has been judged scientifically suitable for publication and will be formally accepted for publication once it meets all outstanding technical requirements.

Within one week, you’ll receive an e-mail detailing the required amendments. When these have been addressed, you’ll receive a formal acceptance letter and your manuscript will be scheduled for publication.

An invoice will be generated when your article is formally accepted. Please note, if your institution has a publishing partnership with PLOS and your article meets the relevant criteria, all or part of your publication costs will be covered. Please make sure your user information is up-to-date by logging into Editorial Manager at Editorial Manager® and clicking the ‘Update My Information' link at the top of the page. If you have any questions relating to publication charges, please contact our Author Billing department directly at authorbilling@plos.org.

If your institution or institutions have a press office, please notify them about your upcoming paper to help maximize its impact. If they’ll be preparing press materials, please inform our press team as soon as possible -- no later than 48 hours after receiving the formal acceptance. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact onepress@plos.org.

Kind regards,

Dr. Sandeep Samantaray

Academic Editor

PLOS ONE

Additional Editor Comments (optional):

Thank you for the revision. 

Reviewers' comments:

10.1371/journal.pone.0308266.r008
Acceptance letter
Samantaray Sandeep Academic Editor
© 2024 Sandeep Samantaray
2024
Sandeep Samantaray
https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
29 Jul 2024

PONE-D-24-07720R3

PLOS ONE

Dear Dr. Sulaiman,

I'm pleased to inform you that your manuscript has been deemed suitable for publication in PLOS ONE. Congratulations! Your manuscript is now being handed over to our production team.

At this stage, our production department will prepare your paper for publication. This includes ensuring the following:

* All references, tables, and figures are properly cited

* All relevant supporting information is included in the manuscript submission,

* There are no issues that prevent the paper from being properly typeset

If revisions are needed, the production department will contact you directly to resolve them. If no revisions are needed, you will receive an email when the publication date has been set. At this time, we do not offer pre-publication proofs to authors during production of the accepted work. Please keep in mind that we are working through a large volume of accepted articles, so please give us a few weeks to review your paper and let you know the next and final steps.

Lastly, if your institution or institutions have a press office, please let them know about your upcoming paper now to help maximize its impact. If they'll be preparing press materials, please inform our press team within the next 48 hours. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact onepress@plos.org.

If we can help with anything else, please email us at customercare@plos.org.

Thank you for submitting your work to PLOS ONE and supporting open access.

Kind regards,

PLOS ONE Editorial Office Staff

on behalf of

Dr. Sandeep Samantaray

Academic Editor

PLOS ONE
==== Refs
References

1 Mhmood H. H. , Yilmaz M. , and Sulaiman S. O. , “Simulation of the flood wave caused by hypothetical failure of the Haditha Dam,” J. Appl. Water Eng. Res., vol. 11 , no. 1 , pp. 66–76, 2023, doi: 10.1080/23249676.2022.2050312
2 Sulaiman S. O. , Abdullah H. H. , Al-Ansari N. , Laue J. , and Yaseen Z. M. , “Simulation model for optimal operation of Dokan Dam reservoir northern of Iraq,” Int. J. Des. Nat. Ecodynamics, vol. 16 , no. 3 , pp. 301–306, Jun. 2021, doi: 10.18280/IJDNE.160308
3 Sulaiman S. O. , Al-Dulaimi G. , and Al Thamiry H. , “Natural rivers longitudinal dispersion coefficient simulation using hybrid soft computing model,” in Proceedings - International Conference on Developments in eSystems Engineering, DeSE, Institute of Electrical and Electronics Engineers Inc., Jul. 2018, pp. 280–283. doi: 10.1109/DeSE.2018.00056
4 Eryiǧit M. and Sulaiman S. O. , “Specifying optimum water resources based on cost-benefit relationship for settlements by artificial immune systems: Case study of Rutba City, Iraq,” Water Supply, vol. 22 , no. 6 , pp. 5873–5881, Jun. 2022, doi: 10.2166/ws.2022.227
5 Huang S. , Chang J. , Huang Q. , and Chen Y. , “Monthly streamflow prediction using modified EMD-based support vector machine,” J. Hydrol., vol. 511 , pp. 764–775, Apr. 2014, doi: 10.1016/j.jhydrol.2014.01.062
6 Sedighi F. , Vafakhah M. , and Javadi M. R. , “Rainfall–Runoff Modeling Using Support Vector Machine in Snow-Affected Watershed,” Arab. J. Sci. Eng., vol. 41 , no. 10 , pp. 4065–4076, Oct. 2016, doi: 10.1007/s13369-016-2095-5
7 Ghorbani M. A. , Khatibi R. , Goel A. , FazeliFard M. H. , and Azani A. , “Modeling river discharge time series using support vector machine and artificial neural networks,” Environ. Earth Sci., vol. 75 , no. 8 , Apr. 2016, doi: 10.1007/s12665-016-5435-6
8 Noori R. , Khakpour A. , Omidvar B. , and Farokhnia A. , “Comparison of ANN and principal component analysis-multivariate linear regression models for predicting the river flow based on developed discrepancy ratio statistic,” Expert Syst. Appl., vol. 37 , no. 8 , pp. 5856–5862, Aug. 2010, doi: 10.1016/j.eswa.2010.02.020
9 Hu H. , Zhang J. , and Li T. , “A Comparative Study of VMD-Based Hybrid Forecasting Model for Nonstationary Daily Streamflow Time Series,” Complexity, vol. 2020 , 2020, doi: 10.1155/2020/4064851
10 Wang Y. , Guo S. , Chen H. , and Zhou Y. , “Comparative study of monthly inflow prediction methods for the Three Gorges Reservoir,” Stoch. Environ. Res. Risk Assess., vol. 28 , no. 3 , pp. 555–570, Mar. 2014, doi: 10.1007/s00477-013-0772-4
11 Halik G. , Anwar N. , Santosa B. , and Edijatno , “Reservoir inflow prediction under GCM scenario downscaled by wavelet transform and support vector machine hybrid models,” Adv. Civ. Eng., vol. 2015 , 2015, doi: 10.1155/2015/515376
12 Khan M. S. and Coulibaly P. , “Application of Support Vector Machine in Lake Water Level Prediction”, doi: 10.1061/ASCE1084-0699200611:3199.
13 Ehteram M. et al. , “Improving the Muskingum flood routing method using a hybrid of particle swarm optimization and bat algorithm,” Water (Switzerland), vol. 10 , no. 6 , Jun. 2018, doi: 10.3390/w10060807
14 Ehteram M. et al. , “Assessing the predictability of an improved ANFIS model for monthly streamflow using lagged climate indices as predictors,” Water (Switzerland), vol. 11 , no. 6 , Jun. 2019, doi: 10.3390/w11061130
15 Yaseen Z. M. et al. , “Prediction of evaporation in arid and semi-arid regions: a comparative study using different machine learning models,” Eng. Appl. Comput. Fluid Mech., vol. 14 , no. 1 , pp. 70–89, Jan. 2020, doi: 10.1080/19942060.2019.1680576
16 Kamel A. H. , Afan H. A. , Sherif M. , Ahmed A. N. , and El-Shafie A. , “RBFNN versus GRNN modeling approach for sub-surface evaporation rate prediction in arid region,” Sustain. Comput. Informatics Syst., vol. 30 , Jun. 2021, doi: 10.1016/j.suscom.2021.100514
17 Afan H. A. et al. , “Linear and stratified sampling-based deep learning models for improving the river streamflow forecasting to mitigate flooding disaster,” Nat. Hazards, vol. 112 , no. 2 , pp. 1527–1545, Jun. 2022, doi: 10.1007/s11069-022-05237-7
18 Eryiğit M. , Sulaiman S. O. , Najm A. B. A. , and Mhedi N. M. , “Optimal management of multiple water resources by a heuristic optimization for a water supply in the desert cities of Western Iraq,” Desalin. Water Treat., vol. 281 , pp. 7–14, Jan. 2023, doi: 10.5004/dwt.2023.28239
19 Abdulhameed I. M. , Sulaiman S. O. , and Najm A. B. A. , “Reuse Wastewater by Using Water Evaluation and Planning (WEAP) (Ramadi City-Case Study),” in IOP Conference Series: Earth and Environmental Science, IOP Publishing Ltd, Jul. 2021. doi: 10.1088/1755-1315/779/1/012104
20 Jalal A. D. , Al Ani Y. , Thameel S. S. , and Ismael Z. M. , “Study of the Euphrates River’s Water Quality in front of and behind the Haditha Dam in Anbar Province, Iraq,” IOP Conf. Ser. Earth Environ. Sci., vol. 1222 , no. 1 , 2023, doi: 10.1088/1755-1315/1222/1/012042
21 Allawi M. F. , Hussain I. R. , Salman M. I. , and El-Shafie A. , “Monthly inflow forecasting utilizing advanced artificial intelligence methods: a case study of Haditha Dam in Iraq,” Stoch. Environ. Res. Risk Assess., vol. 35 , no. 11 , pp. 2391–2410, 2021, doi: 10.1007/s00477-021-02052-7
22 Mahmoud O. A. , Sulaiman S. O. , and Al-Jumeily D. , “Artificial Neural Network Model for Forecasting Haditha Reservoir Inflow in the West of Iraq,” in Proceedings - International Conference on Developments in eSystems Engineering, DeSE, IEEE, Dec. 2023, pp. 138–143. doi: 10.1109/DeSE60595.2023.10468804
23 Sayl K. N. , Sulaiman S. O. , Kamel A. H. , and Al Ansari N. , “Towards the Generation of a Spatial Hydrological Soil Group Map Based on the Radial Basis Network Model and Spectral Reflectance Band Recognition,” Int. J. Des. Nat. Ecodynamics, vol. 17 , no. 5 , pp. 761–766, Oct. 2022, doi: 10.18280/ijdne.170514
24 Cristianini Nello , and Shawe-Taylor J , “An introduction to support vector machines and other kernel-based learning methods. Repr,” Introd. to Support Vector Mach. other Kernel-Based Learn. Methods, vol. 22 , Jan. 2001, doi: 10.1017/CBO9780511801389
25 Vapnik and V. N. , “The Nature of Statistical Learning,” Theory. p. 334, 1995.
26 Zakaria Z. A. and Shabri A. , “Streamow forecasting at ungaged sites using support vector machines Streamflow Forecasting at Ungaged Sites Using Support Vector Machines,” 2012. [Online]. Available: https://www.researchgate.net/publication/237078052
27 Basak D. , Pal S. , and Patranabis D. , “Support Vector Regression,” Neural Inf. Process. – Lett. Rev., vol. 11 , Nov. 2007.
28 Doost Z. H. and Yaseen Z. M. , “Allocation of reservoirs sites for runoff management towards sustainable water resources: Case study of Harirud River Basin, Afghanistan,” J. Hydrol., vol. 634 , p. 131042, May 2024, doi: 10.1016/j.jhydrol.2024.131042
29 Tao H. et al. , “Hybridized artificial intelligence models with nature-inspired algorithms for river flow modeling: A comprehensive review, assessment, and possible future research directions,” Eng. Appl. Artif. Intell., vol. 129 , p. 107559, Mar. 2024, doi: 10.1016/j.engappai.2023.107559
30 Tao H. et al. , “Data driven insights for parabolic trough solar collectors: Artificial intelligence-based energy and exergy performance analysis,” J. Clean. Prod., vol. 443 , p. 141069, Mar. 2024, doi: 10.1016/j.jclepro.2024.141069
31 Latif S. D. and Ahmed A. N. , “Ensuring a generalizable machine learning model for forecasting reservoir inflow in Kurdistan region of Iraq and Australia,” Environ. Dev. Sustain., Sep. 2023, doi: 10.1007/s10668-023-03885-8
32 Shabri A. and Suhartono , “Prévision de débit à l’aide de machines à vecteurs de support en moindres carrés,” Hydrol. Sci. J., vol. 57 , no. 7 , pp. 1275–1293, 2012, doi: 10.1080/02626667.2012.714468
33 Yuan L. and Forshay K. J. , “Enhanced streamflow prediction with SWAT using support vector regression for spatial calibration: A case study in the Illinois River watershed, U.S.,” PLoS One, vol. 16 , no. 4 April, 2021, doi: 10.1371/journal.pone.0248489 33844687
