Introduction

With the beginning of a new decade, one would expect new challenges, but some continuously exist. Presently, one of such for the oil and gas industry is produced water. An inevitable and toxic form of our most essential resource—water. Inevitable because one cannot exploit our underground resource (oil and gas) without it coming along eventually. Toxic? This water contains variable levels of pollutants such as dissolved solids, heavy metals, unstable anions, oils and grease, organic compounds. Currently, the world is waking up to the effects of climate change and how pollution is an undeniable hinder to sustainability. Produced water is wastewater generated alongside oil and gas (Clark and Veil 2009). Produced water is often referred to as brine or formation water. It represents the largest waste generated from the production process. Clark and Veil (2009) predicted produced water volumes to increase by 32% by 2025.

Why should we treat produced water ‘better’?

On the 3rd of March, 2021, at the United Nations Human Rights Council, UN HRC in Geneva, David Boyd, the United Nations’ Special Rapporteur on human rights and environment stated “The world faces a water crisis and it is getting worse…3/4 of all the natural disasters in the last 20 years were water-related…water pollution, water scarcity, water-related disasters and damage to healthy freshwater ecosystems have major impacts on a wide range of human rights…”. He recommended five steps for addressing the global water crisis—one of which includes a state-of-the-art water assessment (UN OHCR 2021). The toxicity and complexity of the constituents of produced water make it a factor in the mitigation of the global water crisis. Surface interactions between hydrocarbons and their enclosed geologic formations encourage chemical reactions which yield organic and inorganic products with high toxicity levels (Benko and Drewes 2008). Products such as radionuclides (a radioactive atom/element which has an unstable nucleus due to its excess nuclear energy) and oil droplets are very difficult to treat and they pose direct harm to both the environment and human life (Liangxiong et al. 2004). Also, environmental protection agencies have been established worldwide on different government tiers with strict rules and regulations to control and monitor the discharge of produced water due to its different complex chemical nature and large production volumes. Produced water contains heavy metals that bio-magnify and other organic contaminants such as asphaltenes, naphthenic acids and resins (Pimentel et al. 2008; Li et al. 2006). Produced water could ruin earth’s terrain, pollute water bodies thereby endangering our aquatic ecosystem, our land, crops, the often-forgotten microbial ecosystem and raise stable elements above trophic levels when not treated and disposed of properly. The conventional treatment method which involves subsequent discharge is the gravity-based separation (Fakhru’l-Razi et al. 2009). Furthermore, disposal as surface waters requires optimum treatment of all suspended and dissolved components. The dissolved components contribute to the chemical oxygen demand which reduced the dissolved oxygen levels creating an anaerobic aquatic ecosystem (Liangxiong et al. 2004). For instance, alkylphenols which do not require bioaccumulation due to their already high concentration (present in produced water and is also incorporated in detergents) causes feminization of fish in polluted rivers and upsets the reproductive make-up of rodents (Markey et al. 2001).

Cost of treatment

Colorado School of Mines/ Advanced Water Technology Center (n.d.) summarized the overall treatment cost into 5: construction cost treatment and disposal structures; operating cost of these structures; management cost of by-products generated during treatment; transportation cost; permits, reports and monitoring costs. The website also reports that total cost ranges from less than 1 cent/bbl to more than $5/bbl. For agricultural standards, (Burnett and Siddiqui 2006) report treatment costs to range from $0.5 to $1.5/bbl. For instance, thermal treatment technologies such as hybrid multi-effect distillation-vapour compression (MED-VCD) have a capital cost ranging from $250–$360 per bpd, operating cost and total unit costs of ~ $0.12/bbl and $0.19/bbl, respectively (Igunnu and Chen 2014). Igwe et al. (2013) examined the factors and methods for handling wastes stating; “from practical experience, the feasibility of choosing a particular disposal system is usually dependent on cost contributing factors (such as transportation, treatment and development of disposal site) as well as environmental regulations. Some of the techniques being currently used are disposal to surface water; disposal to sewer; re-injection into the reservoir (through injection well); discharge to evaporation pond; spray evaporation and application of zero liquid discharge”.

