1 Introduction

Over the past decades, along with the developed countries industrialization, a huge amount of contaminated water by various organic pollutants (specifically dyes) have been discharged into the aquatic ecosystem without suitable prior treatment [1, 2] The presence of synthetic organic dyes can cause further problems of these effluents discharging since synthetic dyes are persistent pollutants and might remain in the surface water bodies for a long time. Moreover, the effluent including synthetic dyes are greatly colored which inhibits sunlight penetration, and also some organic dyes can cause mutagenic and carcinogenic problems in humans [3]. Based on the abovementioned problems, it can be said that dyes are complex aromatic compounds with a high level of stability, hence, they are almost resistant to degrade by conventional treatment methods [4, 5]. In the last decades, electrochemical technology has been greatly developed for different wastewater treatment due to its versatility, environmental friendliness, and safety [5, 6]. Among the electrochemical removal methods, the electrochemical advanced oxidation processes (EAOPs) method attracted considerable attention of environmental researchers due to its high degradation and mineralization efficiency, easy operation, and no sludge generation [7]. The EAOPs efficiency depends upon the substrate, and preparation method of the anode, electrolyte concentration, applied current density, as well as pollutant concentration [8, 9]. During the electrochemical oxidation process, among the affecting mentioned parameters the anode material plays a critical role and remarkably affects the pollutant oxidation efficiency [10]. Therefore, it will be of notable benefit to investigate a novel and suitable electrode material with high electro-catalytic efficiency for the electrochemical removal process. It is worth noting that good anode materials should not only be effective in treatment processes but also cost-effective and stable electrochemically. On the other hand, researchers studying in this field found that the anode surface modification using nanoparticles significantly enhances the active surface area and improves the electrochemical removal rate [11, 12]. So far, various electrodes such as Platinum, Graphite, Boron doped diamond (BDD) electrodes as well as titanium (Ti) based dimensional stable anodes (DSAs) have been employed for the removal of organic pollutants [13]. Furthermore, the results of various studies showed that in the treatment processes by Ti-based DSA electrodes, the Ti is highly reactive and oxidized rapidly, hence, an unstable current is observed during the process. In this regard, different types of Ti-based metal oxide electrodes like TiO2, IrO2, ZnO, RuO2, Al2O3, CuO, PbO2, SnO2, and AgO have been investigated to study the removal of organic pollutants [14, 15]. Among the above coating nanoparticles, Zinc oxide nanoparticles (ZnO–NPs) are n-type semiconductors with a wide bandgap near 3.3 eV. The ZnO–NPs salient features are wide availability, excellent electrochemical properties, non-toxicity, high physical and chemical stability, the conductivity of 10–7–10–3 S cm−1, low cost, and relatively high photocatalytic activity [12, 16, 17]. At the same time, Copper oxide nanoparticles (CuO NPs) as another attractive semiconductor, has become an important option in catalysis processes as advanced materials, chemical sensors, lithium-ion batteries, adsorbent materials, and antimicrobial materials owing to their high optical absorption coefficient, physical and chemical stability, natural p-type conductivity, catalytic and antibacterial properties [16,17,18,19]. Despite the large number of published papers describing the application of ZnO–CuO nano-composite, especially as photo-catalysts, to the best of our knowledge, modification of the Ti substrate by a layer of ZnO–CuO nano-composite through electrophoretic deposition (EPD) method has not been reported so far as anode for electrochemical removal of organic pollutants. It can thus be suggested that coating Ti substrate with ZnO–CuO nano-composite thin film is a promising design of the anodes to achieve a possible synergic effect between ZnO and CuO nanoparticles and the effective electro-catalytic oxidation ability of toxic organic pollutants. Herein, a novel Ti/nanoZnO–CuO composite electrode was fabricated for the first time through a versatile, simple, cost-effective, and efficient EPD technique. Typically, the EPD process consists of two steps, the first of which occurs when the charged particles in a colloidal suspension electrically migrate to the substrate with the opposite charge under the application of an electric field. Following, particles deposit on the substrate surface in the second step and create a highly dense and uniform film [16, 17, 20].

