{'fraction_non_alphanumeric': 0.031197301854974706, 'fraction_numerical': 0.018796528606095503, 'mean_word_length': 4.67475784805695, 'pattern_counts': {'":': 0, '<': 1, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Real-time assessment of the Ganga river during pandemic COVID-19 and predictive data modeling by machine learning

In this study, four water quality parameters were reviewed at 14 stations of river Ganga in pre-, during and post-lockdown and these parameters were modeled by using different machine learning algorithms. Various mathematical models were used for the computation of water quality parameters in pre-, during and post- lockdown period by using Central Pollution Control Board real-time data. Lockdown resulted in the reduction of Biochemical Oxygen Demand ranging from 55 to 92% with increased concentration of dissolved oxygen at few stations. pH was in range of 6.5–8.5 of during lockdown. Total coliform count declined during lockdown period at some stations. The modeling of oxygen saturation deficit showed supremacy of Thomas Mueller model (R2 = 0.75) during lockdown over Streeter Phelps (R2 = 0.57). Polynomial regression and Newton’s Divided Difference model predicted possible values of water quality parameters till 30th June, 2020 and 07th August, 2020, respectively. It was found that predicted and real values were close to each other. Genetic algorithm was used to optimize hyperparameters of algorithms like Support Vector Regression and Radical Basis Function Neural Network, which were then employed for prediction of all examined water quality metrics. Computed values from ANN model were found close to the experimental ones (R2 = 1). Support Vector Regression-Genetic Algorithm Hybrid proved to be very effective for accurate prediction of pH, Biochemical Oxygen Demand, Dissolved Oxygen and Total coliform count during lockdown. Supplementary Information The online version contains supplementary material available at 10.1007/s13762-022-04423-1.


Introduction
With the outbreak of the coronavirus pandemic, the life of people is adversely affected. COVID-19 came into light in December 2019 from Wuhan city in Hubei Province of China (Hasnain et al. 2020). It affects the respiratory tract and spreads from person to person through physical contact. As researchers are not sure about its source, having not discovered a vaccine to date, no specific treatment is known yet (Chakraborty and Maity 2020). The only options left with the public are social distancing, lockdown and personal hygiene. COVID-19 pandemic has severely affected countries like Italy, the USA, Pakistan, China, Germany and India etc. and their respective Government applied lockdown strictly (Paul et al. 2020).
As a consequence, people remained indoors and commercial activities were shut down (Wray 2020). India was also under lockdown in the wake of coronavirus pandemic. Restrictions on industrial activities during lockdown significantly lowered air and water pollution. This resulted in the substantial rejuvenation of rivers with a positive impact on stable marine life. During lockdown, the water quality of the Ganga river has improved significantly (Singh 2020). Lockdown has caused a reduction in the disposal of hazardous wastes not only in the Ganga but also in other rivers. The Ganga or Ganges is a 1,680 miles long river in India that originates from the Gangotri Glacier of the western Himalayas in Uttarakhand and the river flows from the northwest to the southeast, merges into the Bay of Bengal. In India, it covers states such as Uttarakhand, Uttar Pradesh, Bihar and West Bengal (Chaturvedi 2012). The Ganga is the lifeline of millions who live along the way. Approximately 43% of India's population lives in the Ganga basin, Editorial responsibility: Samareh Mirkia. which is over 860,000 km 2 and covers 26.3% of the country's total geographical area (Trivedi 2010). It is a sacred river, worshipped as the goddess Ganga in the Hinduism, which witnesses high religious and cultural tourism on its banks. In 2008, the Ganga river declared was the 'National River' of India (Sati 2021). There are over 29 cities, 97 towns and thousands of villages on the banks of the Ganga River (Dutta et al. 2020).
It hosts about 140 species of fish and 90 species of amphibians. For most of its course, it is a wide and sluggish stream that flows through one of India's most fertile and densely populated regions. The major contributors of pollution are tanneries in Kanpur, distilleries, paper mills and sugar mills in the Yamuna, Ramganga, Kosi and Kali river catchments (Dutta et al. 2020). There has been a decrease in fish population along the river, indicating a lack of supportive habitat and water quality degradation. Fishermen report destructive fishing, overfishing and the construction of Farakka barrage as the significant reasons for the decline in fish population from the river-floodplain in Bihar (Dey et al. 2019). In 2017, the river Ganga was considered to be sixth most polluted river in the world (Paul 2017). Lots of steps have been taken to clean the river, but the desired results have not been achieved to date. Drew (2017) mentioned that there are numerous hydropower stations, dams and barrages in the main stem of the Ganga river and its tributaries that are harming and obstructing the flow of the river. Apart from this, construction and widening of roads and tunnels in the upper Ganga region affects the flow of water and leaves the river bed dry. The author termed this as "destructive model of development" and added that the continuous inflow of untreated wastewater in the Ganga, including untreated sewage and hazardous waste from the industry as well as agricultural runoff, is worsening the water quality of the river (Drew 2017).
The river Ganga passes through states that serve the various subsistence needs of people living in the surrounding areas, such as drinking, bathing, fishing and agriculture. Despite being one of the most functionally important rivers in the world, serving an estimated 500 million people, the Ganga is contaminated in large amounts by the discharge of untreated wastewater and untreated industrial waste (Postel and Richter 2012). High population density at the basin, several festive celebrations at the shore, garbage disposals and dumping of corpses directly into the river Ganga have contributed most to its pollution. The river also serves the agriculture in the surrounding region and therefore ends up with a vast amount of chemical fertilizers, pesticides and insecticides that worsen its quality (Chakraborty 2021). A non-point category source of pollution, that is, open defecation, is a significant and worrying cause of the diseasecausing microorganisms that dwell in the river Ganga. In the river beyond Kanpur, fecal coliform levels have crossed the acceptable bathing standard (Srinivas et al. 2020). High pollution level increases the chances of obstructions, ultimately leads to stagnant water condition which breeds diseases such as dengue, malaria and chikungunya. These deadly diseases take millions of lives and cost the country colossal capital every year. The harmful microorganisms originating from fecal pollution are also suspected of having a pivotal role in antibiotic resistance (Lockwood 2016). The government has focused on pollution point source control policies (Srinivas et al. 2020), but no significant improvement has not yet been seen so far.
In this study, changes in water quality of the river Ganga have been evaluated during the lockdown phase and compared with pre-lockdown statistics. Bioinspired mathematical models such as Streeter Phelps, Thomas Mueller, Support Vector Regression with Genetic Algorithm (SVR-GA), Lasso regression, Artificial neural network (ANN), Newton's divided difference (NDD) and Polynomial regression model have been used for the computation of water quality parameters in the river water under both pre-lockdown and during lockdown conditions. Streeter Phelps and Thomas Mueller model were utilized for predicting oxygen saturation deficit in the river Ganga. In addition to this, SVR-GA, Lasso regression and ANN were implemented to model levels of DO, BOD, pH and TC in the Ganga river. Finally, NDD and Polynomial regression models have been used to predict water quality parameters (DO, BOD, pH and TC) in the present condition and future changes in the water quality of the river Ganga such as after unlocking phase-I in India, i.e., 30th June 2020 based on the past trends. SVR-GA is a hybrid algorithm which uses a hyperparameter optimization algorithm (GA) along with a modeling algorithm (SVR) (Jiang et al. 2013). The ability of SVR marked by its margin approach is well suited for all kinds of data and has been successfully used for the modeling of pH and DO before. Lasso Regression model, which has a shrink or reject feature is advantageous when dealing with regression data. This model originates from Ridge regression and is a robust regression algorithm which was also used for lockdown data prediction.
ANN is an oversimplified version of the inter-neuron communication process that takes place in the brain. Their architecture depends on the number of hidden layers and the activation functions, thus leaving a room for improvisation and experimentation (Ahmed 2017). A highly interconnected neural network is very effective for accurate predictions. Still, it tends to over fit on the training data, that is why smaller and effective neural network models have been developed (Sarkar and Pandey 2015). One such model is the Radical Basis Function Neural Network (RBF-NN) is a simple one hidden layer ANN which uses a radical basis as its activation function. In the present study, the RBF-NN model, Levenberg-Marquardt algorithm (LMA) and a two hidden layer Multi-Layer Perceptron (MLP) model for prediction of water quality data have been applied. The RBF-NN model was used with GA as the optimizer of its hyperparameters. GA selects a random population based on the specified constraints and picks out the best possible pair of parameters which have the highest fitness. The GA fitness function has been represented with mean squared error (MSE) in the present work. The present study will be useful in developing technologies for reducing the pollution level in the river Ganga and other rivers, preventing it from returning to the previous state based on the data available from these models. This study is also helpful in formulating/revising the laws dealing with a permissible limit of discharge of industrial effluents in the river Ganga and other natural water resources. The entire analytical study of the Ganga river by using CPCB data was conducted at IIT (BHU) Varanasi (Co-ordinate 25° 15′ 30″ N 82° 59′ 39″ E) Varanasi, India.

Ganga river (literature survey before and during lockdown)
Before lockdown, the river Ganga was not suitable for bathing from Uttar Pradesh to West Bengal with the exception of certain places in Uttarakhand (Webdesk 2020). Figure 1 shows the sources of pollution in the river Ganga.
Over 500 water samples from April to June were analyzed for two consecutive years, i.e., 2017 and 2018 (Haider Naqvi 2020). The amount of DO decreased to less than 2 mg/L due to the hypoxic state of the river bed, which made the river unable to sustain aquatic life. The river Ganga has been used for dumping of industrial and domestic waste in industrial towns that contaminated the river. For instance, 400 tanning units contribute 50 MLD (million liters per day) of hazardous waste and 140 MLD of domestic waste in Kanpur (Haider Naqvi 2020). The water at Haridwar and Rishikesh was found unfit for drinking and bathing. The river water was in class B ever since the foundation of Uttarakhand was laid (Srivastava 2020).
It was reported that only 18 spots were fit while 62 spots were unfit for bathing and the river was almost unfit for drinking with a high level of coliform bacteria in the river. River water from 7 spots out of 86 monitoring stations was drinkable only after disinfection. The spots which were found suitable for drinking purpose after disinfection have been classified as 'class A' (Bhagirathi at Gangotri, Rudraprayag, Devprayag, Raiwala-Uttarakhand, Rishikesh, Bijnor and Diamond Harbor in West Bengal). Water at 78 monitoring stations was not suitable for drinking and bathing in Bhusaula in Bihar, Kanpur, Gola Ghat in Varanasi, Dalmau in Raebareli, Sangam in Allahabad, Ghazipur, Buxar, Patna, Bhagalpur, Howrah-Shivpur in West Bengal and many others. Thus, water available in pre-lockdown condition of the river Ganga was not suitable for drinking and bathing.

Fig. 1 Ganga pollution overview
Amid of lockdown, the CPCB, India reported on April 28, 2020 that the Ganga water has improved significantly for bathing purposes in most of the surveillance centers. Observations recorded during lockdown were as follows: (a) Rise in DO level from 22nd March, 2020 to15th April, 2020. (b) Level of BOD showed a significant decline. The lower range indicated the better health of the river. (c) A gradual rise in BOD level toward downstream stretches of the river Ganga.
Singh (2020) has made a remarkable observation that the level of DO increased from 25 to 30% at five ghats in Varanasi, while the level of BOD decreased up to 35%. Detailed information on changes in water quality parameters during lockdown is tabulated in Table S2 of supporting material.

Study area
The total length of the Ganga river (measured along the Hooghly) from source to mouth is 2, 525 km. The Ganges originates near the Gangotri and travels about 350 km before entering into the village Balawali (district Bijnor) of Uttar Pradesh. It flows from Balawali approximately 1,150 km in Uttar Pradesh and enters the village Sitab Diara, Bihar. It flows 450 km from Sitab Diara and arrives into the West Bengal in Manikchak village (district Malda town). At the Farraka barrage, the Indian government controls water of the Ganga in distributaries namely Hooghly and Padma in the West Bengal and Bangladesh, respectively. It flows 550 km in West Bengal from village Manikchak to Haldia (near Calcutta) before merging into the Bay of Bengal. The 14 real-time stations from Anoopshahar, Uttar Pradesh to Howrah bridge, West Bengal have been considered in the present study for data modeling.

Water quality data set
The data sets of the pre-lockdown condition were collected from the system software 'Suitability of river Ganga water' designed by the Central Pollution Control Board (CPCB), India. This is a real-time water quality monitoring system established by CPCB, which helps in monitoring changes in the river at any given time. In India, CPCB has classified water into five classes (A to E), defining different treatment levels for the various purposes (Table S1 of supporting material shows the classes of water defined by CPCB). This classification helps managers and planners of the water quality monitoring system to set targets for water quality and to design appropriate rehabilitation programs for different water bodies. In India, water quality standards are established by CPCB in terms of the primary water quality criteria.

Water quality parameters
The parameters of water quality considered in the present study were pH, BOD, DO and TC. The pH is a measure of how acidic the water is and about 7.4 is considered as the optimum pH for the river water (Azad 2020). Wastewater from sewage treatment plants comprises of organic matter which is decomposed by the microorganisms and in return the dissolved oxygen is consumed. When more oxygen is consumed than produced, the concentration of DO decreases proportionately and possibly the population of a few susceptible organisms may move away, weaken or die. The DO level fluctuates in every 24 h and seasonally. It varies with the temperature of the water and altitude (APHA 1992). BOD influences the amount of DO in rivers and streams. Higher is the BOD value, faster is depletion of the oxygen in the stream, which means that there is less oxygen available for higher aquatic life forms. High level of BOD has similar effects as low DO concentration such as suffocation and death of aquatic organisms. A test for TC is the most basic measure for bacterial contamination of a water body. TC counts provide a general indication of a water supply's sanitary conditions. The risk of waterborne infection is increased when coliform bacteria are found in drinking water. Several types of malfunctions can cause TC contamination like seepage through the well casing, faulty well cap and well flooding. In order to cope with bacterial contamination, many long-term solutions are available such as inspection, repair of defective wells and installation of continuous disinfection equipment.

Streeter Phelps model
Streeter and Phelps in 1925 developed a water quality model based on field data from the Ohio river, which was initially used by the US Public Health Service (Digvijay Kumar 2017).
In the present study, the Streeter Phelps model has been used to model DO in 14 real-time stations of the Ganga river. Considering a mixed system (no in-/out flow) ( Fig. 2) with the state variables Z and X, where Z is degradable organic matter (mg/L) and X is the DO level (mg/L).
Assuming, (a) Aerobic decay of organic matter 'Z' by bacteria suspended in the water column (1st order kinetics) (b) Consumption of oxygen 'X' during mineralization of 'Z' (c) Exchange of oxygen between water and atmosphere Differential equations and parameters involved in the model are where k d is decay rate (1/Time), k a is aeration rate (1/Time), s is a stoichiometric factor (Mass X/mass Z) and X sat is O 2 saturation level (mg/L).
These equations are valid only when X > > 0. Re-definition of state variables leads to simplified form at boundary conditions: where L is BOD (biochemical oxygen demand) and Stoichiometric factor 's' equals 1 → omitted.
Thus, Eqs. 1 and 2 can be rewritten as: Equation 3 may be expanded by separation of variables for the initial condition L (t = 0) = L o .
Integration of Eq. 3 yields Eq. 5. ( Substituting the value of L from Eq. 5 in Eq. 4 results in Eq. 6 Now, using the method of integrating factor, re-ordering of Eq. 6 yields Multiplication with the factor "exp (k a · t)" mimics Eq. 8 Applying the product rule, Eq. 9 was obtained as where L d = non-point source BOD (mg/L).
It is apparent from Eq. 11 that the soluble concentration of the DO generated in range by non-point sources was combined at the entry point with the attenuation phenomenon of the DO entering into the cell.

NDD model
Polynomial interpolation determines a polynomial of order n that passes through n + 1 point. The NDD model is of interest due to its clarity and precision. This model shows where a function will go, based on its y-values at respective

Fig. 2 A mixed system with no inflow/outflow
x-values (Das and Chakrabarty 2016). Newton's polynomial possesses the permanence property, which means that new data values can be represented by (n + 1)th degree polynomial and the term can be added to previously obtained nth degree polynomial. Accuracy of the polynomial interpolation depends on how close the interpolated point is to the middle of x-values used. It generates only one polynomial of least possible degree that passes through all the data points.

Equation 19 depicts NDD model
Newton's divided difference interpolation method has been used to generate the function depicting water quality of the Ganga river from pre-lockdown to lockdown period. After obtaining interpolating polynomial, it was extrapolated to predict water quality parameters (BOD, DO, pH and TC) till 7th August, 2020 (200th day from 20th January). In the present study, 20th January, 2020 has been marked as 0th day (pre-lockdown data). Using this model, polynomials were obtained for BOD, DO, pH and TC separately for each of the 14 stations and these were plotted to extrapolate values for upcoming months. This model was trained using python programming language.

Polynomial regression model
Polynomial regression determines nonlinear relationship between the value of 'x' and the corresponding conditional mean of 'y' (Ostertagová 2012). The expected value of 'y' can be modeled as nth degree polynomial, yielding a general polynomial regression model (Eq. 13) In this study, the polynomial regression model was used to model values of DO, BOD, pH and TC as a function of time to analyze and predict the Ganga water quality till 7th August, 2020. The model was trained to generate polynomials of degree 2, 3 and 4 for DO, BOD, pH and TC at realtime stations. Just to maintain consistency in results, this model was also trained using python programming language. Vapnik et al. (1997) developed an algorithm that used the earlier work of Support Vector Machines to address regression problems, which was then known as Support Vector Regression (SVR). The most powerful aspect of SVR is that it takes into account the error limit of epsilon, which means that an error between the predicted and the true value is

Radical basis function kernel support vector regression with genetic algorithm (SVR-GA)
allowed to lie within the range of [− , ] and that no error greater than that is accepted. Using this rule, a function 'f' is generated that would be able to fulfill this condition. In linear form, function 'f' can be estimated as: where ⟨w, x⟩ is the dot product of w and x.
Flatness in Eq. 14 would mean to obtain a small value of w by minimizing the norm (Smola and Schölkopf 2004).
Usually, it is not always possible to search for a function 'f' which would produce data pairs which lie in the epsilon margin. Therefore, soft margin like approach is used, where slack variables ( i, i * ) representing the distance between the true values and the epsilon tunnel are introduced. This addition helps in making the optimization problem feasible. Thus, a risk function 'R' is defined by incorporating an epsilon insensitive loss function with a constant 'C'. The regularized convex optimization problem (Smola and Schölkopf 2004) can be written as: where C is a positive constant that plays a role in determining the extent to which a deviation from the error tunnel is tolerated.
This can be seen as a trade-off between the model flatness and empirical risk (Smola and Schölkopf 2004). Lagrange construction of the primary function gives a quadratic optimization problem that is solved for i , i * (Vapnik and Vapnik 1998): Maximize: Here, ( i , i * ) are Lagrange multipliers.
The vectors x i corresponding to non-zero Lagrange multipliers are then called as support vectors (Vapnik et al. 1997).
After performing optimization, f(x) can be obtained as: Subject to: A kernel K x, x i is defined for a nonlinear regression model. The kernel generates an inner product in some feature space and solves the corresponding dual optimization problem (Vapnik et al. 1997). Some examples of kernels are Polynomial, Gaussian, Radical basis function. In the present study, Radical basis function (RBF) kernel has been used. The kernel and the nonlinear objective function can then be written as: The variables C, , are user-defined while implementing SVR. Since these hyperparameters are crucial for the proper functioning of the algorithm, their right selection is of utmost importance. Genetic Algorithm (GA) was used to meet this requirement. It was first introduced by Holland (1992) and is a natural evolution-based technique that seeks inspiration from Darwin's theory of survival of the fittest. The GAs are being applied successfully in a number of areas such as job shop problems (Falkenauer and Bouffouix 1991;Nakano and Yamada 1991), control system optimization (Krishnakumar and Goldberg 1992), pipeline optimization (Goldberg and Kuo 1987), molecular geometry optimization (Deaven and Ho 1995) and feature subset selection (Yang and Honavar 1998). Goldberg (2006) has outlined the differences between GAs and other optimization techniques. Some of the advantages include the use of the coding of parameter set and not the parameters themselves, search from a population of points, using payoff information when binding to auxiliary information and the use of probabilistic transition rules over deterministic rules. These four advantages give GAs an edge over other commonly used traditional optimization techniques. GA can be broken down into four steps where the GA selects a population of individuals and computes the fitness function for each individual. Individuals with the highest fitness function are chosen to produce offsprings. The second and third steps involve crossovers and mutations between the selected individuals, which lead to the formation of a new generation. Finally, the fitness function for this new generation is calculated and the process repeats from step one unless the goal of the algorithm is reached.
The combination of SVR with a real-valued GA has been used as the optimization algorithm for SVRs hyperparameters ( C, , ). Liu et al. 2013 used this hybrid model for water quality estimation (DO and temperature) and compared it with traditional SVR and BP neural network models. Their RGA-SVR model outperformed over the traditional Wang et al. (2011) used SVR model with GA automated SVR parameter selection for the prediction of permanganate index (CODMn), ammonia-nitrogen (NH 3 -N) and chemical oxygen demand (COD) and found this superior to MLR algorithm.

Lasso regression
The lasso regression (LR) model was developed by Tibshirani (1996), which is built upon the robustness of ridge regression. It preserves the quality features of ridge regression and subset selection by shrinking some coefficients and setting others to zero. For data x i , y i , i = 1, 2, … n. where, x i = x i1 , … x ik are the predictor variables and y i are the responses.
The lasso optimization problem can be solved by minimizing Eq. (20).
An assumption is made that x ij are standardized to avoid any dependence on the measurement scale. Here, t ≥ 0 is a prespecified tuning parameter which controls the amount of shrinkage applied (Tibshirani 1996). Lasso regression has been previously used as a predictor algorithm for water quality estimates (Ahmed et al. 2019;Brooks et al. 2016).

Artificial neural network (ANN)
ANN is a very powerful algorithm whose architecture is inspired by the process of communication of neuronal cells. ANN can take many forms and in the present study the LMA, MLP and RBF-NN have been focused. ANN work immensely well with water quality data (El-Shafie et al. 2011). Authors compared the ANN model with the linear regression model and found that ANN has high accuracy as compared to the other models. Najah et al. (2013) performed a comparative study with different ANN models like RBF-NN, MLP-NN and Linear Regression model (LRM) for water quality estimation and found RBF-NN superior to MLP-NN and LRM. Authors showed that RBF-NN could be a reliable water quality predictor model. Both of these studies used a trial and error basis for determining the number of hidden layers and neuron units in the layers.
ANN with LMA The chosen ANN for the pH, DO, BOD and TC models consisted of one input layer with fourteen input variables, one hidden layer and one output layer. In addition (20) Minimize n to this, TC consisted of a similar number of hidden and output layers except for 12 input variables. The designed ANN models (pH, DO, BOD and TC) were trained for utilizing LMA as it rapidly solves and tunes the model parameters in comparison with other algorithms (Singh et al. 2009). The model simulation has been done by ANN tool in MATLAB 2017a.
MLP The MLP is a neural network with completely connected layers that are stacked against each other. Each layer is activated using a particular activation feature. In order to construct an MLP, two fully connected hidden dense layers were superimposed and activated by the function 'rectified linear unit' (RELU) from the python library 'Keras.' Data were then iterated over sufficient epochs until it converged to produce the lowest MSE (Gardner and Dorling 1998).

RBF-NN
The RBF is a feedforward neural network with one hidden layer between the input and output layer. In an RBF-NN, all neurons from a layer are connected to all neurons in the next layer. Harpham et al. (2004) highlighted the advantages of applying GAs to RBF-NN, thus creating a hybrid. This addition eliminates the test and error approach since GA automatically produces an optimal solution for hyperparameters. In the present study, a GA-based search algorithm has been applied to find optimal hyperparameters for RBF-NN model.

Results and discussion
Statistics of the river Ganga: pre-lockdown and during lockdown As shown in Table 1, the parameters (pH, DO, BOD and TC) of the river Ganga varied in the lockdown period.
At Anoopshahar, pH increased by 0.1, followed by an increment in BOD and DO with no detectable change in the values of TC. The increment was in the range as delineated by CPCB, India (shown in Table S1 of supporting material). Thus, this water quality at Anoopshahar permitted all the uses of water.
In the Farrukabad and Kannauj, there has been a decrease in pH, TC and DO with the simultaneous increase in BOD level. Though these changes were not positive yet the Table 1 Water quality parameters of the river Ganga during pre-lockdown and lockdown period  variation in pH, DO, TC and BOD were in the permissible range of CPCB (Table S1 of

supplementary information).
In Bithoor and Jajmau Kanpur, there was a decrease in pH, DO and BOD and water at these stations were considered pollution-free which can be used for drinking, bathing, irrigation and other purposes. Considering TC, its level was increased in Bithoor but declined in Jajmau, Kanpur but it was in the range given by CPCB in Bithoor but not in Jajmau. Thus, the river ganga water can be used for all purpose in Bithoor but not in Jajmau, Kanpur.
In Assi ghat and Malaviya Bridge, Varanasi, a decrease in pH and DO level together with increase in BOD and TC was observed. These changes were not in an acceptable range of CPCB, India.
In Patna, the water quality was found unsuitable owing to a slight decrease in pH and DO and significant augmentation in BOD indicated a high level of pollution. But TC was found to decline here and it was within the acceptable range given by CPCB. At Bhagalpur, Bihar water sample was found unfit for drinking, bathing and irrigation.
In Berhampore, Monipurghat, Nadia; Palta, Barrackpore; Serampore, Hooghly and Howrah bridge, West Bengal a decrease in the pH, DO and BOD was observed with increase in TC and it was much higher than the acceptable range given by CPCB. The decrement in pH, DO and BOD was in the range of permissible limit demarcated by CPCB. Thus, these stations also possessed some positive changes similar to Anoopshahar, Farrukabad, Rajghat and Varanasi. The changes in pH, DO, BOD and TC during lockdown were studied and compared with pre-lockdown data as shown in Table 1.
As shown in Table 1, after lockdown pH in all stations was within an acceptable range of 6.5-8.5. Before lockdown, only two stations, namely Malviya Bridge, Varanasi and Serampore, Hooghly exceeded this range. But during the lockdown, these stations were within the standard range as depicted by CPCB. These changes replenished the Ganga river after a long gap.
It is appropriate to mention that there had been an insignificant change in water quality parameters during lockdown 3.0 and 4.0 as the time difference was of 14 days only.

Streeter-Phelps model
Streeter Phelps model equation was used to find O 2 saturation deficit (D) for 14 real-time stations of the river Ganga ( Table 2). The value of 'D' was experimentally determined and compared with the theoretical value derived from the model (Fig. 3).   Table 2 that this model was not accurate for predicting the value of 'D' as it showed a very high percentage of error for each real-time station of the river Ganga together with a sluggish coefficient of regression (R 2 = 0.57). Bhargava (1986) revealed that Streeter Phelps models could not precisely predict DO sag of a stream instantly after sewage outfalls as model does not take bio-flocculation and sedimentation of the adjustable BOD into account. Jha et al. (2007) applied Streeter Phelps models for analyzing one of the most polluted rivers in India, i.e., the river Kali and showed the negative outcome with under and overprediction. Kaushik et al. (2012) modified Streeter Phelps model by considering the settle able component of BOD and the effect of storage zones on river's DO. Authors found that the modified model was able to predict parameters of rivers more accurately.

Thomas and Mueller model
Thomas and Mueller model was used to find 'D' including non-point sources in the river water for 14 real-time stations. The theoretical results did not show a close agreement with the experimental values (Fig. 4, Table 3). However, this model had a slightly better fit as compared to Streeter Phelps model based on the value of R 2 (= 0.75).

NDD model
The water quality parameters were predicted for 7th August, 2020, i.e., the 200th day starting from 20th January, 2020. Table S3 of supporting material shows the value of predicted parameters on 7th August, 2020.
Assuming that the conditions do not return to original pre-lockdown conditions, this model analyzed the situation from pre-lockdown to lockdown and predicted the possible values for the near future. It also provided incorrect results for 3 stations, i.e., Rajghat, Patna and Bhagalpur, which do not seem to be possible. It was inferred from this model that the actual values were close to predicted values (pH, BOD, DO and TC) for 7th August, 2020.

Polynomial regression model
Water quality parameters were predicted using 2, 3 and 4 degree polynomials on 30th June, 2020 (i.e., on day 162 starting on 20 January 2020) and these values are shown in Tables S4, S5, S6, S7 and S8 of the supporting material. For prediction, 30th June, 2020 was selected as it falls close to 31st May, 2020, and reduces the chance of error that could increase if one moves away from the 31st May, 2020 data values. Considering the range of values from these polynomials, it can be predicted that the water quality parameters (BOD, DO, pH and TC) will fall within the range of values that were predicted for 30th June, 2020.
The actual value of these parameters will depend on how the level of pollution goes back to the previous one. The values will more likely to fall in the ranges stated in Table S4, S5, S6, S7 and S8 of the supporting material.
This model analyses the situation from pre-lockdown to lockdown statistics and predicts somewhat possible values for near future. From the graphs, it was clinched that all values fall in acceptable range except BOD at Patna and Bhagalpur. Also, the DO levels at Rajghat, Patna and Bhagalpur show steep changes. The quality of the Ganga  water appeared to be improved from pre-lockdown situation.
Since the values and curves for polynomial second degree were the same as for NDD model, this implied that the NDD model was the reliable one. The polynomial regression model was better than NDD as it provided the range (generated by 2nd-, 3rd-, and 4thdegree polynomial) in which the predicted parameters would lie. The polynomial regression model fitted better than NDD as most of the actual values lie in or near the predicted range. This is due to the fact that NDD is an interpolation method; however, in the present work it predicts the future values by extrapolating the curve. Also, NDD resulted in the seconddegree polynomial, which does not correspond to the actual variation in the parameters in due course of the time.

SVR-GA
The SVR model, a kernel-based regression model was used and its parameters, i.e.,C, , were optimized for each water quality parameter with the help of a simple GA. Here, GA was employed using a one-point crossover function having mutation with a root mean square as the fitness measure. The algorithm was performed on a population of 50 randomly selected individuals iterated upon 30 generations with a crossover probability of 0.5 and a mutation probability of 0.02. Upon running, the algorithm first randomly selects 50 individuals with their ranges being, C = [1, 100], = [0.1, 1] , = [0.001, 0.01] . Each of these individuals undergoes crossover and mutation, after which the fitness of an individual is calculated. This process runs over a set of 30 generations with each generation producing a slightly better generation than itself. From the last generation, the individual with the highest fitness function is chosen as the best individual.  The model showed overfitting with zero MSE upon running. To solve this, fivefold cross-validation was used wherein the data were split into test and train set five times. This helped in solving overfitting. The model reported different MSE for pH, DO, BOD and TC in Table 4.
The R 2 value for the pH, DO and TC approached unity signifying a perfect fit. BOD, however, showed a low R 2 value (Table 5).
These values show that out of the three parameters studied, the SVR-GA model works best for the pH, DO with R 2 value approaching unity (Table 6, Fig. 5).
For TC analysis, data from January were paired with other parameters (pH, DO, BOD and TC). This was used as the input data set for the prediction of TC during the lockdown. SVR-GA gave an R 2 value of 0.99, pointing toward a high goodness of fit.

Lasso regression
In this model, a 't' value of 0.01 was used. Trial and error basis were used and alpha values have been modified and tested. The alpha value of 0.01 was finally selected. The  (Tables 4, 5, 7, Fig. 6).
Apart from this, Lasso regression performed robustly for TC prediction and gave R 2 values of 0.93.

ANN with LMA
In the present study, a nonlinear transfer function (TANSIG) in the hidden layer was used for ANNs. The ANN predicted output and error in pH, DO, BOD and TC model for realtime stations of the river Ganga are shown in Table 8.
The plots between experimental and theoretical values of pH, DO, BOD and TC values are shown in Fig. 7.
The linear R 2 values for training, validation and test data sets used for all the models (pH, DO, BOD and TC) are represented in Figure S1 of supporting material. The selected ANN generated the most trustworthy models for all three data sets. The experimental and theoretical values pH, DO, BOD and TC derived through these models were in close agreement (R 2 = 0.92-1.0). This suggested that the model fitted well with the experimental data sets. ANNs have also been used to estimate and forecast the water quality variables like modeling of DO and BOD in the river water (Singh et al. 2009).
Similarly, Shamseldin (2010) used ANN for forecasting the flow of rivers in the developing countries. The chlorine concentration in the water distribution network has been assessed through ANN by Cordoba et al. (2014). ANN has been used for the prediction of water quality index (Bansal and Ganesan 2019;Gupta et al. 2019). The results of ANNbased modeling have shown significant accuracy over other traditional modeling techniques. Shakeri Abdolmaleki et al. (2013) applied ANN for predicting copper concentration in the drinking water reservoir of Iran. Authors found that predicted values were very close to the real concentration of copper. The BOD, DO and other water quality parameters were forecast by using ANN in the Karoon river (Emamgholizadeh et al. 2014). The predicted values were close to the real ones, which proved ANN, an effective modeling technique for predicting water quality variables in the river. Gomolka et al. (2018) used ANN to estimate the BOD level and for controlling rate of aeration in river.

MLP
Two RELU activated hidden layers were used and epochs were performed until full convergence of loss function was observed.
The MLP showed excellent results for pH, DO and BOD with R 2 values very close to one (Tables 4,5,9,Fig. 9) but it's prediction for TC was not at par with its performance for the other indices.

RBF-NN
An RBF-NN was applied with GA to optimize the hyperparameters like learning rate (lr) and several kernels (k). A multi-feature input algorithm was constructed which picked the hyperparameters using a GA where MSE was chosen as the fitness function. The initial population was picked out where the kernel number and learning rate constrained to a range of [1,7] and [0.0001, 0.02], respectively. An initial population size of 50 was chosen. The algorithm was run

Comparative study
Several studies conducted by other researchers on the quality of the Ganga's water during lockdown have been discussed in detail in Table 11. The outcomes of their work with the technique involved in the estimation of water quality parameters are included and have been compared with the present study.

Conclusion
In the present study, the water quality of the river Ganga has been evaluated during the lockdown and predicted for post lockdown conditions. It was found that the pH of all stations was within the standard range 6.5-8.5 in lockdown period. An increment in DO has been observed in Anoopshahar. Apart from that, all stations had DO > 5 mg/L except Patna and Bhagalpur. It was noted that Patna and Bhagalpur stations had very high BOD levels compared to other stations that signified a substantial level of pollution. During the lockdown, Anoopshahar, Farrukabad, Rajghat, Kannauj and Assi ghat, Varanasi had BOD exactly as 3 mg/L. The decrement in TC was observed in Farrukabad, Rajghat, Jajmau, Patna and Palta during the lockdown period. In the present study, bioengineered mathematical models, namely Streeter Phelps, Thomas Mueller, SVR-GA, Lasso Regression, ANN, NDD and Polynomial regression, were attempted to predict the water quality parameters. Polynomial regression and NDD model were able to predict pH, BOD, DO and TC levels from 20th January, 2020 to 30th June, 2020 and 07th August, 2020. Thus, NDD and polynomial regression models were used to predict the near future values of the water quality parameters (BOD, DO, pH and TC) of the river Ganga. But NDD model was not able to predict TC values. However, the NDD model is simply an interpolation method, which can be further extrapolated to predict the values. On the other hand, polynomials of 2, 3 and 4 degrees were generated in polynomial regression model to obtain the range of predicted values. The NDD model is verified by the polynomial degree 2 regression that appeared to be acceptable after comparison. Overall, polynomial regression model was better than NDD model. In ANN models using LMA, the best validation performance was observed with ten neurons as 0.08877, 0.38177, 34.7517 and 16,371,716.42 at epoch 3, 3, 2 and 7 for pH, DO, BOD and TC, respectively. Additionally, SVR-GA hybrid was superior compared to its counterparts such as Lasso Regression and RBF-NN in the prediction of real-time water quality data indices such as pH, DO of the river Ganga. It also produced the best results for TC forecast during the lockdown period. It was unable to predict the lockdown BOD values correctly. MLP was the second-best algorithm after SVR-GA, which showed accurate fits for three (pH, DO, BOD) of the indices but couldn't accurately predict TC levels. SVR-GA and MLP showed a nearly perfect fit for the pH and TC data with significantly lesser MSE values. The R 2 value for pH modeled by SVR-GA (R 2 = 0.99) and MLP (R 2 = 0.99) was near unity, pointing to a perfect fit. Similarly, the R 2 value for TC modeled by SVR-GA is 0.99. The abnormal high deviations in BOD modeling in all the models except MLP (R 2 = 0.99) can be due to the presence of outliers. It can, therefore, be stated that SVR and MLP are relatively quicker and better choices as the modeling techniques for predicting values of water quality parameters of the river Ganga. Thus, in the present study, SVR-GA, MLP and polynomial regression model were found superior to NDD for the prediction of water quality parameters in the long run. Moreover, as these models are fitted with the least error, there are numerous applications where their use is highly recommended. Like, SVR-GA algorithm can be effectively implemented to estimate parameters of water, MLP is capable of modeling a sequencing batch reactor that will treat municipal wastewater. The comparison of different models showed their applicability in predictive modeling of river flow and wastewater treatment.

Table 11
Comparative assessment of the present work with that of other researchers to ascertain changes in the Ganga river's water quality characteristics during lockdown Objective Outcomes

References
Three water quality parameters were estimated using Sentinel-2 at seven stations throughout the full length of the Ganges from Rishikesh to Diamond Harbor (March-May, 2020) Chromophoric dissolved organic matter decreased over the Ganges stretch Decreases in total suspended matter to 55% No substantial change in chlorophyll a Muduli et al. (2021) To investigate changes in the river's water quality between 25 March and 14 April 2020, using Sentinel-2 at Varanasi, Prayagraj, Kanpur and Haridwar stretches The river's turbidity decreased significantly along each segment of the river Garg et al. (2020) Investigation of the coliform bacterial load at two locations along the Ganges River in Kolkata (2nd Hooghly Bridge and Babughat) TC levels decreased significantly in the month of April 2020 during COVID-19 lockdown The abrupt decline could be attributed to the failure of industrial units, tourism and traffic movements and decreased garbage disposal and fishing activity Mukherjee et al. (2020) From January to July 2020, arsenic-polluted stretches of the river's middle and lower sections were studied The overall drop in BOD and COD readings and the increase in pH indicate that the Ganges water quality improved during the shutdown TDS analysis revealed little change in the middle reach and a slight drop in the lower reach The lockdown period indicated a general increase in the water quality of the Ganges river's middle and lower reaches, possibly as a result of reduced industrial pollution and agricultural output Duttagupta et al. (2021) The lockdown's impact on Ganga water quality The lockdown period occurs in conjunction with unexpected high rainfall (60% above normal), reduced irrigation and power demands in the basin resulted in increased storage and river flow, hence improved the river's purity DO concentrations increased while BOD and nitrate concentrations showing decreasing trend Drinking water was available in the upper reaches (Class A), while outdoor bathing is available in the middle and lower reaches (Class B) Dutta et al. (2020) Assessment of the Ganga water quality during lockdown in Palta and Diamond Harbor, West Bengal The turbidity level was lowered to 94% during the lockdown COD reduced from 12 to < 6 mg/L and BOD decreased from 3 to 1.2 mg/L The level of dissolved oxygen surged from 6 to 12 mg/L Low total and fecal coliform levels suggested that the bacteriological quality of the water improved Roy et al. (2021) To determine the influence of Patna's urbanization on the river Ganga's water quality prior to and following the COVID-19 lockdown The deoxygenation rate constant and reaeration rate coefficient values were found to be extremely high during the lockdown time, showing a rapid decay process and increased aeration as a result of the high velocity and discharge If input variables were limited, the BOD-DO developed by Streeter-Phelps (1925) can still be used Water quality maps based on satellite (Landsat-8) data showed turbidity levels before and after the COVID19 national lockdown, indicating a significant improvement.
Singh and Jha (2021) The results demonstrated an improvement in water quality relative to the DO level, which was beneficial to aquatic biodiversity Dhar et al. (2020) In this study, pH, BOD, DO and TC were evaluated pre-, during and post lockdown using CPCB real time data and assessed via machine learning algorithms pH of all stations was in the range of 6.5-8.5 during lockdown All stations had DO > 5 mg/L except Patna and Bhagalpur BOD was reported as 3 mg/L in Anoopshahar, Farrukabad, Rajghat, Kannauj and Assi ghat, Varanasi TC declines in Farrukabad, Rajghat, Jajmau, Patna and Palta SVR and MLP were found to be better techniques for predicting values of water quality parameters of the river Ganga in real time Polynomial regression model predicted BOD, DO, pH and TC of the river Ganga better than NDD model Present study