The chemical treatment of produced water

Various classes of chemicals are widely used in water treatment. Some of these include oxidants such as ozone; alkalinity control agents for example lime; coagulants such as aluminium sulphate and organic polymers; corrosion inhibitors for instance silicates and morpholine. They can either be used as standalone treatments or incorporated with other treatment technologies (usually in the pre-treatment phase or as cleaning agents) such as ceramic MF/UF membrane, reverse osmosis, vapour compression distillation, macro-porous polymer extraction technology, gas floatation, media filtration.

These chemicals have been experimented with and utilized in produced water treatment. Hosny and Ramzi (2017) compared the treatment efficacy between two natural polymers (chitin and chitosan) on produced water for the reduction of formation damage. Despite using a simultaneous mixture of local materials in their treatment design, Udeagbara et al. (2020) had to initially wash the ground materials with 0.4 mol/L HNO3. Zakwan et al. (2018) designed a treatment solution using an advanced oxidation process from H2O2 and UV radiation to degrade toxic components in chemically enhanced oil recovery (CEOR) produced water. Carus Group Inc. (2019) stated permanganate oxidizes soluble iron, manganese, hydrogen sulphide and mercaptans in produced water. Inorganic coagulants such as aluminium sulphate and ferric chloride consist of some of the most widely used coagulants for the removal of suspended and colloidal particles. Rodriguez et al. (2020) stated a downside to their usage includes large masses of residual sludge and their discouraging compound to element ratio—1 ton of ferric chloride FeCl3·6(H20) yields 210 kg of Fe(III).

When treating produced water, one of the recurring processes is chemical dosing. Manual chemical dosing isn’t usually recommended for large-scale applications because it is error-prone. Mechanical chemical dosing is achieved using dosing pumps and meters such as peristaltic pumps and diaphragm pumps. Intelligent chemical dosing incorporates AI, machine learning and the Internet of Things (IoT) to achieve continuous automated dosing optimization. Examples of this dosing system include Emagin and OpWorks technologies.

A data-driven approach

When an experimental treatment analysis is carried out on produced water, comparisons are made between final and initial results and oftentimes when undesired change is achieved, the results, chemicals used and treatment design are often discarded and the next treatment option is sought-after. The end result isn’t all there is to a mixture as complex as produced water.

Inferential statistics covers an array of decision-making tools that utilize inductive reasoning to yield a probability for validity instead of the traditional right or wrong. Statistical hypothesis testing (or confirmatory data analysis) is one of those tools. It is used to verify an experimental aim against a conventional belief—this is often referred to as statistical significance. It is utilized in the medical field to test drugs and procedures (Dubois n.d.). It is also widely utilized in philosophical science. Repeated testing is an alternative to statistical hypothesis testing but it isn’t lean. Repeated testing requires several repeated experimental runs and an increase in sample size. (Nickerson 2000). Inferential statistics might be criticized as time-consuming but presently there are several software applications with user-friendly experiences and interfaces (UX and UI) capable of automating calculations within seconds such as R, Python, Microsoft Excel, Minitab and IBM SPSS.

Another sustainable application of produced water experimental data is for correlation and regression analysis. These two have continuously formed the basis for foundational theories in science and engineering for instance the relationship between density and volume, coagulant dosage and settling time. Hypothesis testing might validate this, but it cannot quantify and mathematically express these theories. Results derived from correlation and regression analysis are indispensable; and since produced water still presents a threat to global water pollution control, it is paramount that every data on its composition, properties, treatment be collected. We can’t say when we might need it but we can still keep it.

Aim and selection criteria

The option of using easily sourced, relatively inexpensive methods has been overlooked due to the nagging existence of this toxic water. In this work, chemicals—‘essential toxins’, were used to treat, alter, limit alarming ones (contained in produced water). A widely used coagulant (aluminium sulphate), a double salt of two treatment salts (ferrous ammonium sulphate) and a generally used laboratory chemical (calcium chloride) were each utilized. According to C. N. Harmony (personal communication, July 1, 2019), the selection criteria included simplicity in treatment design and affordability of these chemicals to encourage treatment and manage waste. Before the actual designed treatment process, produced water often goes through a dosing phase which involves the addition of flocculants and scale inhibitors (Nwosi-Anele and Illedare 2016).