The surface morphology, chemical composition, crystalline structure, and electrochemical properties of the prepared Ti/nanoZnO–CuO electrodes were characterized by means of field emission scanning electronic microscopy (FESEM), energy-dispersive X-ray spectroscopy (EDS), X-ray diffraction (XRD), linear sweep voltammetry (LSV), cyclic voltammetry (CV), electrochemical impedance spectroscopy (EIS), chrono-amperometry (CA), and chrono-potentiometry (CP). The main objective of present study was to assess the electro-catalytic activity of a novel prepared Ti/nanoZnO–CuO electrode as an anode for the electrochemical decolorization of reactive orange 7 (RO7) dye as the target pollutant from aqueous solution. Further, response surface methodology (RSM) using central composite design (CCD) (as a statistical method) was applied to identify the relationship of the factors and response, the interactions among the independent variables, the optimum operational conditions, and the relative significance of the factors in multivariable systems [21, 22]. As a final analysis, chemical oxygen demand (COD) removal was performed to determine RO7 dye mineralization efficiency in an aqueous solution as a function of optimal conditions.

2 Experimental

2.1 Materials

Oxalic acid (C2H2O4–2H2O) with 98% purity (Merk) and sodium hydroxide (NaOH) (Merk) were used for cleaning the Ti substrate. ZnO (99.9% purity) and CuO (99% purity) metal oxide nanoparticles were purchased from Neutrino Corporation, Iran, and used for the ZnO and ZnO–CuO nano-composite deposition. N, N Dimethylformamide (DMF) solvent (Carlo, France) and Nickel (II) chloride (NiCl2) (Merk) were used in the EPD coating process. All other chemicals namely sodium chloride (NaCl), sodium sulfate (Na2SO4), hydrochloric acid (HCl), and NaOH were obtained from Merck Co. and were used for the electrochemical measurements and the adjusting operational condition for removal experiments. The synthetic RO7 dye (Alvan Sabet Company, Hamedan, Iran) characteristics are given in Table 1S. To prepare a stock solution, a specific amount of RO7 dye in powder form was dissolved into the distilled water and then diluted into a concentration of 50 mg L−1 for each experimental run. The stock solution was stored in a dark place for further use after dilutions to prevent decolorization. All chemicals and reagents used in this work were of analytical grade.

2.2 Preparation of the Ti/nanoZnO–CuO electrode

Prior to the deposition of ZnO–CuO nano-composite film, titanium plates (2 cm × 2 cm × 0.5 mm) were pre-treated according to the procedure detailed in our previous study [23]. The ZnO–CuO nano-composite films were electrodeposited on the pretreated Ti substrate by the following steps: Initially, the electrodeposition solution was prepared in a cylindrical Pyrex glass vessel as follows: the ZnO and CuO nanoparticles at a molar ratio of 2:1 and NiCl2 charger salt as an additive (less than 1%) were dispersed uniformly in 50 mL DMF by sonication in an ultrasonic probe for 20 min. Afterward, cathodic EPD was carried out in a uniform suspension at a current of 0.005 A for 2 min using a pretreated Ti plate as the cathode and two other same-size Ti plates served as anodes with a distance of approximately 1 cm. This procedure was subsequently repeated several times until the Ti plate was thoroughly covered by the desired amount of catalytic film. At last, the electrodes were air-dried horizontally at room temperature overnight and then annealed at 350 °C in a furnace for 3 h.

2.3 Physicochemical characterization and electrochemical measurement of Ti/nanoZnO–CuO electrode

The surface morphology of the Ti substrate as well as ZnO–NPs and ZnO–CuO nano-composite coatings were examined by field emission scanning electron microscope (FESEM, TE-SCAN; MIRA3; Czech). The elemental analysis of the Ti/nanoZnO–CuO electrode was observed by energy-dispersive X-ray spectroscopy (EDS, Oxford Instrument; England) attached to FESEM. X-ray diffraction (XRD, D8, Bruker, Germany) patterns were collected using a diffractometer with a Cu Kα X-ray source (λ = 0.15406 nm) over the range of 20°–80° to analyze the crystalline structure and phase composition of the coated film.

