Introduction

Nigeria is a developing country with a population of more than 120 million people. Manufacturing industries are one of the activities that drive the economy. These industries, both small-, medium-, and large-scale manufacturers, are scattered throughout Nigeria’s state. Unfortunately, the wastewater generated therefrom has seriously threatened the environment and aquatic lives. The pollutants, therefore, constitute a major concern and strain on water bodies as most of their discharge plants are channelled towards rivers, lakes, streams, etc., without adequate treatment. In some regions, surface water is the community’s only source of water, exposing them to health risks. According to statistics, by 2050, over two-thirds of the world's population will have inadequate access to good and clean potable water (Liu et al. 2018). This can be seen in the rise of contemporary industries and advanced farming practices, which produce a slew of toxins daily, poisoning water bodies at frightening levels. The demand for clean and potable water is increasingly becoming a topic of concern domestically and globally, as evidence of increased contamination of water bodies from anthropogenic and geological activities emerges (Pena et al. 2005). As a result, wastewater treatment and reuse are critical methods for fulfilling the growing demand for potable water. The proliferation of small-scale paint industries is at an alarming increase because of the rate of unemployment and most of them are struggling to survive. Hence, need for a cost-effective coagulant and a method of treatment that is simple to use. Paint industrial effluent is alkaline, turbid, high in BOD, COD, heavy metals, suspended solids, coloured, etc. (Mohsen et al. 2010; Malakootian et al. 2008; Abdoulhassan et al. 2016). The pigments, solvents, additives, and binders added to the paint during production are responsible for the heavy metals, colour, and turbidity of the paint industry wastewater (Vishali, and Agrawal 2017). The colours used to make paint are called pigments. Iron oxides, titanium dioxide, lead chromates, cadmium, chromium oxide, and mixed metal oxides are a few examples. The kind of paint determines the type of solvent. While oil-based paint uses organic solvents like toluene, benzene, mixed xylene, etc., latex paint uses water. Emulsifiers, deformers, thickening and anti-setting agents, wetting and dispersion agents, biocides, etc., are examples of additives. Synthetic or natural resins, such as acrylics, polyurethanes, polyesters, melamine resins, epoxy, oils, etc., are examples of binder materials.

Colour is an organic material that has dissolved into a solution, while turbidity consists of tiny particles suspended in the water column (Hubbe et al. 2016). Coloured water has negative consequences for aquatic ecosystems by hindering the photosynthetic process of water organisms (Elango and Elango 2017), including water's aesthetic appeal (Ahmadi and Zanjanchi 2016) and rendering the water unfit for consumption and domestic purposes (Ghernaout et al. 2015).

Raychaudhuri et al. (2021) and Yadav et al. (2020) defined heavy metals as metals and metalloids with an atomic number greater than 20 and an atomic density greater than 5 g/cm3 that are toxic even at low parts per billion (ppb) concentrations. They are non-biodegradable, have a proclivity for accumulating in living things, and may cause cancer. Long-term and continuous exposure to heavy metals has been linked to several health risks (Yadav et al. 2020). Lead is dangerous to one's health and can impair the kidneys, liver, reproductive system, and brain (Naseem and Tahir 2001). Mercury is a neurotoxin that has the potential to harm the central nervous system. If the concentration is too high, it might cause pulmonary discomfort, chest discomfort, and dyspnoea (Namasivayam and Kadirvelu 1999). Arsenic may lead to cancer of the skin, lungs, bladder, and kidneys malfunctioning, as well as muscle weakness, appetite loss, and nausea (Mohan and Pittman 2007). As a result, these microscopic particles should be eliminated from industrial wastewater. Some cost-effective wastewater treatment technologies include catalytic ozonation, mesoporous membrane, ultrafiltration, and microscreen (Ghuge and Saroha 2018; Al-Shehri et al. 2019; Niam et al. 2021; Lasaki et al. 2023a). The coagulation–flocculation process is mostly used as a process of treating water/wastewater because it is affordable and simple to use and many small-scale paint industries can adopt it as their treatment method (Gaikwad and Munavalli 2019; Jabar et al. 2020; Iloamaeke et al. 2021). Coagulation causes colloidal particles and suspensions to have a reduced electrokinetic potential, which permits them to aggregate (Jachimowicz and Cydzik-Kwiatkowska 2022).