The aim is to extensively investigate the tri-fold suitability which includes dosing suitability, statistical suitability and output models suitability. These will combine to create an archetypical template that could be widely utilized for wastewater treatment considerations and options selection.

Methodology

Two (2) Produced water samples collected from the different reservoirs in the Niger Delta region of Nigeria were analysed. The parameters analysed include pH, capillary viscosity, temperature, apparent colour, total dissolved solids, total suspended solids, total solids, turbidity, oils and grease, sulphate ion, chloride ion, nitrate ion, calcium carbonate, calcium ion, sodium ion, barium ion, iron(II) ion, magnesium ion concentrations. See Table 1 for method of analysis.

Table 1 Method of analysis

To determine the suitable concentration of treatment chemicals needed, 200 mg/l, 500 mg/l, and 1000 mg/l of the 3 treatment chemicals concentration were dissolved in the produced water samples. The 18 treated samples were stirred. The flocs and other suspended matter were decanted. The capillary viscosity and pH of each trial sample were measured and compared. The dosage of 200 mg/l was chosen since it did not alter the initial capillary viscosities of the produced water samples and posed the least significant change in pH.

200 mg/l concentrations of each treatment chemicals in the produced water samples were created. The samples were rapidly agitated for 60 s for the production of a micro-floc. The 6 samples (2 by 3) were agitated slowly for 25 min to form a floc capable of settling. The samples were then left to settle for 3 h. A sieve (with mesh size capable of not altering total solids values) was used to clear off flocs.

Final physiochemical laboratory analyses of the 6 samples (2 by 3) were carried out.

Statistical analyses were carried out on the experimental results. The first was using a suitable hypothesis testing tool (Analysis of Variance). The second, correlation and regression analyses were done in other to reveal useful insights.

The treatment chemicals utilized are inorganic coagulants which are known for forming metallic precipitates capable of absorbing impurities in water (Jones 2020). Dissolving aluminium sulphate in water causes a fraction of the aluminium to dissociate into the highly charged Al3+, Al(OH)2+, Al(OH)2+ which neutralize the negatively charged impurities suppressing their zeta potential. However, calcium chloride and ferrous ammonium sulphate produce divalent cations (Ca2+ and Fe2+) resulting in a lower neutralization potential on impurities (Bennett 2006).

The dissociation of the treatments chemicals is expressed below:

$$ {\text{Al}}_{2} \left( {{\text{SO}}_{4} } \right)_{{3\left( {\text{s}} \right)}} + {\text{H}}_{2} {\text{O}}_{{\left( l \right)}} \to 2{\text{Al}}_{{\left( {aq} \right)}}^{{3 + }} + 3{\text{SO}}_{{4\left( {aq} \right)}}^{{2 - }} $$
$$ {\text{FeSO}}_{4} \cdot \left( {{\text{NH}}_{4} } \right)_{2} {\text{SO}}_{4} \cdot 6{\text{H}}_{2} {\text{O}} \to ^{{{\text{Excess}}\;{\text{H}}_{2} {\text{O}}}} {\text{Fe}}_{{\left( {aq} \right)}}^{2 + } + 2\left( {{\text{NH}}_{4} } \right)_{{\left( {aq} \right)}}^{ + } + 2{\text{SO}}_{{4\left( {aq} \right)}}^{2 + } + 6{\text{H}}_{2} {\text{O}} $$
$$ {\text{CaCl}}_{2} + {\text{H}}_{2} {\text{O}} \to {\text{Ca}}_{{\left( {aq} \right)}}^{2 + } + 2{\text{Cl}}_{{\left( {aq} \right)}}^{ - } $$

For bicarbonate, carbonate and hydroxide impurities, a significant concentration of these treatment chemicals is needed to precipitate Al(OH)3, Fe(OH)2 and Ca(OH)2 (Bhanderi and Ranade 2014). An example of the reaction is shown below:

$$ {\text{Al}}_{2} ({\text{SO}}_{4} )_{3} \cdot 14{\text{H}}_{2} {\text{O}} + 6{\text{HCO}}_{3}^{ - } \leftrightarrow 2{\text{Al}}({\text{OH}})_{3} \downarrow + 6{\text{CO}}_{2} + 14{\text{H}}_{2} {\text{O}} + 3{\text{SO}}_{4}^{2 - } $$

According to Bhanderi and Ranade (2014), the precipitating ability of the treatment chemicals to produce Al(OH)3, Fe(OH)2, and Ca(OH)2 is a function of the produced water’s pH. Conventionally, most inorganic coagulants require quick mixing mechanisms for effective distribution of the intermediate products stated above because these products are the destabilizing agents and they are short-lived.

Observation

Table 2 contains the physical observations recorded when the treatments chemicals were added to the produced water samples.

Table 2 Observations upon addition of chemicals to samples before and after settling hours

Results

Table 3 contains the results of the analyses of the two produced water samples both before and after treatment with respect to the three treatment chemicals. The last two columns contain Nigeria’s Department of Petroleum Resources (DPR) limits for both inland and nearshore disposal.

Table 3 Initial and final analysis with DPR limits

Table 4 contains two split heat maps illustrating the percentage changes before and after treatment for the 2 produced water samples. Each map was delimited to add up the cumulative change in physical and chemical properties. For samples “A” and “B”, aluminium sulphate yielded the most positive change in physical properties, while the samples treated with calcium chloride yielded the least negative change in chemical properties.

Table 4 Percentage change between initial and final analysis

Since three treatment chemicals were used, we can graphically depict their normalized concentrations (to sum 100) in equilateral triangles as shown in Figs. 1, 2, 3 and 4 above. The ternary diagrams were designed separately for the physical and chemical properties to avoid clustering of points due to the number of parameters analysed. Figures 1 and 3 illustrate the quantifiable physical properties while Figs. 2 and 4 are for the chemical properties. The figures might also reveal a hypothesized tri-fold compositional effect should the-one-chemical-per-sample design be replaced by three-chemicals-cocktail-per-sample given that ternary plots are widely incorporated in phase diagrams. Addinsoft (2021) was used in designing the ternary graphs.

Fig. 1
figure 1

Ternary diagram of sample A's continuous final physical properties

Fig. 2
figure 2

Ternary diagram for sample A's continuous final chemical properties

Fig. 3
figure 3

Ternary diagram for sample B'S continuous final physical properties

Fig. 4
figure 4

Ternary diagram for sample B's continuous chemical properties

Table 5 contains the frequency distribution, measures of variability and the central tendency for all quantitative variables in Table 3. Skewness and Kurtosis reveal the disparity between an observed distribution and the ideal normal distribution. SO2−4 concentrations for both samples yielded skewness values of 0 which is typical of a normal distribution. Also, SO2−4 concentrations for both samples were bimodal. Sample B’s Ba2+ values are also bimodal. For both samples, CaCO3 had the maximum ranges. CaCO3 also had the largest difference between mean and median values. A zero variance indicates a high similarity within recorded observations. This is so for Sample B’s temperature values and to an extent that of sample A.

Table 5 Descriptive statistics for all continuous variables

Discussion

Table 6 explains each property’s experimental result.

Table 6 Discussion of analysis data

Comparison of the dependence of produced water properties on sample type and treatment chemicals

Table 3 can be classically summarized as one containing 2 categorical independent groups namely sample types with 2 levels (A and B) and treatment options with 4 levels (initial, aluminium sulphate, ferrous ammonium sulphate and calcium chloride) and one dependent continuous variable (each numerical effluent characteristics). Due to the relatively large number of dependent variables compared to observations, the Multivariate Analysis of Variance (MANOVA) would not be suitable. The Two-Way Analysis of Variance (ANOVA) without replication is, therefore, the suitable hypothesis-testing method for the following hypotheses:

H01