In this study, Ti/ nanoZnO and Ti/nanoZnO–CuO electrodes were characterized electrochemically by LSV, CV, CA, and CP through three-electrode cell system (Origa flex, Origalys, France). Ti and prepared electrodes, a platinum wire, and Ag/AgCl/KCl (sat’d) electrode used as the working, counter, and reference electrodes, respectively. At the same time, the EIS tests were executed through Ivium stat Potentiostat/Galvanostat device model Vertex (Netherland). The oxidative property of Ti/nanoZnO–CuO electrodes was analyzed by CV measurement in 1 g L−1 NaCl solution in the presence and absence of 50 mg L−1 RO7 dye with a scan rate of 50 mV s−1 between 0 and 3.0 V. All other electrochemical characterization tests were carried out in 0.1 mol L−1 Na2SO4 aqueous solution. The LSV experiments were carried out at a scan rate of 50 mV s−1 to characterize the oxygen evaluation potential (OEP) and chlorine evolution potential (CEP) (in 1 g L−1 NaCl solution) responses of the electrodes. The EIS measurements were also taken at an open-circuit potential with a frequency range between 100 kHz and 10 mHz and the obtained results were fitted using Z view software. The CP and CA tests were carried out as a function of time at the anode current density and potential of 50 mA cm−2 and 4 V, respectively, to evaluate anode stability.

2.4 Experimental design

The CCD under RSM, which is an efficient optimization tool, was applied to seek the interaction between independent variables and achieve the optimum conditions for the electrochemical removal process. According to this method, a CCD modeling based on four independent variables [pH, current (A), electrolyte concentration (g L−1), and electrolysis time (min)], consisting of 31 experimental runs was taken to model color removal efficiency of RO7 (response) in optimization section. The natural values and coded levels of mentioned factors are listed in Table 2S. The critical ranges of the four independent variables were determined by some preliminary experiments. Table 1 summarizes the data on the experimental conditions (in the form of the uncoded unit) by CCD along with the actual and predicted responses for dye removal. The color removal efficiency [CR (%)] was calculated according to the UV–Vis data through Eq. (1):

$${{RO}}7\% \, = \, \frac{{\left( {A_{0} \, - \,A_{{\text{t}}} } \right)}}{{A_{0} }}\times100,$$
(1)

where A0 and At are the absorbance before and after the decolorization process, respectively.

Table 1 Central composite design array in uncoded units and the value of response function (CR%)

The color removal efficiency data were then analyzed and interpreted applying analysis of variance (ANOVA) (e.g., R2, adjusted R2, t-test, and F-test), and response plots using Minitab 16 software. Following this, a second-order quadratic polynomial equation was resulted to give an explanation for the interaction between the independent variables and the dependent response in the removal process.

3 Results and discussion

3.1 Morphological and structural characterization of Ti/nanoZnO–CuO electrode

Figure 1 depicts the surface morphology FE-SEM images of (A) Ti, (B) Ti/nanoZnO, and (C) Ti/nanoZnO–CuO electrodes at different (1 µm, 500 nm, and 200 nm) magnifications. As shown in Fig. 1A, the oxalic acid-etched titanium surface is relatively rough which is expected to strengthen the adhesion and interaction of the coating layer and substrate [24]. As indicated in Fig. 1B along with (C), FE-SEM images of Ti/nanoZnO and Ti/nanoZnO–CuO electrodes, ZnO nanoparticles and ZnO–CuO nanocomposite successfully coated the Ti substrate surface which led to more porous and rougher structures than Ti substrate. On the other hand, in Fig. 1B, the Ti surface modified with ZnO–NPs has pores that improve electrochemical activity. Further, Fig. 1C showed the uniform distribution of CuO–NPs in ZnO–NPs which CuO–NPs easily filled the ZnO pores due to the small size of CuO–NPs; this phenomenon was resulted in creating a more uniform and dense surface [25, 26]. Therefore, according to the surface morphology of the Ti/nanoZnO–CuO electrode compared to Ti/nanoZnO and even Ti electrodes, since the electrocatalytic reactions happen on the surface of electrodes, this expected that the prepared Ti/nanoZnO–CuO electrode exhibits better performance in the electrochemical removal of organics. Subsequent analyses in this study were also performed to further confirm the presence of CuO nanoparticles.

Fig. 1
figure 1

The FE-SEM images of A Bare Ti, B Ti/nanoZnO, and C Ti/nanoZnO–CuO electrodes

