{'fraction_non_alphanumeric': 0.030398736675878404, 'fraction_numerical': 0.023643461859016536, 'mean_word_length': 4.768598178137652, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, '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}}
An Integrated Methodology to Analyze the Total Nitrogen Accumulation in a Drinking Water Reservoir Based on the SWAT Model Driven by CMADS: A Case Study of the Biliuhe Reservoir in Northeast China

Human activities, especially dam construction, have changed the nutrient cycle process at the basin scale. Reservoirs often act as a sink in the basin and more nutrients are retained due to sedimentation, which induces the eutrophication of the surface water system. This paper proposes an integrated methodology to analyze the total nitrogen (TN) accumulation in a drinking water reservoir, based on the soil and water assessment tool (SWAT) model driven by the China Meteorological Assimilation Driving Datasets for the SWAT model (CMADS). The results show that the CMADS could be applied to drive the SWAT model in Northeast China. The dynamic process of TN accumulation indicates that the distribution of TN inputted into the reservoir fluctuated with the dry and wet seasons from 2009–2016, which was mainly governed by the amount of runoff. The annual average TN input and output fluxes of the Biliuhe reservoir were 274.41 × 104 kg and 217.14 × 104 kg, which meant that 19.76% of the TN input accumulated in the reservoir. Higher TN accumulation in the reservoir did not correspond to a higher TN load, due to the influence of flood discharge and the water supply. Interestingly, a higher TN accumulation efficiency was observed in normal hydrological years, because the water source reservoir always stores most of the water input for future multiple uses but rarely discharges surplus water. The non-point sources from fertilizer and atmospheric deposition and soils constituted the highest proportion of the TN input, accounting for 35.15%, 30.15%, and 27.72% of the average input. The DBWD (Dahuofang reservoir to Biliuhe reservoir water diversion) project diverted 32.03 × 104 kg year−1 TN to the Biliuhe reservoir in 2015–2016, accounting for 14.05% of the total annual input. The discharge output and the BDWD (Biliuhe reservoir to Dalian city water diversion) project output accounted for 48.75% and 47.74%, respectively. The effects of inter-basin water diversion projects should be of great concern in drinking water source water system management. There was a rising trend of TN level in the Biliuhe reservoir, which increases the eutrophication risk of the aquatic ecosystem. The TN accumulated in the sediment contributed to a large proportion of the TN accumulated in the reservoir. In addition to decreasing the non-point source nitrogen input from the upper basin, discharging anoxic waters and sediment with a high nitrogen concentration through the bottom hole of the dam could alleviate the nitrogen pollution in the Biliuhe reservoir.


Introduction
On a global scale, human activities-such as agricultural fertilization, domestic and industrial sewage discharge, and fossil fuel combustion-have dramatically increased the nutrient loads transported by rivers, which has resulted in severe eutrophication problems in aquatic ecosystems [1,2]. Reservoirs, acting as the important engineering controls in rivers, have greatly changed the nutrient cycles in the basin. The building of dams impedes the transport of pollutants and nutrients from basins to oceans by rivers [3]. Due to the long water residence time (compared with rivers) and the enhanced particle settling velocity, pollutants will deposit in the reservoir along with other sediment [4]. Additionally, water source reservoirs always store most of the water input for future multiple uses, but rarely discharge surplus water, which leads to the accumulation of pollutants. After decades of operation, the contamination in the reservoir water and sediment become increasingly noticeable, until finally this limits the function of the water supply [5]. China is the country with the largest number of reservoirs, which has built 98,002 reservoirs with a total storage capacity of 932 billion m 3 to fulfill the growing demands for flood control, water resources, and power generation [6]. Due to rapid social and economic development in recent decades, the eutrophication problem of reservoirs is aggravated in China. The eutrophication status assessment of 943 reservoirs across the country demonstrates that 28.8% of the reservoirs are in a eutrophic state [7]. In addition, reservoirs in many other countries are also suffering the eutrophication and water quality deterioration problems [8][9][10].
Nutrient accumulation in reservoirs occurs when nutrients are retained due to the construction of a dam, which could be calculated by the nutrient input flux and output flux. A wide range of nitrogen retention rates have been reported in existing studies, which implies that the process of nutrient transportation varies in different basins [11,12]. Nutrient transportation in the basin is complicated, and sometimes the inter-basin water diversion project makes quantitative analysis more difficult. Physical-based models, such as the soil and water assessment tool (SWAT), agricultural non-point source pollution model (AGNPS), and Hydrological Simulation Program-Fortran (HSPF) have been developed to evaluate the nutrient loads since the 1970s [13][14][15]. The SWAT model has been widely used to estimate the non-point pollution yields, and the model performance has been confirmed in many typical basins [16]. However, the model requires high-resolution input data, especially meteorological data, which is the important drive factor of the nutrient cycle [17]. Sparse spatial data, measurement errors, and the sensitivity of the hydrologic parameters would limit the model accuracy [18]. In recent years, various atmospheric reanalysis datasets such as the JRA-55, the ERA-Interim, the CFSR, and the MERRA have been developed and used globally [19][20][21][22]. The China Meteorological Assimilation Driving Datasets for the SWAT model (CMADS) are the latest East Asia atmospheric reanalysis datasets developed by Dr. Xianyong Meng from the China Agricultural University (CAU), which have attracted widespread attention [23][24][25]. The CMADS series of datasets have been verified in different basins of China and Korea and have performed well in the Heihe basin, Manas River Basin, Qinghai-Tibet Plateau, Han River Basin and so on, however the application of CMADS mainly focuses on hydrological simulation and there are few studies about non-point source pollution simulation driven by the datasets, especially in the cold regions of Northeast China [26][27][28][29][30][31][32][33].
Excessive nitrogen is one of the main problems facing surface freshwater systems today [34]. There is widespread research on the monitoring, simulation and assessment of nitrogen in reservoirs [35,36]. However, the quantitative analysis of the dynamic accumulation process of nitrogen in the reservoirs is difficult because of the various nitrogen sources and complicated transportations. Dalian city is one of the most important cities in Northeast China, which is also a water-deficient city. Biliuhe reservoir, the drinking water reservoir of Dalian city, is facing severe nitrogen pollution and the concentration of TN has exceeded Grade V in China's water quality standard in recent years [37]. A systematic water transfer network has been built to ease the shortage of water resources in the Dalian area, which brings about new issues in environmental management between the different basins. In the Biliuhe reservoir basin, there are some studies about the runoff but few about nutrient transport process [38,39]. The existing research on nitrogen accumulation of the Biliuhe reservoir is based on an empirical model and the results are static and simple, so further analysis is necessary [40]. The effects of the inter-basin water diversion project on the reservoir total nitrogen (TN) accumulation are also rarely studied. The aims of this paper are (1) to propose an integrated methodology for analysis of the reservoir TN accumulation based on the SWAT model driven by CMADS, and (2) to analyze the dynamic process of the TN accumulation in the Biliuhe reservoir.

Study Area
The Biliuhe reservoir (122 • 29 24.11 N; 39 • 49 12.52 E), located 175 km northeast of Dalian city, is a large canyon-shaped reservoir with multiple uses: water supply, flood control, power generation, and agricultural irrigation. The maximum storage capacity and the effective storage capacity of the reservoir are 9.34 × 10 8 m 3 and 6.44 × 10 8 m 3 , respectively. The mean surface water area of the reservoir is 55.60 km 2 and the mean water depth is 12.84 m. With a designed annual water supply of 4.38 × 10 8 m 3 , the Biliuhe reservoir accounts for 80% of the domestic and industrial water supply for Dalian city. The Yushi reservoir, located in the upper stream of the Biliuhe River, has a storage capacity of 0.88 × 10 8 m 3 . There are two main inter-basin water diversion projects in the basin: the Biliuhe reservoir to Dalian city water diversion project (BDWD), and the Dahuofang reservoir to Biliuhe reservoir water diversion project (DBWD). The Biliuhe reservoir to Dalian city water diversion project began to divert water in 1984, and the designed water diversion of the project is 4.38 × 10 8 m 3 year −1 . The Dahuofang reservoir to Biliuhe reservoir inter-basin water diversion project was completed in October of 2014. The designed water diversion of the project is 3.29 × 10 8 m 3 year −1 . By the end of 2016, 3.2 × 10 8 m 3 water had been transferred into Biliuhe reservoir to alleviate the severe drought in the Dalian area.
The reservoir basin reaches an area of about 2085 km 2 , with the three main tributary rivers being Biliuhe River, Geli River, and Bajia River ( Figure 1). The reservoir catchment has a temperate monsoon climate characteristic, with an annual average temperature of 10.6 • C, hot summers and cold winters. The annual average precipitation is 743 mm and 75% of the precipitation is centralized in the flood period (June-September). The icebound season of the Biliuhe reservoir is long and lasts from November-March. The upper catchment of the reservoir is mainly covered by forest (72%) and agricultural land (19%), which can be seen from the Figure 2. There are about 256,000 residents in the basin and they mostly live along the bank of the river. Agriculture dominates the economic development in the basin.

SWAT Model and Data Source
The SWAT (soil and water assessment tool) model is a basin-scale, semi-distributed, and physically based model developed by the United States Department of Agriculture Research Service in the early 1990s [41]. It has been widely applied to predict the impacts of land management practices on water, sediment, and nutrient loss in large, complex basins. The model partitions the basin into multiple sub-basins, which are further divided into hydrological response units (HRUs) consisting of homogeneous land use, soil characteristic, and slope. The hydrological sub-model is based on the water-balance equation to simulate the processes of precipitation, infiltration, surface runoff, evapotranspiration, lateral flow, and percolation [42]. In this study, the Biliuhe reservoir upper basin was divided into 99 sub-basins and 805 HRUs. The simulation of nutrients in the catchment was fully considered in the nutrients module, including migration and transformation in soil, the transportation process from the upper catchment to downstream through the main river channel, and the surface runoff or interflow [19]. The SWAT model can also simulate the water and nutrient transfer between reservoirs, the reach, and sub-basins, or the water transfer between different basins.    The version of SWAT used in this study is the ArcSWAT 2012 (Texas A&M University, College Station, TX, USA), which is an ArcGIS-ArcView extension and graphical user input interface for the SWAT model. The spatial data used in the SWAT model includes digital elevation data (DEM), land cover data, and soil type data. The 90 × 90 m DEM data was obtained from the International Scientific & Technical Data Mirror Site, Computer Network Information Center, Chinese Academy of Sciences (http://www.gscloud.cn). The land cover data of the 2000s (1:100,000) and soil information map (1:1,000,000) were provided by the Data Center for Resources and Environmental Sciences, Chinese Academy of Sciences (RESDC) (http://www.resdc.cn). The land cover in the study area could be classified into five types: forest (72.30%), farmland (18.94%), grassland (2.40%), low-density residential (2.76%), and water body (3.60%). There are four soil types distributed within the basin: brown earth, young brown earth, meadow brown earth, and meadow soil ( Figure 2). The main soil attributes were obtained from the China Soil Database or calculated by the soil-plant-atmosphere-water (SPAW) model. Some attributes that could not be obtained were taken from the soil database of the SWAT model. The soil particle size transformation from an international system to the US system was completed by the cubic spline interpolation method. The basic data of fertilization per hectare, manure of livestock and poultry breeding, and rural domestic sewage came from the report of the investigation of pollution sources and water quality in the Biliuhe reservoir (2012). After an investigation, there was found to be nine point-source pollution outlets within the catchment: Dalian Buyunshan hot spring bath center, Dalian Guanba Silk Food Co., Ltd., Dalian Jiantang hot spring bath center, Dalian Jiantang hot spring bath center east sewage, Dalian Xingzhi Canned Food Co., Ltd., Yingkou Epps Sewing Products Co., Ltd., Shizijie Town comprehensive sewage outlet, Wanfu Town east comprehensive sewage outlet, and Wanfu Town south comprehensive sewage outlet [40]. The regulation of the Yushi reservoir could be simulated directly by the reservoir module of the SWAT model. The model calibration, sensitivity analysis, and uncertainty analysis were achieved by the Sufi-2 (Sequential Uncertainty Fitting, version 2) algorithm, which was coupled with the SWAT-CUP. The model performance was evaluated by the coefficient of determination (R 2 ), Nash-Sutcliffe simulation efficiency (NSE), and percent bias (PBIAS), which are defined as [43] where O i and S i are the observed and simulated data, respectively. O avg and S avg are the average values of the observed and simulated data, while n is the total number of data records. The discharge and TN data required for calibration and validation were derived from the Biliuhe reservoir management bureau, and the TN concentration was monitored by the national standard method. The meteorological data used in the SWAT model was obtained from the China Meteorological Assimilation Driving Datasets for the SWAT model (CMADS V1.1), which can be downloaded from the website of Cold and Arid Regions Sciences Data Center (www.cmads.org). The CMADS integrated the air temperature, air pressure, humidity, and wind velocity data through the LAPS/STMAS system and other multiple techniques, such as data loop nesting, resampling, pattern estimation, and bilinear interpolation. Precipitation data were assimilated using the CMORPH's global precipitation product and the National Meteorological Information Center's data of China [23]. The CMADS V1.1 serials of datasets cover the entire East Asian region (0 • -65 • N, 60 • -160 • E) and can provide high-resolution and high-quality meteorological data for the study area with sparse weather station coverage. In this study, the SWAT model made use of the meteorological data of nine CMADS stations in the study area, which included precipitation, relative humidity, solar radiation, temperature, and wind speed. The spatial resolution is 0.25 degrees, the time resolution is daily, and the time scale is 2008-2016. Detailed location information of the stations is shown in Figure 1.

Integrated Methodology of TN Accumulation
The TN load simulated by the SWAT model is the TN flux transported from the upper basin into the Biliuhe reservoir through the surface and underground runoff, which includes the point source input, non-point source input, and inter-basin water diversion input. Because the SWAT cannot properly conduct reservoir nitrogen simulations in general, it was mainly used to simulate the TN load of the Biliuhe reservoir upper watershed in this study, and the study reservoir was only taken as an outlet of the basin. To better study the nitrogen pollution of the Biliuhe reservoir, an integrated methodology based on the mass balance theory is proposed to calculate the TN accumulation in the Biliuhe reservoir. The TN accumulation of the Biliuhe reservoir is defined as the TN flux difference between input and output, which can be evaluated by accumulation quantity and accumulation efficiency. The reservoir nitrogen input includes the point source input, non-point source input, inter-basin water diversion project (DBWD) input, and aquaculture input due to the fish feed and manure, while the non-point source input includes soil source input, fertilizer application input, livestock and poultry breeding input, rural domestic sewage input, and atmospheric deposition input. The reservoir nitrogen output includes the water discharge output, water diversion project output, aquaculture output, and denitrification output. The TN accumulation model is described by Equations (4) to (6) N out = N dis + N div2 + N aqua2 + N den (6) where ∆N is the accumulation of TN, kg; N in is the TN fluxes input the reservoir, kg; and N out is the TN measured export from the reservoir, kg. In the composition of the TN input, N p is the point source input, kg. The sewage discharge and nitrogen concentration of the nine outlets were measured in 2011, and used for the point source load simulation in this study. N np is the non-point source input, which can be divided into soil source input (N soil ), fertilizer application input (N fer ), livestock and poultry breeding input (N liv ), rural domestic sewage input (N rur ), and atmospheric deposition input (N atm ). N div1 is the TN input of the inter-basin water diversion projects, kg. The mean discharge and nitrogen concentration in 2014-2016 were used to calculate the water diversion project load. N aqua1 is the aquaculture input. Because cage culture is prohibited in the Biliuhe reservoir and the fishery statistics data is unavailable, the aquaculture input and output are ignored in this study. All of the TN inputs except the direct rainfall N input were simulated by the SWAT model. The direct rainfall input was calculated by the precipitation, average TN concentration in the precipitation, and the surface water area. The precipitation data was derived from the CMADS. The TN concentration in the precipitation refers to the research of Yan and Shi [44]. The surface water area was obtained from the Biliuhe reservoir management bureau.
In the composition of the TN output, N dis is the output of the water discharge to the downstream channel, kg. N aqua2 is the output of the aquaculture harvest, kg. N div2 is the output of the water diversion project, kg. N den is the output of denitrification, kg. N aqua2 is the aquaculture output which was not considered in this study. The water discharge output and the inter-basin water diversion project output were calculated by the output water volume and the TN concentration in front of the dam, which were also obtained from the Biliuhe reservoir management bureau. The denitrification process mainly occurs in the sediment and varies greatly among different aquatic systems [45]. The denitrification output in this study can be calculated by the denitrification rate and reservoir surface area, described by Equation (7) N den = 0.014 × V × A where V is the denitrification rate, referring to a lake in Canada with similar meteorological and hydrological characteristics, 15 µmol N m −2 h −1 [46], and A is the surface water area, km 2 . The TN accumulation efficiency (R N ) can be defined by Equation (8)

SWAT Model Performance
The monthly observed data of discharge at the dam monitoring station and TN concentration at the entrance of reservoir were used for warm-up (2008) [43]. The evaluation results of the simulation discharge and TN are shown in Table 1. For the discharge, the monthly R 2 values were 0.96 and 0.90, the NSE values were 0.96 and 0.89, and PBIAS values were 8.68% and −11.53% in the calibration and validation periods, indicating a good performance of the SWAT model. For the simulation of TN, the R 2 values were 0.87 and 0.71, the NSE values were 0.85 and 0.53, and the PBIAS values were -13.49% and -21.71% in the calibration and validation periods, respectively. The accuracy of the TN simulation was lower than that of the stream flow, but can still be considered as satisfactory according to the standard suggested by Moriasi. The observed and simulated monthly stream flow and TN are shown in Figure 3. The accuracy of the stream simulation results in the validation periods was worse than those in the calibration periods, which can be attributed to the drought that occurred in 2014-2015. Increased irrigation and domestic water consumption during droughts lead to a severe water intake from the river, and the observed discharge at the dam monitoring sites will be lower than the simulation value. The simulation of TN had similar characteristics. In general, the meteorological data of CMADS has a good applicability in the study area, and the CMADS-driven SWAT model can be used for runoff and TN simulation in the Biliuhe reservoir basin.
The sensitivity analysis result showed that the maximum canopy storage (CANMX), baseflow alpha factor for bank storage (ALPHA_BNK), Manning's n value for the main channel (CH_N2), SCS runoff curve number (CN2), and effective hydraulic conductivity in the main channel alluvium (CH_K2) were the most sensitive parameters for stream flow, while the nitrogen percolation coefficient (NPERCO), saturated hydraulic conductivity (SOL_K), moist bulk density (SOL_BD), Manning's n value for the main channel (CH_N2), and organic nitrogen enrichment ratio (ERORGN) were the most sensitive parameters for the TN load. The uncertainty analysis results showed that 88% (P-factor) of the discharge observations and 75% (P-factor) of the TN observations fell within the 95% confidence level uncertainty range (95PPU) in the calibration period, and the R-factors were 0.59 and 0.96, respectively. During the validation period, 79% of the discharge observations, and 71% of the TN observations fell within the 95% confidence interval (95PPU), and the R-factors were 0.58 and 0.90. The uncertainty of the SWAT model in the validation period was higher than that in the calibration period.

Temporal Characteristic of TN Fluxes of the Biliuhe Reservoir
The stream flow and TN fluxes of the Biliuhe reservoir are shown in Figure 4. The distribution of the TN input was very uneven between different years, and the TN input during the flood period was significantly higher than in the non-flood period. The TN input was consistent with the runoff. A simple Pearson's correlation analysis was performed to assess possible relationships between the TN input and the runoff, and the precipitation and the runoff. The results showed a strong and significant positive correlation between the TN input and the discharge (r = 0.918, p < 0.01), which meant that the nitrogen input was mainly governed by the runoff (Figure 5). This result was in a good agreement with other studies [48][49][50]. The correlation between the precipitation and the runoff was also high (r = 0.872, p < 0.01), but lower than that between the TN input and the runoff. This can be attributed to the severe drought and the inter-basin water diversion project. Due to the flushing of surface runoff, a large amount of nitrogen-along with the flood-enters the reservoir, resulting in the higher input during flood periods (August 2010, August 2011, August 2012, and July 2013). In contrast, the TN input in dry periods (July 2014-November 2015) was relatively lower due to the decrease in precipitation and runoff. For the Biliuhe reservoir, the TN output is greatly influenced by artificial regulation. Therefore, the TN output does not follow the variation of runoff. During wet years, surplus water quantity increases due to the flood input, leading to an increasing TN output. Additionally, affected by the disturbance of the density flow, the nitrogen stored in sediments will release into the water, then be exported from the reservoir with surplus water. In addition to the three years of 2011-2013, the TN output was very stable most of the time. Because in dry years there is no chance for the reservoir to discharge surplus water, water withdrawal becomes the main pathway for TN output, the TN output in dry years is stable and relatively lower than in wet years.
The seasonal TN input and output in the Biliuhe reservoir were assessed to analyze the temporal characteristics of TN fluxes during the year. As can be seen from Figure 6, the TN input changed from month to month and was high in wet seasons and fall and low in dry seasons, consistent with the precipitation and runoff, as well as with the intensive agriculture activities in the wet seasons. The wet seasons (April-October) accounted for 95% of the annual TN input, indicating an extremely uneven distribution of TN input during the year. There was an abrupt increase of TN input at the beginning of the wet season (April), meaning that TN stored in dry seasons had a considerable release during the dry-wet alternation process. The TN output in dry seasons was mainly due to the water supply output and changed slightly, while it increased a lot in wet seasons due to the flood discharge. In general, the TN input was higher than the output during the wet seasons except for October, which meant that the Biliuhe reservoir acted as a sink during most of the wet season. The monthly input of TN was always lower than the output from September to the next March, suggesting that the Biliuhe

Temporal Characteristic of TN Fluxes of the Biliuhe Reservoir
The stream flow and TN fluxes of the Biliuhe reservoir are shown in Figure 4. The distribution of the TN input was very uneven between different years, and the TN input during the flood period was significantly higher than in the non-flood period. The TN input was consistent with the runoff. A simple Pearson's correlation analysis was performed to assess possible relationships between the TN input and the runoff, and the precipitation and the runoff. The results showed a strong and significant positive correlation between the TN input and the discharge (r = 0.918, p < 0.01), which meant that the nitrogen input was mainly governed by the runoff (Figure 5). This result was in a good agreement with other studies [48][49][50]. The correlation between the precipitation and the runoff was also high (r = 0.872, p < 0.01), but lower than that between the TN input and the runoff. This can be attributed to the severe drought and the inter-basin water diversion project. Due to the flushing of surface runoff, a large amount of nitrogen-along with the flood-enters the reservoir, resulting in the higher input during flood periods (August 2010, August 2011, August 2012, and July 2013). In contrast, the TN input in dry periods (July 2014-November 2015) was relatively lower due to the decrease in precipitation and runoff. For the Biliuhe reservoir, the TN output is greatly influenced by artificial regulation. Therefore, the TN output does not follow the variation of runoff. During wet years, surplus water quantity increases due to the flood input, leading to an increasing TN output. Additionally, affected by the disturbance of the density flow, the nitrogen stored in sediments will release into the water, then be exported from the reservoir with surplus water. In addition to the three years of 2011-2013, the TN output was very stable most of the time. Because in dry years there is no chance for the reservoir to discharge surplus water, water withdrawal becomes the main pathway for TN output, the TN output in dry years is stable and relatively lower than in wet years.
The seasonal TN input and output in the Biliuhe reservoir were assessed to analyze the temporal characteristics of TN fluxes during the year. As can be seen from Figure 6, the TN input changed from month to month and was high in wet seasons and fall and low in dry seasons, consistent with the precipitation and runoff, as well as with the intensive agriculture activities in the wet seasons. The wet seasons (April-October) accounted for 95% of the annual TN input, indicating an extremely uneven distribution of TN input during the year. There was an abrupt increase of TN input at the beginning of the wet season (April), meaning that TN stored in dry seasons had a considerable release during the dry-wet alternation process. The TN output in dry seasons was mainly due to the water supply output and changed slightly, while it increased a lot in wet seasons due to the flood discharge. In general, the TN input was higher than the output during the wet seasons except for October, which meant that the Biliuhe reservoir acted as a sink during most of the wet season. The monthly input of TN was always lower than the output from September to the next March, suggesting that the Biliuhe reservoir acted as a source during dry seasons. The TN accumulation and the composition of TN input and output were analyzed in the discussion.

TN Accumulation in the Biliuhe Reservoir
The dynamic TN accumulation process of the Biliuhe reservoir were analyzed based on the TN input and output fluxes. The annual TN accumulation of the Biliuhe reservoir are presented in Table  2. In the study period, the mean annual TN input flux was 274.41 × 10 4 kg, which was higher than the output flux of 217.14 × 10 4 kg. The average annual accumulation of TN was 57.27 × 10 4 kg, indicating that 19.76% of the TN input was retained by the Biliuhe reservoir, which was higher than the TN retained by the Three Gorges reservoir (China) and Wivenhoe reservoir (Australia) [51,52], but lower than the TN retained by Lake Shelbyville (USA) [53]. The maximum and minimum TN input fluxes were 60.98 × 10 4 kg in 2012 and 78.02 × 10 4 kg in 2014, while the maximum and minimum output fluxes were 582.88 × 10 4 kg in 2012 and 71.75 × 10 4 kg in 2009, indicating that TN accumulation in the study reservoir varied in different hydrological years. It can also be seen from Table 2 that the Biliuhe reservoir was not always a sink of TN-sometimes it could transform into a source. The accumulation of TN in reservoirs is influenced by the balance of input and output. The input TN is mainly driven by runoff, while the TN export from the reservoir is driven by the domestic water supply and flood discharge. Therefore, higher nitrogen input did not correspond to higher nitrogen accumulation in the study period. Especially in 2013, the accumulation of TN was negative due to the higher flood discharge output. Interestingly, higher TN accumulation efficiency was observed in normal hydrological years, because the Biliuhe reservoir always stores most of the water input for future multiple uses but rarely discharges surplus water. During extreme drought years, the reservoir may also act as a source, with the TN input flux decreasing and the water consumption increasing, as shown in 2014. Reservoirs act as a sink or source of nutrients due to the basin characteristics and reservoir regulation.

TN Accumulation in the Biliuhe Reservoir
The dynamic TN accumulation process of the Biliuhe reservoir were analyzed based on the TN input and output fluxes. The annual TN accumulation of the Biliuhe reservoir are presented in Table 2.
In the study period, the mean annual TN input flux was 274.41 × 10 4 kg, which was higher than the output flux of 217.14 × 10 4 kg. The average annual accumulation of TN was 57.27 × 10 4 kg, indicating that 19.76% of the TN input was retained by the Biliuhe reservoir, which was higher than the TN retained by the Three Gorges reservoir (China) and Wivenhoe reservoir (Australia) [51,52], but lower than the TN retained by Lake Shelbyville (USA) [53]. The maximum and minimum TN input fluxes were 60.98 × 10 4 kg in 2012 and 78.02 × 10 4 kg in 2014, while the maximum and minimum output fluxes were 582.88 × 10 4 kg in 2012 and 71.75 × 10 4 kg in 2009, indicating that TN accumulation in the study reservoir varied in different hydrological years. It can also be seen from Table 2 that the Biliuhe reservoir was not always a sink of TN-sometimes it could transform into a source. The accumulation of TN in reservoirs is influenced by the balance of input and output. The input TN is mainly driven by runoff, while the TN export from the reservoir is driven by the domestic water supply and flood discharge. Therefore, higher nitrogen input did not correspond to higher nitrogen accumulation in the study period. Especially in 2013, the accumulation of TN was negative due to the higher flood discharge output. Interestingly, higher TN accumulation efficiency was observed in normal hydrological years, because the Biliuhe reservoir always stores most of the water input for future multiple uses but rarely discharges surplus water. During extreme drought years, the reservoir may also act as a source, with the TN input flux decreasing and the water consumption increasing, as shown in 2014. Reservoirs act as a sink or source of nutrients due to the basin characteristics and reservoir regulation.
For the Biliuhe river basin, the dam decreases the ecological water volume of the downstream area and obstructs the dispersal and migration of nutrients, which has resulted in the degradation of the downstream ecosystem and extinction of species. In the study reservoir, there was a rising trend of TN accumulation. The TN retained by the reservoir partly stores in the water and partly deposits with sediment due to adsorption. The water TN concentration of the Biliuhe reservoir was 2.16 mg/L in 2009, rising to 2.92 mg/L in 2016, which meant an increase of the eutrophication risk of the water body. Despite the increase of the TN concentration in the water, the TN stored in the water decreased during the study period due to the decrease in water volume (from 562 million m 3 in 2009 to 183 million m 3 in 2016), which demonstrated that the TN that accumulated in the sediment contributed to a large proportion of the TN accumulation in the reservoir. Recent research has also shown that TN in the sediment of the Biliuhe reservoir is at a relatively high level, and endogenous nitrogen released from the sediment could contribute to the water nitrogen pollution [54]. Water supply and flood discharge are two major ways to export the TN from the reservoir. Water withdrawal for urban use is mainly from the upper water column in front of the dam, which has good water quality. Therefore, the nitrogen in the bottom water and sediment could not be discharged from the reservoir. For the above problems, in addition to decreasing the non-point source nitrogen input from upper basin, discharging anoxic waters and sediment with a high nitrogen concentration through the bottom hole of the dam could alleviate the nitrogen pollution in the Biliuhe reservoir.

Composition of TN Input and Output
The composition of TN input during 2009-2016 is shown in Figures 7a and 8a. It can be seen from these figures that the point source input accounted for a small proportion of TN input, which is only 0.16% of the average input. This means that the point-source nitrogen input is not serious and the non-point source input dominates the TN input of the Biliuhe reservoir. This result is consistent with the actual conditions wherein most of the untreated sewage outlets in the basin have been closed in recent years, but non-point sources like agricultural fertilization and livestock and poultry breeding are difficult to treat. The non-point sources from fertilizer and atmospheric deposition and soils constituted the highest proportion of the TN input, accounting for 35.15, 30.15, and 27.72% of the average input. According to the study result, reduction of the non-point source TN input during the flood period should be an effective measure to control the TN pollution of the study reservoir. In addition to the TN load from the reservoir control basin, the TN input of the inter-basin water diversion project was 32.03 × 10 4 kg year −1 during 2015-2016, accounting for 14.05% of the annual total input. According to the design water diversion capacity of 3.00 × 10 8 m 3 year −1 in the future, 63.90 × 10 4 kg year −1 TN will input into the reservoir via the DBWD project, which was approximately equal to the TN input in extreme drought years. The impact of the inter-basin water diversion project on TN accumulation should be of great concern in the future.  Figures 7b and 8b. It can be seen from these figures that the average discharge output accounted for 48.75% of the average TN output, and mainly occurred in wet years with the flood discharge. The reservoir rarely discharges surplus water in normal or dry years due to the high water demand of Dalian city. The average TN output of the BDWD project was 103.66 × 10 4 kg year −1 , which contributed to 47.74% of the annual TN output. In the dry or normal years like 2014-2016, the TN output by the BDWD project accounted for more than 90% of the total TN output, indicating that a large proportion of the nitrogen was transported to other basins through the inter-basin water diversion project. The inter-basin water diversion project links different basins together and changes the original nutrient transportation within or between river basins, which creates new challenges for comprehensive environmental management across multiple basins [55]. The denitrification output accounted for 3.51% of the total nitrogen output, which was much lower than the inter-basin water diversion project and downstream water discharge output.   Figures 7b and 8b. It can be seen from these figures that the average discharge output accounted for 48.75% of the average TN output, and mainly occurred in wet years with the flood discharge. The reservoir rarely discharges surplus water in normal or dry years due to the high water demand of Dalian city. The average TN output of the BDWD project was 103.66 × 10 4 kg year −1 , which contributed to 47.74% of the annual TN output. In the dry or normal years like 2014-2016, the TN output by the BDWD project accounted for more than 90% of the total TN output, indicating that a large proportion of the nitrogen was transported to other basins through the inter-basin water diversion project. The inter-basin water diversion project links different basins together and changes the original nutrient transportation within or between river basins, which creates new challenges for comprehensive environmental management across multiple basins [55]. The denitrification output accounted for 3.51% of the total nitrogen output, which was much lower than the inter-basin water diversion project and downstream water discharge output.   Figures 7b and 8b. It can be seen from these figures that the average discharge output accounted for 48.75% of the average TN output, and mainly occurred in wet years with the flood discharge. The reservoir rarely discharges surplus water in normal or dry years due to the high water demand of Dalian city. The average TN output of the BDWD project was 103.66 × 10 4 kg year −1 , which contributed to 47.74% of the annual TN output. In the dry or normal years like 2014-2016, the TN output by the BDWD project accounted for more than 90% of the total TN output, indicating that a large proportion of the nitrogen was transported to other basins through the inter-basin water diversion project. The inter-basin water diversion project links different basins together and changes the original nutrient transportation within or between river basins, which creates new challenges for comprehensive environmental management across multiple basins [55]. The denitrification output accounted for 3.51% of the total nitrogen output, which was much lower than the inter-basin water diversion project and downstream water discharge output.

Analysis of the Proposed Methodology
This study explores an integrated methodology that is based on the SWAT model to quantify the nitrogen accumulation in the reservoir. It is convenient for the proposed methodology to analyze the TN accumulation process in the study reservoir. The CMADS has also been proven to be capable of driving the SWAT model in the study area. The methodology combines the mechanism model and the statistical model to obtain more reasonable results, which show that the Biliuhe reservoir serves as a sink of TN most of the time, and the TN accumulation process is significantly influenced by the reservoir operation mode. In this study, the uncertainty of the methodology may come from the meteorological data of CMADS, parameters of SWAT, and sparse distribution of water quality monitoring sites due to the complex mechanism of TN transformation and transportation. More work will be done to reduce the uncertainty and improve methodology accuracy. In this study, the reservoir was taken as a small point and the internal N transportation process of the reservoir was not taken into consideration. In the next step, we will improve the simulation by coupling the SWAT with the 2-D or 3-D hydrological and water quality model for further research.

Conclusions
The integrated methodology based on the SWAT model driven by CMADS was established in the Biliuhe river basin to analyze the TN accumulation of the Biliuhe reservoir. The calibrated model generally achieved a satisfactory performance, indicating that the CMADS can be successfully applied to drive the SWAT model in Northeast China. The model performance in the validation periods was worse than in calibration periods, which can be attributed to the drought in 2014-2015. The maximum canopy storage (CANMX) was the most sensitive parameter for runoff, and the nitrogen percolation coefficient (NPERCO) was the most sensitive parameter for TN. The uncertainty analysis results showed that 88% (P-factor) of discharge observations and 75% (P-factor) of TN observations fell within the 95% confidence level uncertainty range (95PPU) in the calibration period, and within 79% of the stream flow and 71% of the TN in the validation period. The uncertainty of the SWAT model in the validation period was higher than that in the calibration period.
The distributions of annual and seasonal TN input were very uneven and consistent with the runoff, indicating that TN input was mainly governed by the runoff. The TN output was greatly influenced by artificial regulation and did not follow the variation of runoff. The TN input was higher than the output during the wet seasons, and was always lower than the output during the dry seasons, meaning that the reservoir acted as a sink of nitrogen most of time in the wet seasons and as a source in the dry seasons. The mean annual TN accumulation of the Biliuhe reservoir was 57.27 × 10 4 kg during the study period, which meant that 19.76% of the TN input was retained in the Biliuhe reservoir. The TN accumulation varied in different hydrological years and higher TN accumulation in the reservoir did not correspond to a higher TN load due to the influence of artificial regulation. Higher TN accumulation efficiency is often observed in normal hydrological years because the water source reservoir stores most of the water input for future multiple uses, but rarely discharges surplus water. In addition, the non-point sources from fertilizer, atmospheric deposition, and soils constituted the highest proportion of the TN input, accounting for 35.15%, 30.15%, and 27.72% of the average input, respectively. The inter-basin water diversion project of DBWD diverted 32.03 × 10 4 kg year −1 TN to the Biliuhe reservoir in 2015-2016, accounting for 14.5% of the total annual input. According to the design water diversion capacity of 3.00 × 10 8 m 3 year −1 in the future, 63.90 × 10 4 kg year −1 TN will input into the reservoir via the DBWD project in the future. The discharge output and the inter-basin water diversion project output of the BDWD accounted for 48.75% and 47.74%, respectively. The inter-basin water diversion projects have noticeably influenced the TN accumulation in drought years, which should be of great concern in drinking water source water system management.
There was a rising trend of TN level in the Biliuhe reservoir, which increased the eutrophication risk of the aquatic ecosystem. However, the TN accumulated in the sediment contributed to a large proportion of the total TN accumulated in the reservoir. Decreasing the non-point source nitrogen input and discharging of anoxic waters and sediment with a high concentration of TN through the bottom of the dam should be effective measures to reduce the TN concentration in the Biliuhe reservoir. The integrated methodology proposed in this work provided a convenient way to quantify the TN accumulation in reservoirs, and the results could contribute to reservoir water quality improvement under the influence of inter-basin water diversion projects.