For a particular water property, the final analysis results were not significantly influenced by the sample types.

Ha1

For a particular water property, the final analysis results were significantly influenced by the sample types.

H02

For a particular water property, the final analysis results were not significantly influenced by the treatment chemicals.

Ha2

For a particular water property, the final analysis results were significantly influenced by the treatment chemicals.

The significance level α = 0.05. The block/row headers were the treatment options/chemicals while the column headers were the sample types for Table 7. Statistical Significance is achieved when P-value is less than alpha and the critical F-ratio is less than F-ratio. For total dissolved solids, total solids, pH, oils and grease, SO2−4, Cl, NO3, CaCO3, Ca2+, Na+, Ba2+ and Fe2+, the 1st null hypothesis was rejected (these properties were significantly influenced by the sample types) while for temperature, total suspended solids, turbidity and Mg2+, the 1st null hypothesis was accepted (these properties were not significantly influenced by the sample types). For total suspended solids, total dissolved solids, total solids, SO2−4, Cl, Na+, Ba2+, Fe2+, Mg2+ the 2nd null hypothesis was rejected (these properties were significantly influenced by the treatment chemicals). On the other hand, pH, temperature, turbidity, oils and grease, NO3, CaCO3 and Ca2+ accepted the 2nd null hypothesis (these properties were not significantly influenced by the treatment chemicals). Total solids was on the edge of significance. The 1st and 2nd hypotheses were both rejected for total dissolved solids, SO2−4, Cl, Na+, Ba2+, and Fe2+.

Table 7 Contingency table for two-way ANOVA test without replication

Investigation of the inter-dependence between produced water properties

How can the experimental result be useful to the design and understanding of past and future chemical treatment data? By investigating the degree of interdependence and predictability of certain water properties, we reveal applicable knowledge which could serve as determining factors for treatment chemical selection and further insights into the complexity of coagulation chemistry. This is where the output model suitability comes in. The previous ANOVA test only covered the singular significance of each parameter. Produced water is a complex mixture and a mixture that complex requires an investigation into the relationship and interdependence between its measured parameters. A combination of correlation and regression analyses is utilized here to reveal the inter-dependence between several effluents’ characteristics.

Correlation tests quantify the relationship strength between two continuous variables. It offers two main insights: the correlation coefficients and the p values. Correlation coefficients range from − 1 to 1. Inverse proportionality between two variables indicates a negative correlation coefficient while direct proportionality is positive. Table 8 presents a halved correlation matrix for all analysis data. Light Red highlights indicate coefficients less than 0 (negative). Light yellow highlights cover coefficients greater than 0 but less than 1. The ‘ideal’ correlation coefficients of 1 observed between Na+ and Cl; CaCO3 and Ca2+ were because each pair had the same method of analysis (see Table 1) backed by long proven and widely used tests.

Table 8 Correlation coefficients (Pearson) for all continuous variables

Assuming a significance level of α = 0.05, Table 9 displays the P values for Pearson’s correlation test. The light red highlights shade P values greater than 0.05; the statistically non-significant correlations. The light green highlights indicate P values less than 0.05 which are commonly deemed statistically significant. Correlations involving Fe2+  had the maximum number of statistically significant tests.

Table 9 P values (Pearson) from the correlation analysis

The coefficients of determination (R-squared) shown in Table 10 interpret the fitness of the regression models with the observed data. It ranges between 0 and 1. The more the coefficients progress towards 1, the better the linear fit between the correlated variables. Analysis variables with strong correlation coefficients and near-1 coefficients of determinations were further examined in Table 11 to provide further insights regarding their inter-relationship.

Table 10 Coefficients of determination (Pearson)
Table 11 Regression and ANOVA summary output for some correlated variables