In order to measure the chemical composition along with confirmation of components in the ZnO–CuO nano-composite coated layer, an EDS analysis was performed. Figure 1S shows the EDS spectrum of Ti/nanoZnO–CuO electrode, which verifies the presence of Zn, O, Cu, and Ti [17, 27]. In addition to EDS, XRD pattern is also utilized to further examine the elemental composition of the ZnO–CuO nano-composite. From Fig. 2, the diffraction peaks locating at 2θ = 32.03°, 34.70°, 36.53°, 47.78°, 57.10°, 63.12°, and 68.30° were ascribed to the (100), (002), (101), (102), (110), (103), and (112) planes of the ZnO–NPs, while (002), (111), (− 202) and (020) planes at 2θ = 35.80°, 38.79°, 49.04°, and 53.24° were assigned to CuO–NPs [28]. Furthermore, all the diffraction peaks of the ZnO–CuO nano-composite in Fig. 2 show no diffraction peaks of impurities and crystallized TiO2 (the result of Ti substrate oxidation). Besides, the crystallite size values were estimated using the Debye–Scherrer’s equation, the result was stated in Table 3S.

Fig. 2
figure 2

The XRD pattern of Ti/nanoZnO–CuO electrode

3.2 Electrochemical characterization of Ti/nanoZnO–CuO electrode

In order to probe the impact of CuO–ZnO nano-composite and ZnO–NPs coating, LSV analysis was used to probe the oxygen evolution potentials (OEP) of the Ti/nanoZnO–CuO and Ti/nanoZnO electrodes (Fig. 3A) [29]. From this figure, it can be clearly seen the reduction in overpotential value of the Ti/nanoZnO–CuO and Ti/nanoZnO electrodes compared to conventional Ti electrode which might be related to enhanced active sites for reactions of oxygen evolution on prepared electrodes [30, 31]. Furthermore, the presence of CuO–NPs in the ZnO–CuO nano-composite has played a significant role in improving the oxygen evolution current density. Therefore, the mentioned enhancement leads to higher electrocatalytic activity in the oxidation of organic pollutants through Ti/nanoZnO–CuO electrode than Ti/nanoZnO electrode [32]. Tafel graph was drawn from LSV data (Fig. 3B) for further electrochemical investigation on the Ti/nanoZnO–CuO electrode. According to the obtained result, in a linear fitting of Tafel data for two electrodes using Origin software, the Ti/nanoZnO–CuO electrode (0.44 V dec−1) showed a lower slope compared to Ti/nanoZnO electrode (0.46 V dec−1), which led to better electrocatalytic activity [33, 34]. Furthermore, according to the Fig. 3C, it can be clearly seen that introduction of CuO–NPs resulted in a decrease in CEP value for Ti/nanoZnO–CuO electrodes, suggesting that chlorine species can be formed more easily. In this regard, the presence of produced active chlorine species can have a role in the electrochemical removal (mainly decolorization) of dyes [35, 36]. Comparison of OEP and CEP values can provide evidence of earlier evolution of the active chlorine species than side reaction for oxygen evolution. Due to this, active chlorine species can have contributions to electrochemical oxidize pollutants by electrochemical methods via Ti/nanoZnO–CuO electrode in removal processes [24].

Fig. 3
figure 3

A Linear sweep voltammetry curves of Bare Ti, Ti/nanoZnO, and Ti/nanoZnO–CuO electrodes in 0.1 mol L−1 Na2SO4 solution at scan rates of 50 mV s−1, B Tofel plots of Ti/nanoZnO–CuO and Ti/nanoZnO, C Linear sweep voltammetry curves of Ti/nanoZnO and Ti/nanoZnO–CuO in 1 g L−1 NaCl solution at scan rates of 50 mV s−1

Cyclic voltammograms of Ti/nanoZnO–CuO electrode (0.5 × 0.5 cm2) in the 1 g L−1 NaCl solution with and without the 50 mg L−1 of RO7 at a scan rate of 50 mV s−1 in the potential range between 0.0 V and 3.0 V are displayed in Fig. 4. As can be seen in this figure, when RO7 was added into the NaCl electrolyte, no additional oxidation peak was observed, which showed that the Ti/nanoZnO–CuO electrode does not participate in the direct electrochemical oxidation reaction of RO7 dye and behaves as a non-active electrode [32, 37]. Thus, it could be concluded that RO7 electro catalytic removal was achieved via hydroxyl radicals together with other oxidant species.

Fig. 4
figure 4

Cyclic voltammograms of Ti/nanoZnO–CuO in absence and presence of 50 mg L−1 RO7 at 50 mV s−1 scanning rate

