Introduction

Excess concentration of nitrite and nitrate in drinking water is hazardous to health, especially for pregnant women (Kazemzadeh and Ensafi 2001). Main threats to health that arise from the ingestion of these ions are reported as “blue baby” syndrome and gastric cancer (Swann 1975; Bruning-Fann and Kaneene 1993; Eaton et al. 1978; Cox and Frank 1982). These anions react with secondary amines in the acidic conditions of the stomach. The result is the production of carcinogenic nitrosamines which implicate in the pathology of gastric cancer (Swann 1975; Kuiper et al. 1994). In addition, they cause methemoglobinemia (oxygen deficiency) in infants (Bruning-Fann and Kaneene 1993). Passage of nitrite into the bloodstream results in the irreversible conversion of hemoglobin to methemoglobin which results in uptake in transportation of oxygen (Bruning-Fann and Kaneene 1993).

The current standards established by the US Environmental Protection Agency (EPA) for drinking water are 1 mg L−1 for nitrite–nitrogen (\({\text{NO}}_{2}^{ - }\)–N), 10 mg L−1 for nitrate–nitrogen (\({\text{NO}}_{3}^{ - }\)–N) and 10 mg L−1 for the sum of \({\text{NO}}_{2}^{ - }\)–N and \({\text{NO}}_{3}^{ - }\)–N (Environmental Protection Agency 1991). The National Research Council (NRC) subcommittee on nitrate and nitrite in drinking water agreed that current drinking water standards of EPA for these anions are adequate to protect human health (National Research Council 1995).

Few techniques possess sufficient generic applicability to enable detection of nitrite and nitrate among the huge number of potential interferences that can be encountered in environmental, food, industrial and physiological samples (Moorcroft et al. 2001). Simultaneous determination of nitrite and nitrate is important in environmental chemistry, and numerous analytical methods have been presented for this purpose. Techniques used for simultaneous determination of nitrite and nitrate include electrochemical (Gross et al. 2015; Betta et al. 2014; Madasamy et al. 2014; Doherty et al. 1996; Davis et al. 2000), molecular absorption spectrometry (Brandao et al. 2014), flow injection analysis (Feng et al. 2013) and capillary electrophoresis (Fukushi et al. 2000; Jimidar et al. 1995; Alonso and Prego 2000; Bories et al. 1999) methods, whereby the analytes are detected independently in a single measurement.

Still, the most frequently employed methodology for the determination of nitrite and nitrate is the Griess reaction (Greiss 1879; Abbas and Mostafa 2000; Kiso et al. 2006; Pasquali et al. 2007, 2010; Nagaraja et al. 2010). However, for determination of nitrate, a reduction step is needed to reduce nitrate to nitrite. This conversion is accomplished by using a reduction step which is especially preferred when using injection methodologies (FIA and SIA), because it provides quantitative reduction within a short reaction time (Garcia-Robledo et al. 2014; Pasquali et al. 2010; Legnerova et al. 2002; Cerda et al. 1998; Karlicek et al. 1988). The total nitrite content (initial nitrite plus nitrite produced by reduction of nitrate) is then determined spectrophotometrically by Griess method at a single wavelength.

Simultaneous determination of two or more compounds in the same mixture without preliminary separation is the main problem of spectrophotometric multicomponent analysis. Frequently, the multivariate calibration methods like partial least squares (PLS) (Martens and Naes 1989; Geladi and Kowalski 1986) have been applied to mixtures without resorting to time-consuming chemical separation like chromatography. PLS has been successfully used for the simultaneous determination of pollutants in water and environmental samples (Gholivand et al. 2012; An et al. 2010; Gao et al. 2011; Sarnacchiaro et al. 2012).

In this paper, a UV–Vis spectrophotometric method is proposed for simultaneous determination of nitrite and nitrate in water samples using PLS multivariate calibration. The method is based on the reaction of nitrite and nitrate with 2,4-xylenol as reagent in acidic conditions.

Theory

Partial least squares (PLS)

In multivariate calibration, a linear model is built between the measured instrumental signals included in matrix X and the property we are seeking it included in vector y (Martens and Naes 1989; Geladi and Kowalski 1986). In PLS, instead of the original variables, new latent variables are used which are the result of the compression and abstracting of them. In matrix notation, the linear model can be written as y = Xb where b contains the regression coefficients which are determined during the calibration step.

Performances of the PLS models can be expressed in terms of root mean square error of cross-validation (RMSECV), root mean square error of prediction (RMSEP) and cross-validated correlation coefficient (Q 2) (Vandeginste et al. 1998):