Alum, ferric chloride, calcium hydroxide, sodium aluminate, aluminium chloride, and ferric sulphate are inorganic salts mostly used as coagulants. The issues found with these salts include (1) their potential to cause cancer and Alzheimer's disease (Okuda et al. 1999; Okolo et al. 2015); (2) their strong hydrolysis properties of Fe3+ limiting the polymerization of iron-based coagulants (Chen et al. 2015); (3) their low coagulation efficiency in cold water (Mohammed et al. 2012); (4) their non-biodegradability; and (5) their high sludge generation (Ani et al. 2011). Organic coagulants are cheap, renewable, biodegradable, and environmentally benign. Hence, the conceived use of AH seed as a coagulant. AH seed as a coagulant is a biomass from agriculture. The edible part of the AH fruit is eaten while the seeds are thrown away. This research, however, finds an application to this seed which is an innovation that converts waste products into wealth due to its efficacy in treating paint industrial wastewater. Recent studies on the use of agro-waste as coagulants by the coagulation–flocculation process are Kernel of Moringa oleifera and Strychnos potatorum (Nirmali) seeds, (Gaikwad and Munavalli 2019), Treculia Africans seed coat (Iloamaeke et al. 2020), Moringa oleifera seed coat (Jabar et al. 2020), Mercenaria mercenaria shell (Iloamaeke et al. 2021). Research on the use of Artocarpus heterophyllus (Jackfruit) seed as a coagulant has shown that Jackfruit seed extract in NaCl has been used to remove turbidity and coliform bacteria from drinking water (Natumanya and Okot-Okumu 2015). Anu and Anu (2016) recorded the usage of Jackfruit seed powder to remove turbidity, conductivity, and total suspended matter from dairy wastewater collected from the industry. Also, Suffian Yusoff et al. (2016) investigated the effect of Jackfruit seed starch as a coagulant aid in the poly aluminium chloride coagulant for the removal of colour, COD, turbidity, suspended solids, and ammoniacal nitrogen from landfill leachate.

None of these studies demonstrated the use of the AH seed in the removal of colour, turbidity, and heavy metals from the paint industry effluent, the functional groups responsible for the removal of the pollutants, the surface morphology of the coagulant, the crystallinity of the coagulant (AH), and the coagulation–flocculation kinetics. It is the aforementioned gap that this study tends to fill.

The study is aimed at investigating the performance potential of (AH) seed as a coagulant in the removal of colour, turbidity, and heavy metals such as lead, arsenic, and mercury from paint industrial wastewater. Physicochemical analysis of paint wastewater was determined including characterization of the AH coagulant before and after coagulation–flocculation. The kinetics performance of the process was equally elucidated.

Materials and methods

Collection of paint effluent sample

A grab sampling technique was employed. The paint industry wastewater was collected from the waste channel pipe of Evangel Paint and Chemicals, located at Eke-Awka, Awka South Local Government, Anambra State of Nigeria. The colour of this effluent was milk. The effluent was collected in 10 L of a black gallon, tightly closed, and stored in a cool place at 4 °C. The characteristics of the paint effluent are presented in Table 1.

Table 1 Characteristics of paint industry wastewater

Preparation of AH Coagulant

The AH fruit was purchased at Eke-Awka market in Awka, Anambra State. The edible body was eaten, leaving the seed (Fig. 1), which was sun-dried for two weeks to remove moisture, after which it was ground using a grinder until its particles were reduced to a powder of a particle size of 1.18 µm using a sieve, thereafter t was kept in a dry container.

Fig. 1
figure 1

The seed of Artocarpus heterophyllus

Physicochemical analysis