Further, for the sake of monitoring the electrochemical effect of the CuO–ZnO nano-composite and ZnO–NPs coated layers on the Ti substrate based on the EPD coating method, EIS analysis, as a well-known technique, was employed to study interfacial characteristics of the coated layer. Figure 5 presents the resultant Nyquist plots and equivalent circuit for the Ti, Ti/nanoZnO, and Ti/nanoZnO–CuO electrodes in a three-electrode system at frequencies swept from 100 kHz to 0.01 Hz in 0.1 mol L−1 Na2SO4 at an open-circuit potential [38, 39]. In general, each Nyquist plot consists of two parts: a semicircle arc part at the high-frequency range and a linear part at the low-frequency range which corresponds to the charge-transfer process and the radius attributed to the electrolyte diffusion, respectively. It can be clearly observed that the Ti/nanoZnO–CuO electrode has the smallest arc diameter, which reveals that the introduction of CuO–NPs considerably reduced the charge-transfer resistance of the modified electrode compared with bare Ti and Ti/nanoZnO electrodes. Moreover, the fitted parameters (Rs, Rct, and CPE) of the equivalent circuit models are listed in Table 4S. In Rs [Rct CPEdl] equivalent circuit for bare Ti and Ti/nanoZnO electrodes, Rs and Rct represent the solution resistance and charge transfer, while CPEdl is associated with constant phase element of double layer. Besides, additional parameter (CPE0) in Rs [CPEdl (RctCPE0)] equivalent circuit is constant phase element. On the basis of obtained Rct values, the modified electrode possessed the smallest Rct, which indicates the improvement of conductivity and electrocatalytic activity [32, 39].

Fig. 5
figure 5

Nyquist plots of Bare Ti, Ti/nanoZnO, and Ti/nanoZnO–CuO electrodes and fitted equivalent circuit of A Bare Ti and Ti/nanoZnO, B Ti/nanoZnO–CuO in 0.1 mol L−1 Na2SO4 solution at open-circuit potential

Since the stability of electrode is important in practical applications of the electrochemical oxidation process, CA tests were conducted to evaluate the stability of Ti, Ti/nanoZnO, and Ti/nanoZnO–CuO electrodes with the dimension of 2 × 2 cm2 in a solution of 0.1 mol L−1 Na2SO4 at 4 V during the 1800s. According to CA responses in Fig. 6, it can be said that Ti/nanoZnO–CuO electrode indicated a higher current response rather than other electrodes throughout the test under the same conditions [40,41,42]. As indicated shown in Fig. 6, the Ti electrode shows a low current density, and also this parameter has a sharp current decrease near to zero in the initial few seconds because of the Ti surface deactivation. Besides, the current density of Ti/nanoZnO declines but almost near to 4V [43,44,45,46,47,48]. In comparison to these electrodes, the Ti/nanoZnO–CuO electrode provides better current density value and stability which indicates a slower deactivation of this electrode. In addition, the high current density in the CA response of Ti/nanoZnO–CuO electrode could be attributed to more active sites resulted from CuO–NPs presence. Therefore, obtained results confirm the superior electrochemical performance of the Ti/nanoZnO–CuO over Ti and Ti/nanoZnO electrodes [40, 49].

Fig. 6
figure 6

Chrono-amperograms of Bare Ti, Ti/nanoZnO, and Ti/nanoZnO–CuO electrodes for 30 min

An important factor in the evaluation of electrode quality is its service lifetime as well as its electrochemical stability, which affected by various parameters such as current density, temperature, and pH of the electrolyte. Therefore, the CP analysis was carried out to further assess the stabilities of Ti/nanoZnO–CuO, Ti/nanoZnO, and Ti electrodes. The CP diagrams were recorded with a constant current density of 50 mA cm−2 were indicated in Fig. 7. It is worth noting that, regarding the difficulty of evaluating the actual service life of electrodes at low current density values due to the relatively long process; the following empirical relationship can help to assess the actual lifetime of the electrodes in different current densities.

$$\Gamma 2\, = \,\left( {\frac{{i_{1} }}{{i_{2} }}} \right)^{2} \Gamma 1,$$
(2)

where Ʈ1 and Ʈ2 are accelerated and actual service life, respectively, as well as i1 and i2 are accelerated and actual current density, respectively. According to the results shown in Fig. 6, the accelerated lifetime of the Ti/nanoZnO–CuO electrode (963.3 s) under accelerated test conditions is 3.4 times longer than that of the Ti/nanoZnO electrode (283 s). The calculated actual service life of Ti/nanoZnO–CuO, Ti/nanoZnO, and Ti electrodes in 5 mA cm−2 was 26.76, 7.5, and 2.56 h, respectively. It is worth pointing out, the longer actual service life of coated electrodes than Ti electrode can be attributed to the deposition of coating layers on the surface of the Ti substrate, which prevents the phenomenon of passivation. On the other hand, the introduction of CuO–NPs leads to enhancement in conductivity as well as actual service life than Ti/nanoZnO [41, 42, 48].