In Table 11, Turbidity and Fe2+; Total Solids and Oils and Grease relationships were further examined using simple linear regression and ANOVA techniques. Each pair had direct proportionality with very impressive coefficients of determination. The dependability of total solids on Fe2+ and Cl concentrations and the dependability of pH on NO3 and Cl concentrations were interpreted using multiple linear regression and ANOVA. All but Cl- had positive independent variable coefficients. Its negative coefficient confirms that for every unit increase in Cl concentration, pH will decrease by the value of its coefficient. Relative to all variables’ coefficients, their respective standard errors are small except for turbidity. The standard error tells how sufficiently precise the regression model is by calculating the average distance of the data points from the regression line (Frost 2017). Significance F represents the probability of not rejecting the regression model. It applies to the entire model while the P value applies to each respective coefficient (Mathews n.d.). All significance F values are below the 0.01, 0.05 and 0.1 significance levels making the models highly statistically significant. The 95% confidence intervals give estimated ranges of real coefficient values (Mathews n.d.). For instance, the coefficient for totals solids in its first model is 31.943, there is a 95% probability that it could be as low as 25.594 and as high as 38.293. Figures 5 and 6 displays the plot of turbidity (NTU) against Fe2+ (mg/l) and total solids (mg/l) against oils and grease (mg/l). Figures 7, 8, 9 and 10 are for the multiple linear regression outputs. They depict observed and predicted data for dependent variables against their associated independent variables. Microsoft Excel (2016) was used in creating Figs. 5, 6, 7, 8, 9 and 10.

Fig. 5
figure 5

Scatter plot of turbidity (NTU) against Fe2+ (mg/l)

Fig. 6
figure 6

Scatter plot of total solids (mg/l) against oils and grease (mg/l)

Fig. 7
figure 7

Line fit plot of observed and predicted total solids (mg/l) against Cl (mg/l)

Fig. 8
figure 8

Line fit plot of observed and predicted total solids (mg/l) against Fe2+ (mg/l)

Fig. 9
figure 9

line fit plot of observed and predicted pH values against NO3 (mg/l)

Fig. 10
figure 10

Line fit plot of observed and predicted pH values against Cl (mg/l)

Conclusion

The suitability of the 3 chemicals in the treatment of produced water can be summed up as follows:

Dosing suitability

The incorporation of more ionic parameters other than the conventional ones showed the reducing effects aluminium sulphate, ferrous ammonium sulphate and calcium chloride had on NO3 and Fe2+ concentrations. Aluminium sulphate represents the best treatment option for physical parameters correction. For highly saline waters, ferrous aluminium sulphate is the best option. Calcium chloride is best considered when sulphate and barium levels are required to be maintained. With these groups of chemicals, the possibility of them being used as stand-alone treatment chemical isn’t yet likely given the chloride, barium, and sodium ion concentration increase. The work also confirms the highly complex nature of produced water given the sometimes-non-corresponding trend between 2 different samples treated with the same chemical.

Statistical suitability

50% of the continuous effluent characteristics (total suspended solids, total dissolved solids, total solids, SO2−4, Cl, Na+, Ba2+, Fe2+, Mg2+) were statistically significant for the treatment chemicals hypothesis while 75% of the continuous effluent characteristics (total dissolved solids, total solids, pH, oils and grease, SO2−4, Cl, NO3, CaCO3, Ca2+, Na+, Ba2+ and Fe2+) were statistically significant for the sample type hypothesis. This indicates that effluent characteristics were more influenced by the nature/composition of the produced water than the treatment chemicals used. Only 37.5% of the continuous effluent characteristics were statistically significant for both hypotheses.

Output model suitability

Significant strength and variable dependence were recorded and examined for 4 relationships namely turbidity and Fe2+; total solids with oils and grease; totals solids, Fe2+ and Cl; pH, NO3 and Cl. All models were statistically significant using the three most widely used significance levels.

Recommendation

Increase in settling time to yield better total suspended solids and oils and grease results. The incorporation of more treatment chemicals especially those with double salt natures to create a wider spectrum of treatment options. The Department of Petroleum Resources (DPR) should set limits for newly discovered parameters with potential harm to the environment. Regulatory bodies (especially the DPR) should implement measure standards such as WQI (Water Quality Index), THQ (Target Hazard Quotient) for produced water. Better liaison between the petroleum and chemistry fields in other to investigate the reaction chemistry in these options.