Chemical oxygen demand (COD), biological oxygen demand (BOD), total dissolved solids (TDS), total suspended solids (TSS), total hardness, chloride, phosphate, nitrate, and sulphate concentrations were all measured. They were carried out following the standard method for water and waste analysis as stated in Table 1 (procedure in the supplementary material). The electrical conductivity, turbidity, and pH of the paint wastewater were all measured using an electrical conductivity metre (DDS-307 New Delhi, India), turbidimeter (Lab. Tech. model 038, India), and a pH metre (Hanna model HI991300 USA), respectively. Heavy metals were analysed with an atomic absorption spectrophotometer (AAS) (Agilent technology, USA) according to the APHA 3112B (2012) method. Proximate analysis was done using a standard procedure (AOAC 1990a; 2000a; 2000b2005b). The characteristic of the paint effluent collected is shown in Table 1.

Instrumental characterization of the AH coagulant

Functional groups, crystallinity, and the surface morphology of AH coagulant were characterized using standard methods and instruments such as FTIR spectrometer model Cary 630 Agilent tech., Inc USA), XRD spectrometer (Rigaku mono flex 600 by Rigaku cooperation, Japan), and SEM (model Phenom-ProX, Netherlands), respectively.

Coagulation–flocculation experiment

The Jar test method was employed in this experiment. Exactly 0.2 g of AH coagulant was weighed into a 250-mL beaker containing 100 mL of paint wastewater made to be at pH 2. The pH is adjusted by adding 1.0 M HCl for acidic pH or 1.0 M NaOH for basic pH to the paint wastewater. The content of the beaker was stirred for 2 min of rapid mixing (100 rpm) and 20 min of slow mixing (40 rpm) with a magnetic stirrer and then left undisturbed for 50 min. It was filtered (0.5 µm Whatman No. 1 filter paper) and the filtrate was subjected to turbidity, colour, and heavy metal removal analysis using a turbidimeter (Lab. Tech. model 038, India), UV/VIS spectrophotometer (Apel 3000uv, Japan) at 340 nm λ max and an atomic absorption spectrophotometer (Agilent tech. USA), respectively. The experiment was repeated for the dosages of 0.4, 0.6, 0.8, and 1.0 g/L and pH 4, 6, 8, and 10 at a constant 50 min settling time. For the effect of time on the removal efficiency, pH 2 was kept constant and the settling time varied from 10, 20, 30, 40, and 50 min, while for heavy metals pH of 10 and 8 were constant and the same ranges of time varied against coagulant dosages. The experiments were monitored for the effect of coagulant dosage (AH), pH and time on the colour, turbidity, mercury, lead, and arsenic removal efficiency (% I). The colour, turbidity, and heavy metals removal efficiency were calculated thus:

$${\text{\% }} I = \frac{{{\text{initial}}\;{\text{ concentration}} - {\text{final }}\;{\text{concentration}} }}{{{\text{initial}}\;{\text{ concentration}}}} \times 100$$
(1.1)

The data collected from the coagulation–flocculation experiment were used for the kinetics study aspect of this work.

Coagulation–flocculation kinetics—theoretical considerations

According to Menkiti and Onukwuli (2011), the Brownian diffusion coefficient (D) has the following expression, Eq. (1.2)

$$D = \frac{{K_{{\text{B}}} T}}{{6\pi \eta_{o} r}}$$
(1.2)

Abel et al. (1994) showed that the rate constant is a product of collision efficiency, ε, and the Smoluchowski rate constant of rapid coagulation, kR

$$k = \varepsilon k_{{\text{R}}}$$
(1.3)