$${\text{RMSECV}} = \sqrt {\frac{{\sum\limits_{i = 1}^{m} {\left( {c_{i} - \hat{c}_{i} } \right)^{2} } }}{m}}$$
(1)
$${\text{RMSEP}} = \sqrt {\frac{{\sum\limits_{i = 1}^{n} {\left( {c_{i} - \hat{c}_{i} } \right)^{2} } }}{n}}$$
(2)
$$Q^{2} = 1 - \frac{{\sum\nolimits_{i = 1}^{n} {\left( {c_{i} - \hat{c}_{i} } \right)^{2} } }}{{\sum\nolimits_{i = 1}^{n} {\left( {c_{i} - c_{\text{mean}} } \right)^{2} } }}$$
(3)

where c i , \(\hat{c}_{i}\) and c mean are the real and predicted concentration of the component, and mean of the real concentrations, respectively. In Eq. (1), c i and \(\hat{c}_{i}\) are concentrations in calibration set, and c i , \(\hat{c}_{i}\) and c mean in Eqs. (2) and (3) are concentrations in validation set. m and n are the number of samples in the calibration and validation set, respectively.

Materials and methods

Apparatus and software

An Agilent spectrophotometer model 8453 with diode array detector was used for recording spectra in a 1-cm path-length quartz cell. All spectra were recorded against the reagent blank. PLS multivariate calibrations were performed in MATLAB 6.5 environment (MATLAB 6.5, The Mathworks Inc., Natick).

Reagents and solutions

All chemicals were of analytical reagent grade. Sodium nitrite, sodium nitrate, 2,4-xylenol and sulfuric acid (98 %(w/v)) were supplied by Merck (Darmstadt, Germany).

Standard solutions

Stock 1000.0 mg L−1 solutions of sodium nitrite and sodium nitrate were prepared in doubly distilled water. Stock 8.20 × 10−3 mol L−1 solution of 2,4-xylenol was prepared and used as reagent.

Recommended procedure

An aliquot of the stock solution of 2,4-xylenol (30.54 µL, 8.20 × 10−3 mol L−1) was added to the quartz cell (1-cm path-length) containing 2.0 mL concentrated sulfuric acid (98 %(w/v)). Then, a given volume of nitrite or nitrate (1000.0 mg L−1) was added, and the resulting mixture was diluted to 2.5 mL by doubly distilled water. The mixture was gently mixed, and the absorbances of products were measured at 245 and 255 nm for nitrite and nitrate, respectively against the reagent blank.

Synthetic binary mixtures of nitrite and nitrate for PLS multivariate calibration

In order to perform PLS modeling, 25 synthetic binary mixtures of nitrite and nitrate were designed and prepared. The mixtures were designed based on the simplex lattice design with lattice degree of one. Dividing the samples into 17 calibration and eight validation samples was carried out by Kennard–Stone algorithm (Kennard and Stone 1969). The compositions of the 25 binary mixtures are included in Table 1.

Table 1 Mixtures designed for calibration and prediction of nitrite and nitrate by PLS

Sample preparation for determination of nitrite and nitrate in water and wastewater samples

Drinking water samples were collected without adding any preservative in polyethylene bottles and analyzed within 6 h. Water samples were filtered through a Whatman No. 41 filter paper. An appropriate volume of the filtrate without dilution was transferred to the 1-cm path-length quartz cell containing 2.0 mL concentrated sulfuric acid and 30.54 µL of 2,4-xylenol stock solution.

Results and discussion

Optimization

It was observed that in the reaction of nitrite and nitrate with 2,4-xylenol, the absorbance of the reaction product increases with the volume of the concentrated sulfuric acid, especially for nitrite. Only in the presence of large volumes of the concentrated sulfuric acid, nitrate produced detectable absorbances. Variation of the absorbance of the products against volume of the concentrated sulfuric acid and concentration of 2,4-xylenol is shown in Fig. 1a. Based on the figure, volume of 2 mL was selected as the optimal volume of the concentrated sulfuric acid for simultaneous determination of nitrite and nitrate.

Fig. 1
figure 1

Variation of the response of the reaction between 2,4-xylenol and nitrate and nitrite (2 mg L−1) with a volume of the concentrated sulfuric acid and b concentration of 2,4-xylenol

Effect of the concentration of 2,4-xylenol on the absorbance of the reaction product was also investigated. For both analytes, in the presence of 2,4-xylenol with concentration of 1.0 × 10−4 mol L−1 (Fig. 1b), the maximum intensity of absorbance was observed.

Absorption spectra

The electronic absorption spectra of the products of the reaction of nitrite and nitrate with 2,4-xylenol are shown in Fig. 2. As can be seen in Fig. 2, both spectra are broad and highly overlapped. The main absorption band of the two products is located at about 250 nm. This band is more intense for reaction product of nitrite. The other bands which are less intense have been located at 525 and 360 nm for nitrite and nitrate, respectively.

Fig. 2
figure 2