Fig. 7
figure 7

Chrono-potentiometry curves of Bare Ti, Ti/nanoZnO, and Ti/nanoZnO–CuO electrodes in 0.1 mol L−1 Na2SO4 solution

3.3 Optimization of operational parameters in RO7 electrochemical removal

As stated in Sect. 2.4, a second-order quadratic polynomial equation was proposed for RO7 removal efficiency which xi (xj), β0, βi, and βij are design independent variables, a constant coefficient, ith linear coefficient, and ijth interaction coefficient, respectively [43, 45]. The general form and proposed quadratic equations are:

$$Y\, = \,\beta_{0} \, + \,\sum {\beta_{{\text{i}}} \,X_{{\text{i}}} } \, + \,\sum {\beta_{{{\text{ii}}}} \,X_{{\text{i}}}^{2} } \, + \,\sum {\beta_{{{\text{ij}}}} \,X_{{\text{i}}} X_{{\text{j}}} } \, + \,\varepsilon,$$
(3)
$$Y\, = \,\beta_{0} \, + \,\beta_{1} x_{1} \, + \,\beta_{2} x_{2} \, + \,\beta_{3} x_{3} \, + \,\beta_{4} x_{4} \, + \,\beta_{11} x_{1}^{2} \, + \,\beta_{22} x_{2}^{2} \, + \,\beta_{33} x_{3}^{2} \, + \,\beta_{44} x_{4}^{2} \, + \,\beta_{12} x_{1} x_{2} \, + \,\beta_{13} x_{1} x_{3} \, + \,\beta_{14} x_{1} x_{4} \, + \,\beta_{23} x_{2} x_{3} \, + \,\beta_{24} x_{2} x_{4} \, + \,\beta_{34} x_{3} x_{4},$$
(4)
$$Y\, = \, - \,40.8\,{-}\,8.26\,x_{1} \,{-}\,28.0\,x_{2} \, + \,68045\,x_{3} \,{-}\,0.593\,x_{4} \, + \,0.743\,x_{1}^{2} \, + \,11.13\,x_{2}^{2} \, - \,2983914\,x_{3}^{2} \, + \,0.00040\,x_{4}^{2} \, + \,4.19\,x_{1} x_{2} \,{-}\,4555\,x_{1} x_{3} \, + \,0.0491\,x_{1} x_{4} \,{-}\,13301\,x_{2} x_{3} \, + \,0.408 \, x_{2} x_{4} \, + \,294.0\,x_{3} x_{4}.$$
(5)

The adequacy of mathematical models and suitability of the response function resulting from CCD was studied by analysis of variance (ANOVA), the data is listed in Table 5S. The terms with the p value smaller than 0.05 (with a 95% confidence level) are more significant, hence, other terms can be omitted. Besides, according to Table 5S, most of the terms are significant, so it can be concluded that the predicted model is appropriate [46, 47]. On the other hand, the proposed model for the RO7 electrochemical removal is in good correlation (R2 = 0.9854%) showed that 98.54% of data could be explained by the regression model, while neglect number of data could not be explained. Also, Student’s t-test along with p value investigation were used to determine the significance of the terms in the proposed model. Table 6S presented the student’s distribution and the corresponding values for the proposed model for RO7 electrochemical removal by Ti/nanoZnO–CuO [44, 50]. As mentioned above, the insignificant terms can be omitted, which resulted in Eq. 6 [51].

$$Y\, = \, - \,40.8\,{-}\,8.26x_{1} \,{-}\,28.0\,x_{2} \, + \,68045\,x_{3} \,{-}\,0.593\,x_{4} \, + \,0.743\,x_{1}^{2} \, + \,11.13\,x_{2}^{2} \, - \,2983914\,x_{3}^{2} \, + \,0.00040\,x_{4}^{2} \, + \,4.19\,x_{1} x_{2} \,{-}\,4555\,x_{1} x_{3} \, + \,0.0491\,x_{1} x_{4} \,{-}\,13301\,x_{2} x_{3}.$$
(6)