The Smoluchowski rapid coagulation rate constant has this expression in the equation (Ani et al. (2010)

$$k_{{\text{R}}} = \frac{{4K_{{\text{B}}} T}}{{3\eta_{0} }}$$
(1.4)

where kB represents the Boltzmann constant, T signifies absolute temperature, and ƞo is the viscosity of the fluid. Equation 1.5 is obtained by combining Eqs. 1.3 and 1.4

$$k = \frac{{4\varepsilon k_{{\text{B}}} T}}{{3\eta_{o} }}$$
(1.5)

Brownian diffusion coefficient (D) has the following expression (Nnaji et al. 2014)

$$D = \frac{{K_{{\text{B}}} T}}{{6\pi \eta_{o} r}}$$
(1.6)

Expression for effluent viscosity \(\eta_{o}\) is obtained by making \(\eta_{o}\) the subject of the formula in Eq. 1.6

$$\eta_{o} = {{K_{{\text{B}}} T} \mathord{\left/ {\vphantom {{K_{{\text{B}}} T} {6\pi Dr}}} \right. \kern-0pt} {6\pi Dr}}$$
(1.7)

Substituting Eq. (1.7) in Eq. (1.4) and making collision efficiency, \(\varepsilon\) subject of the formula gives Eq. 1.8

$$\varepsilon = \frac{k}{8\pi Dr}$$
(1.8)

Brownian diffusion coefficient (D) also is related to the friction factor, \(\beta\) (Okolo et al. 2015).

$$D = \frac{{K_{{\text{B}}} T}}{\beta }$$
(1.9)

An expression for friction factor \((\beta )\) is obtained by substituting Eqs. (1.9) in Eq. (1.6)

$$\beta = 6\pi \eta_{o} r$$
(2.0)

Menkiti and Onukwuli, (2011) gave the following relationship between the friction factor, \(\beta\) and the coagulation–flocculation rate constant, k

$$\beta = 2k$$
(2.1)

Effluent viscosity can also be obtained by substituting Eq. (2.1) in (2.0) which gives Eq. 2.2

$$\eta_{o} = \frac{k}{3\pi r}$$
(2.2)

where \(\eta_{o}\) is the effluent viscosity and r is the particle radius. In this study, it is obtained from sieve particle measurement.

First- and second-order equations are shown, respectively, in Eq. (2.3) and (2.4)

$${\text{ln}}N_{t} = {\text{ln}}N_{0} - kt$$
(2.3)
$$\frac{1}{{N_{t} }} = \frac{1}{{N_{0} }} + kt$$
(2.4)

Coagulation–flocculation period \(\tau_{1/2}\) is given as;

$$\tau_{1/2} = \frac{1}{{0.5k\left[ N \right]_{0} }}$$
(2.5)

where Nt is the concentration of the coagulant dosage at the time t, t is the settling time, No is the initial concentration of the particles, and k can be called the turbidity removal rate constant.

Results and discussion

Proximate composition of AH coagulant

The result of the proximate parameters of the AH coagulant obtained in this study is presented in Table 2. According to Mohamad et al. (2019), Sreeletha et al. (2017), and Suzihaque et al. (2022), carbohydrates and proteins are the major components of jackfruit seeds. The proximate analysis shows that the seed of AH contains the highest amount of protein and carbohydrate which is needed in this study as a precursor. Organic compounds contain carbon which plays a critical role in the adsorption and removal of metals, colours, and particles from wastewater because of their porous nature (Jatto et al. 2010). Carbohydrates and proteins are desirous in the adsorption and coagulation–flocculation process because they have –COOH and –NH2 functional groups that aid this process (Menkiti et al. 2018; Asantewah et al. 2021). The result in Table 2 shows the moisture, ash, fat, protein, crude fibre, and carbohydrate contents of the AH seed as 8.82% ± 0.39, 4.00% ± 0.80, 3.56% ± 0.46, 26.63% ± 0.53, 12.27% ± 0.27, and 43.72% ± 0.25 sequentially. The comparison of this result with other researchers as presented in Table 3 shows that moisture contents (8.82%) and ash (4.00%) from our result compare well with the moisture content and ash content of Suzihaque et al. (2022) (6.34% and 3.74%), Fateatun et al. (2014) (9.02% and 2.66%), and Mohamad et al. (2019) (10.76 and 2.4%), respectively. There is an agreement between our fat content of 3.56% with that of 2.10% of Suzihaque et al. (2022), likewise, our carbohydrate content (43.72%) and that of Sultana et al. (2017) 42.49%. The disparity in the proximate analysis results can be attributed to the maturation of the seed, the geographical location of the growing plant including environmental factors.

Table 2 Proximate composition of the Artocarpus heterophyllus coagulant
Table 3 Comparison of the proximate composition of AH with other researchers

Effect of coagulant dosage, pH, and time on the removal efficiencies

Figure 2 depicts the plot of colour removal efficiency against pH for different coagulant dosages at a constant time of 50 min. The graphs show that the colour removal efficiency decreases as the coagulant dosage increases from 0.2 to 1.0 g/L. This is because, at 0.2 g/L the colloid particles of paint wastewater which is negatively charged destabilize, this results in charge neutralization, hence agglomerating into flocs which can easily be sedimented and filtered, thus a rise in the colour removal efficiency. Beyond 0.2 g/L of coagulant dosage, the colloid particles of the paint wastewater re-stabilize. In other words, charge reversal and coagulation recession occur. Increasing coagulant dosages will increase the positive charge of the coagulants, thus leading to electrostatic repulsion between particles (Islam and Mostafa 2020). Hence, results in a decline in the colour removal efficiency after optimal coagulant dosage are reached. The maximum colour removal efficiency is 94.33% at 0.2 g/L (Fig. 2a). The same observation is made in Fig. 2b and e, where the turbidity and arsenic removal efficiencies are 96.66%, and 77.01% at the peak of 0.2 g/L. This removal efficiency of turbidity 96.66% at the optimal dosage is comparable to the work of Lasaki et al. (2023b). While in Fig. 2c, and d, another trend of variation in the removal efficiency was observed. Figure 2c shows that mercury removal efficiency surges from 0.2 to 0.8 g/L and then decreases at 1.0 g/L. Figure 2d presents the lead removal efficiency rise from 0.2 to 0.4 g/L then witnesses a reduction from 0.6 to 1.0 g/L. The maximum mercury and lead removal efficiencies are 99.29% at 0.8 g/L and 97.72% at 0.4 g/L, respectively. The same re-stabilization of colloid particles after optimal coagulant dosage is reached was predominant in the work of Menkiti et al. (2015a, b); Iloamaeke et al. (2021); Islam and Mostafa (2020).

Fig. 2
figure 2

Plot of % removal efficiency against pH at different coagulant dosages at constant 50 min a colour removal b turbidity removal c mercury removal d lead removal e arsenic removal

The results in Figs. 2a–e demonstrated that the colour, turbidity, mercury, lead, and arsenic removal efficiencies were aided by the pH of the effluent. It is obvious in the results (Fig. 2a and b) that the colour and turbidity removal efficiencies dropped as the pH rose from 3 to 10. The best removal efficiency on both graphs 2a and 2b is pH 2. This is in agreement with the work of Mohanad et al. (2021) and Ngadi and Yusoff (2013). If the coagulation–flocculation condition is acidic, the density of positive charges on the surfaces of the coagulant will be high; therefore, charge neutralization dominates the coagulation mechanism (Cao et al. 2010). While Fig. 2c, d, and e reports that the boost in removal efficiencies was brought about by the rise in pH from 2 to 10. Madukasi et al. (2009) suggested that this might be due to polar and hydrophilic functional groups in the effluent, which led to a faster aggregation at pH 2, 8, and 10, thus progression in the removal efficiency. The optimal removal efficiencies of mercury, arsenic, and lead were noted at pH 8 (Fig. 2c and e) and 10 (Fig. 2d), respectively. High pH means more alkaline and the coagulant surface will adopt a negative charge; thus, the adsorption mechanism overrides the removal of mercury, lead, and arsenic. A similar finding has been documented by Sakhi et al. (2019), where the removal efficiency of the following heavy metals, such as Cd, Pb, Ni, Cr, As, and Se, was obtained at pH 8. Marzougui et al. (2018) and Pang et al. (2011) reported optimal pH of 8.5 for Pb, Cr, Zn, Cu, Ni removal and 8–10.9 for Pb, Zn, and Fe, respectively.

The effect of time on the coagulation–flocculation is plotted in Fig. 3a–e. This is the time for destabilization of the paint effluent's colloid particles and the floc's formation. Those graphs exhibit that time is another significant variable in treatment efficiency. As portrayed in the graphs, the best treatment performance was observed at 50 min and 0.2 g/L with colour (Fig. 3a), turbidity (Fig. 3b), lead (Fig. 3d), and arsenic (Fig. 3e) removal efficiencies of 94.90%, 99.94%, 99.56%, and 75.94%, respectively. Mercury (Fig. 3c) has the optimal treatment efficiency of 99.57% at 0.8 g/L at 40 min. This is because there were so many active coagulant sites accessible for destabilizing activities, and the coagulation rate was substantial at the beginning of the coagulation–flocculation process, as seen by the significant improvement in removal efficiencies achieved between 10 to 50 min (Menkiti et al. 2014; Abdulsahib et al. 2015). Lasaki et al. (2023a) reported that the settling time, which correlates with settling velocity, serves as an indicator for assessing the effectiveness of a flocculant in generating flocs that settle rapidly. Here, AH serves the dual function of a coagulant and flocculant. The settling time for this coagulation–flocculation process is between 40 and 50 min, indicating the duration required for the formation of highly settleable flocs and facilitating their easy removal through filtration, thereby enhancing pollutant removal efficiency. Additionally, the substantial size of the AH coagulant, as reported by Teh et al. (2014), might explain the rapid settling of the flocs formed. There is a concordance between these results and the results of the variation of coagulation dosage against pH with respect to coagulant dosage. This result is consistent with our earlier work (Iloamaeke and Julius 2019; Iloamaeke et al. 2021; Vajihinejad et al. 2019).

Fig. 3
figure 3

Plot of removal efficiency against time at different coagulant dosages a colour removal at constant pH 2 b turbidity removal at constant pH 2 c lead removal at constant pH 8 d mercury removal at constant pH 10 e arsenic removal at constant pH 8

IR analysis

The IR analysis was conducted before the treatment of the paint wastewater with the Artocarpus heterophyllus coagulant (AH) and the sludge (residue) after the treatment. The results are displayed in Fig. 4a–c, while the interpretation of the IR spectral bands is tabulated in Table 4. Table 4 can also be referred to as the functional groups’ interaction of the colloid particles of the paint wastewater and the AH coagulants. From the Table, the following conclusion can be drawn about AH coagulant: the absorption peak at 3655.5 cm−1 is assigned to O–H functional group from alcohol, 3280.1 and 2822.2 cm−1 signify N–H stretch from amine and O–H stretch from carboxylic acid, confirming the presence of protein and carbohydrate in the proximate analysis (Table 2). Spectral bands at 1952.5 and 1982.9 cm−1 are attributed to C–H bending, 1636.3 cm−1 is N–H bending from amine, 1405.2 and 1338.1 cm−1 are O–H bending from alcohol, while 1148.0 cm−1 indicates C–O stretch from the ether. A similar result has been obtained by (Choy et al. 2016). Comparing the IR spectrum of AH coagulant (Fig. 4a) to the AH sludge of dosage and pH (Fig. 4b) and AH sludge of dosage and time (Fig. 4c) in the same Table 3, it can be observed that the peak at 3655.5 cm−1 disappeared from the spectra of AH sludge of dosage and pH and AH sludge of dosage and time. A new absorption peak of 1244.9 cm−1 and 1237.5 cm−1 was added to the AH sludge of dosage and pH including dosage and time, respectively. N–H bending was not in AH coagulant of dosage and time while other spectral bands were shifted upwards and downwards. This suggests that AH coagulant has removed pollutants from the paint wastewater. The functional groups that actively participate in the process are mostly amine, hydroxyl, and carboxylic groups, while the primary agents of the coagulation–flocculation process, according to Thamer and Eman (2017), are proteins.

Fig. 4
figure 4

FTIR spectra of Artocarpus heterophyllus a coagulant before the coagulation–flocculation process b after the coagulation–flocculation process of dosage and pH c after the coagulation–flocculation process of dosage and time

Table 4 IR interpretation of spectral bands

SEM analysis result of AH coagulant

The SEM result of the AH coagulant before the coagulation–flocculation process is delineated in Fig. 5a. A close observation of Fig. 5a reveals that the surface of this coagulant looks rough with tiny pores in it. The rough surface and pores are the points of attachment of the colloidal particles of the paint wastewater. This property makes the seed of AH a suitable precursor. Figure 5b is the surface morphology of the residue (sludge) after the coagulation–flocculation process of dosage and pH at a constant time of 50 min, while Fig. 5c is the surface morphology of the sludge of dosage and time at a constant pH. Figure 5b and c shows that the coagulant surfaces are compressed as a result of the rough porous nature of the coagulant surface which attracted the colloidal particles of the paint effluent and thus clumped together. These changes in the surface morphology of the coagulant after the coagulation–flocculation process demonstrated that AH coagulant removed pollutants from the paint wastewater.

Fig. 5
figure 5

SEM result of Artocarpus heterophyllus a before coagulation–flocculation b sludge of dosage and pH at the constant time c sludge of dosage and time at constant pH

XRD result

X-ray diffraction (XRD) is an analytical technique for determining materials' crystallinity and amorphous nature. It functions by producing constructive interference with a crystalline sample and monochromatic X-rays (Menkiti and Ejimofor 2016). The AH coagulant (Fig. 6A) before treatment with paint wastewater exhibited five distinct peaks at 28°, 37°, 43°, 55°, and 58° at 2 thetas, which are crisp, strong, and singularly extended up. This suggests strong crystallinity; however, the XRD patterns of the coagulant following treatment (Figs. B and C) exhibit wide, weak, and overlapping peaks, indicating poor crystallinity or amorphous structure. The overlapping peaks are due to the interaction of pollutants from paint industrial wastewater and the crystalline structure of AH coagulant.

Fig. 6
figure 6

XRD diffractograms of (A) AH coagulant before the coagulation–flocculation process (B) AH sludge after the coagulation–flocculation process of coagulant dosage and pH at a constant time (C) AH sludge of coagulant dosage and time at constant pH

Coagulation–flocculation kinetics

The coagulation–flocculation reaction for a colloid particle of paint wastewater (P) and AH coagulant (A) is given as shown in Eq. 2.6

$${\text{P }} + {\text{ A}} \to {\text{PA}}$$
(2.6)

The rate equation of the above process is given as

$${\text{r }} = {\text{ k }}\left[ {\text{p}} \right]\left[ {\text{A}} \right]$$
(2.7)

According to Eq. 2.7, the rate of these reactions depends on the k and concentration of both the colloid particles of paint wastewater and the AH coagulant. Figure 7 is the second-order reaction of the coagulation–flocculation process. Table 5 illustrates the functional coagulation–flocculation kinetics parameters for various dosages and times at constant pH 2 of the turbidity removal. The data of the turbidity removal at different coagulant dosages and time were used to study kinetics because it gave the highest treatment efficiency. The turbidity data were converted to milligrams per litre (mg/L) by multiplying turbidity in NTU by 2.2 (Menkiti et al. 2015a, b) and finally to grams per litre by dividing turbidity in mg/L by 1000. k is the coagulation–flocculation rate constant involved in the aggregation for the second-order predominated process. High k is also required to obtain low τ1/2 since both are inversely proportional according to Eq. 2.8. The highest k is 0.0010 L/g min at 0.2 g/L. ε is the particle collision efficiency which is directly proportional to the kinetic energy acquired by the colliding particles. The lowest τ1/2 is obtained at 5.55556 min, which denotes the period for rapid coagulation–flocculation, resulting in particle aggregation and the formation of floc. High collision efficiency ε leads to high kinetic energy required to overcome repulsive forces of attraction that hinder particles from aggregating and this is evident in Table 5. Furthermore, this explains why the highest turbidity efficiency is obtained at 0.2 g/L pH 2 and a time of 50 min. Other parameters such as kR and β correlate well with the k, ε and τ1/2. This result agrees with the work reported elsewhere (Menkiti et al. 2015a, b; Ani et al. 2012; Vishali, and Karthikeyan 2018).

Fig. 7
figure 7

Kinetics plot of second-order reaction

Table 5 Functional coagulation–flocculation kinetics for different dosages and time at constant pH 2

Particle size distribution

The pattern and distribution of aggregate ions/particles when they floc into discernible lumps are mostly displayed by the particle distribution plots. The cluster size distribution for colliding particles was obtained by deriving a generic expression, Eq. 2.9, from Eq. 2.8. This was done for particles of mth order, taking into account the fact that the coagulation–flocculation followed second-order kinetics and that the coagulation period is characterized by a twofold reduction in the total number concentration.

$$\frac{{N_{m} \left( t \right)}}{{N_{0} }} = \frac{{\left[ {KN_{0} \left( \frac{t}{2} \right)} \right]^{m - 1} }}{{\left[ {1 + \left( {KN_{0} \left( \frac{t}{2} \right)} \right)} \right]^{m + 1} }}$$
(2.8)
$$N_{m} \left( t \right) = 4N_{0}^{m} \left( {Kt} \right)^{m - 1} \left[ {2 + \left( {KN_{0} t} \right)} \right]^{{ - \left( {m + 1} \right)}}$$
(2.9)

where ∑N is the representation of the total number of particles. Applying derived Eq. 2.9 for m = 1, 2, and 3 allowed for the prediction of the time evolution of the aggregating particles, which are dimmers, trimmers, and monomers. Figure 8a–e is time evolution of the floc size distribution for studied coagulant dosages: (a) 0.2 g/L, (b) 0.4 g/L, (c) 0.6 g/L, (d) 0.8 g/L, (e) 1.0 g/L, while 8f is time evolution of the distribution of dimmers for studied coagulant dosages at pH 2. Closely inspection of Figs. 8a–e shows the trends of particle aggregation throughout time. A consistent pattern across all the figures indicates the particle dispersion predicted in a typical coagulation process. It can be seen from Figs. 8a–e that the number of large particles, or monomers, decreases more quickly than the total particle count, hence aiding the coagulation process. Dimmers and trimmers arise from the rapid destabilization of monomers. The coagulation process was aided by the fast destabilization of monomers, which led to the formation of dimmers and trimmers. These highlight how well Eq. 2.9 fits the particle size distribution and aligns with earlier coagulation research (Nnaji et al. 2014; Ani et al. 2012). A dimmer trend is shown in Fig. 8f. It demonstrates that concentrations of larger floc sizes increase in the early stages of the coagulation process but fall in the later stages. An earlier work by Cao et al. (2011) supports this observation.

Fig. 8
figure 8

Time evolution of the floc size distribution for studied coagulant dosages: a 0.2 g/L, b 0.4 g/L, c 0.6 g/L, d 0.8 g/L, e 1.0 g/L f time evolution of the distribution of dimmers for studied coagulant dosages, at pH 2

Economic feasibility assessment

The conventional activated sludge (CAS) technique allows the treatment of municipal wastewater via turbidity removal by assessing the reduction in total suspended solids (TSS). CAS systems, though they involve biological load reduction, have been applied to most wastewater treatment plants (WWTPs). It is estimated that in WWTPs with conventional activated sludge systems, aeration accounts for 50–60% of total electricity consumption and sludge treatment for 15–25% (Oulebsir et al. 2020). This inspired Nguyen et al. (2014) to work on aeration time optimization using the benchmark simulation model (BSM1) and the activated sludge model (ASM1). The results revealed a 30% increase in energy consumption for large WWTPs and a 70% gain for small WWTPs. It is therefore suggested that large WWTPs be installed for wastewater treatments to keep energy consumption to the barest minimum. The good thing is that biomass technologies are good alternatives for electricity generation and hence have a positive impact on energy demand in WWTPs (Oulebsir et al. 2020).

Conclusion

AH coagulant is found to be an efficient natural coagulant in the treatment of paint effluent, for colour, turbidity, arsenic, mercury, and lead removal, under the optimal conditions of coagulant dosage of 0.2 g/L and pH 2, 0.8 g/L and pH 8, and 0.4 g/L and pH 10, all at a time of 50 min. FTIR spectra of the coagulant after the coagulation–flocculation process indicated some shifts in wave number indicating bond breakage and displacement of functional groups, hence the colour, turbidity, mercury, lead, arsenic, and other pollutants removal are suggested. The SEM image before the coagulation–flocculation process established that AH coagulant has a rough surface and tiny pores that aided the coagulation–flocculation process. The XRD pattern showed that the crystalline structure of the AH coagulant was altered to an amorphous structure after treatment. Coagulation–flocculation kinetics showed second-order kinetics fitting better. Also, τ1/2 demonstrated a rapid coagulation–flocculation process of 0.6292 min.