Spectrum of the reaction product of a nitrite (2.0 mg L−1) and b nitrate (2.0 mg L−1) with 2,4-xylenol (1.0 × 10−4 mol L−1) in the presence of 2.0 mL of the concentrated sulfuric acid

The strong overlapping of the spectra of the reaction products needs separation or analysis by multivariate calibration methods like PLS.

Univariate calibration

In order to find the dynamic linear range of calibration for each compound, the absorbance of a series of solutions containing varying amounts of nitrite or nitrate in optimal conditions was recorded at 245 and 255 nm for nitrite and nitrate, respectively. The univariate calibration curves were linear in the range of 0.2–20.0 mg L−1 for nitrite and 0.5–7.0 mg L−1 for nitrate.

In the previous studies performed on the reaction of nitrite with xylenol derivatives (2,6-xylenol), a dynamic linear range of 0–10 mg L−1 was reported (Hartley and Bly 1963; Hartley and Asai 1963). Spectrophotometric determination of nitrite based on the Griess reaction has characteristics which may be superior over the xylenol method. However, because of the simultaneous reaction of nitrite and nitrate with xylenol derivatives (in the present work, 2,4-xylenol), this reaction is preferred for simultaneous spectrophotometric determination of these species using multivariate calibration.

Interference study

The effect of potential interferences in the determination of 2.0 mg L−1 of nitrite and nitrate by the developed method was studied. The results are given in Table 2. As can be seen, in most cases interference occurs in high concentration of the examined interferent. The most serious interferent is Fe3+. The interference of cations specially Fe3+ can be attributed to the complexation of the cations with the reagent (2,4-xylenol).

Table 2 Tolerance limit of different ions in determination of nitrite and nitrate with concentrations of 2.0 mg L−1

Determination of nitrite and nitrate in synthetic binary mixtures using PLS multivariate calibration

The spectra of the standard mixtures collected in Table 1 were recorded in the wavelength range of 220–600 nm with 1-nm intervals. In multivariate analysis, the wavelength ranges of 220–300 and 220–600 nm were used for determination of nitrite and nitrate, respectively.

Models were internally validated employing the well-known leave-one-out cross-validation, and the number of latent variables for prediction was chosen in agreement with the Haaland–Thomas criterion (Haaland and Thomas 1988). For comparison, the multivariate data were also analyzed by principal component regression (PCR). The statistical parameters including the number of latent variables, RMSECV, RMSEP and Q 2 are collected in Table 3. As can be seen, all of the statistical parameters resulted by PLS modeling are superior over the counterparts of PCR. High Q 2 values and low RMSECV and RMSEP values obtained by PLS modeling indicate that this multivariate calibration and the analytical method are reliable. The constructed PLS models have high predictivities (high Q 2 values).

Table 3 Statistical parameters of the PLS models

In Table 3, some of the parameters were calculated based on the net analyte signal (NAS) concept (Booksh and Kowalski 1994; Al-Degs et al. 2012). These are multivariate figure of merits. The multivariate limit of detection (LOD) can be calculated by

$$LOD =\Delta \left( {\alpha ,\beta } \right)\delta r$$
(4)

where \(\Delta \left( {\alpha ,\beta } \right)\) is the non-centrality parameter which can be extracted from the statistical tables and \(\delta r\) is the standard deviation of the measurements. Selectivity (SEL) for kth component can be calculated as

$${\text{SEN}} = \frac{{S_{k}^{*} }}{{\left\| {S_{k} } \right\|}}$$
(5)

And its sensitivity (SEN) is

$${\text{SEN}} = \frac{1}{\left\| b \right\|}$$
(6)

In the above equations, S k , \(S_{k}^{*}\) and b are pure spectrum of the kth component, its NAS and the PLS regression coefficients, respectively.

Application of the method

In order to examine the suitability of the recommended method for simultaneous determination of nitrite and nitrate in the real samples, it was used to analyze drinking water samples. The results are collected in Table 4. Data in Table 4 show that the method is accurate since percent recoveries are between 98.0 and 100.0 %. For assessment of the proposed method, we used Griess method (Greiss 1879, Irandoust et al. 2013) as a standard method for determination of nitrite. The results of the recommended method conform well to the Griess standard method. Precision of the method is satisfactory. In most cases, RSD % values are below 5 %.

Table 4 Results of the application of the recommended method for simultaneous determination of nitrite and nitrate in water samples

Conclusion

A simple spectrophotometric method was introduced for simultaneous determination of nitrite and nitrate. Partial least squares multivariate calibration was used for resolution of mixtures of the analytes. The method can successfully be used for determination of nitrite and nitrate in water samples. The recommended method can be considered as an alternative to the expensive methods like ion chromatography for simultaneous determination of nitrite and nitrate. Moreover, in the analyzed drinking water samples, the level of the more hazardous nitrite located below the thresholds established by the relating standard agencies.