The residuals plot (the difference between the experimental and the predicted responses) as additional tools were employed to evaluate the proposed model adequacy. As illustrated in Fig. 2S, the points in the normal probability plot are indicated a straight line which shows the good normally distribution of data in the proposed model [52].

Pareto analysis as a bar graph can be performed to give more information to interpret obtained results. In fact, this analysis determines the impact of each parameter (percent) on the response (Eq. 7) [53].

$$P_{{\text{i}}} \, = \,\frac{{b_{{\text{i}}}^{2} }}{{\sum\nolimits_{i = 1}^{n} {b_{{\text{i}}}^{2} } }}.$$
(7)

According to Fig. 3S, it can be seen that factors reaction time (β4 = 48%), current (β3 = 28%), and pH-current interaction (β13 = 12%) have the most influence on the RO7 removal process.

3.4 Effect of operational parameters on electrochemical removal of RO7

In this section, 3D response Surface and 2D counter plots of interaction between two effective parameters on the response (RO7 removal efficiency) using Ti/nanoZnO–CuO electrode are examined. Based on the ANOVA results, parameters interaction including pH—current, electrolyte concentration—reaction time, current—reaction time, pH—electrolyte concentration, and electrolyte concentration—current were significant terms for the model of RO7 electrochemical removal.

The interaction relationship between electrolyte concentration and reaction time on the RO7 removal efficiency depicted in Fig. 8A. As the plots imply, using NaCl as an electrolyte can promote reactive species production during the electrochemical oxidation process, which resulted in the achievement of better dye removal efficiency with the passage of the reaction time. The presence of NaCl in undivided cells in the electrochemical oxidation process resulted in producing chlorine (Eq. 8) at the anode as well as producing other chlorine species based on Eqs. (8)–(11). Therefore, it can be said that various chloride species namely Cl2, Cl3, HClO, and ClO are involved in the removal of dye molecules [2, 24, 54] On the other hand, enhancement in the NaCl concentration can improve the solution conductivity as well as ease electron transfer, thereby energy consumption is decreased which is related to the cell voltage [55, 56]. From Fig. 8A, more production of active chlorine species with high decolorizing potential by increasing electrolyte concentration along with reaction time improved the RO7 removal efficiency [57].

$${\text{2Cl}}^{ - } \, \to \,{\text{Cl}}_{{{2 }({\text{aq}})}} \, + \,{\text{2e}}^{ - },$$
(8)
$${\text{Cl}}_{{{2}({\text{aq}})}} \, + \,{\text{Cl}}^{ - } \, \leftrightarrow \,{\text{Cl}}_{{3}}^{ - },$$
(9)
$${\text{Cl}}_{{2\,({\text{aq}})}} \, + \,{\text{H}}_{2} {\text{O}}\, \to \,{\text{H}}^{ + } \, + \,{\text{Cl}}^{ - } \, + \,{\text{HOCl}},$$
(10)
$${\text{HOCl}}\, \leftrightarrow \,{\text{H}}^{ + } \, + \,{\text{OCl}}^{ - }.$$
(11)
Fig. 8
figure 8

Response surface and counter plots showing the effects of A pH—current, B electrolyte concentration—reaction time, C current—reaction time, D electrolyte concentration—pH, and E electrolyte concentration—current on color removal efficiency (CR%)

Figure 8B presents the interaction relationship between pH and current in constant values of reaction time (45 min) and electrolyte concentration (1.5 g L−1). As can be seen in Fig. 8B, reduction in the pH values at all applied current can led to a significant increase in RO7 removal efficiency. In order to explain the observed trend, the electro-generated oxidizing agents such as hydroxyl radicals and chlorine species can have effects on electrochemical oxidation efficiency. Furthermore, the oxygen evolution side reactions are also a possible explanation for the above tendency [24]. Indeed, the acidic environment condition in these types of removal processes (electrochemical oxidation) could reduce the side reaction of oxygen evolution through the OEP enhancement and promotion of hydroxyl radical formation, which in turn result in improving dye removal efficiency [49, 58]. Further, hypochlorous acid (HClO) as the powerful oxidizing agent in acidic conditions (in the presence of the NaCl supporting electrolyte) has greater oxidation capability compared to hypochlorite, which resulting higher dye removal efficiency. As is also clear from Fig. 8B, the dye removal efficiency was improved by increasing current density. Further details about this observation can be found in the following paragraphs.

Figure 8C illustrates the interaction between the current and the reaction time parameters. According to Fig. 8C, with increasing current together with reaction time, improvement is seen in dye removal efficiency. This phenomenon could be attributed to the production of more reactive species including active chlorine species and hydroxyl radicals with increasing of reaction time [44, 52, 53]. It is worth to note that increasing electron speed and providing more hydroxyl radicals are happen with a rise in the current in this removal process [44].

Electrolyte concentration—pH interaction is another significant term in the RO7 removal process is shown in Fig. 8D. It is worth noting that strong oxidants such as Cl2, HOCl, and ClO– due to the presence of NaCl electrolyte are beneficial for oxidation progress [59]. Besides, more hydroxyl radicals are expected to be generated through water oxidation at alkaline pH [60, 61]. Therefore, the outcomes demonstrated that these two parameters have a synergistic effect on the response function and enhance the dye removal efficiency by increasing the NaCl electrolyte concentration through various oxidant agents in all pH values.

The interaction of electrolyte concentration and current parameters is shown in Fig. 8E. As shown in this figure, enhancement in current value and NaCl electrolyte concentration increases the RO7 removal efficiency. On the one hand, increasing the current value is conducive to the facilitation of electron transfer along with the production of more reactive species. On the other hand, with raise in NaCl electrolyte concentration, the number of active chlorine species with good potential in decolorization increases, demonstrating that both parameters have a synergetic effect on RO7 removal efficiency [44, 62, 63].

3.5 Validation of the model

The selection of the best operative conditions in the RO7 electrochemical removal process on Ti/nanoZnO–CuO is the main purpose of using experimental design. In this regard, as a validation process of the optimization results, a confirmation experiment was conducted under the predicted optimal conditions. According to Fig. 9, obtained CCD model predicted 96.31% of RO7 removal efficiency at the optimized conditions of 5, 1 g L−1, 0.004 A, and 60 min for pH, electrolyte concentration, current, and reaction time, respectively. The RO7 removal efficiency reached 99.16% in 60 min under the optimal conditions which were closely agreed with the predicted value [64]. Under optimal conditions, after 60 min of electrochemical treatment of RO7 (with the initial concentration of 50 mg L−1) using Ti/nanoZnO–CuO anode, more than 60% of COD removal efficiency was obtained. Comparing the removal efficiencies of color and COD, the lower COD percent is clearly evident due to the decomposition of RO7 molecules into colorless intermediate products which are less reactive to hydroxyl radicals [55, 65]. It is worthwhile mentioning that the COD analysis was performed using HACH Model 3900 DR (Fig. 9).

Fig. 9
figure 9

COD% of color removal efficiency under optimum condition

4 Conclusion

In the present research work, a novel Ti/nanoZnO–CuO composite electrode was prepared through the EPD method which was characterized by different analyses. The SEM analysis revealed that the prepared electrode surface was uniformly coated by ZnO–CuO nano-composite. The presence of ZnO and CuO nanoparticles on the electrode surface was confirmed by obtained results of EDS and XRD analyses. The absence of an additional peak in the CV diagram showed that the Ti/nanoZnO–CuO is a non-active anode and direct electron transfer did not occur between the prepared novel electrode and RO7. Based on the observed data of EIS analysis, the Ti/nanoZnO–CuO electrode had a smaller semicircle diameter (lower electron transfer resistance) than the Ti electrode which is due to the good conductivity and high electron transfer efficiency of CuO nanoparticles. In addition, ZnO–CuO nano-composite coating effectively enhanced the prepared electrode durability and service lifetime compared to conventional Ti and Ti/nanoZnO electrodes as illustrated in CA and CP analyses. Further, the CCD design method under RSM was applied to investigate the effect of four key operating factors on RO7 electrochemical removal efficiency along with optimization of operational conditions. Under optimal conditions, the color and COD removal efficiency of RO7 on Ti/nanoZnO–CuO were 99.16% and 66.66%, respectively. It is worthwhile mentioning that observed electrochemical removal efficiency and CCD predicted results had high closeness. Ultimately, considering all the results above, the current study provides an efficient novel electrode to use in the electrochemical treatment field. However, further work and more investigation are still required to improve the stability of the prepared electrode and to evaluate the amount of generated oxidants, including the active chlorine species, as well as an in-depth investigation of the degradation mechanism of RO7 during the electrochemical oxidation process through the Ti/nanoZnO–CuO anode.