Introduction

Understanding the influence of reaction parameters on the leaching efficiency is essential for process design and optimized recovery of the main components from waste lithium-ion batteries. Recently, the application of secondary ion batteries as an electrochemical power source is extensively enhanced especially in the fields of portable electronics due to their unique characteristics. LIBs are widely used in cellular phones, laptops, and other modern-life appliances by virtue of their outstanding properties. It is estimated that only in the China market in 2020, the weight and the quantity of LIBs will reach 500 tons and 25 billion units, respectively. The increasing application of LIBs inevitably leads to produce a lot of spent LIBs and subsequently causing environmental problems and resource depletion worldwide. Therefore, comprehensive studies seem to be essential for the maximum recovery of valuable elements from spent LIBs in a useful manner to avoid ecological pollution in addition to recycle alternative resources of valuable metals [1].

Different hydrometallurgical methods have been widely developed to recover valuable metals from the spent LIBs [2,3,4,5,6,7]. On the other hand, the leaching process is the main and conventional step of the sustainable metal recovery and subsequently accurate process design requires the detailed study and the proper prediction of the corresponding reactions. Waste LIBs leaching process is mainly carried out using mineral or organic acids and in some cases with reducing reagents (e.g. H2O2, NaHSO3) [1]. In general, the efficiency of leaching with mineral acids is higher than that of organic acids. Sulfuric acid is preferred in industrial processes owing to high leaching efficiency (especially at high S/L ratios), less corrosion of equipment’s, and the absence of toxic gases such as Cl2, NOx, etc. The leaching is a complex nonlinear process which cannot be modeled accurately through linear regression or function fitting approximation methods. Accordingly, the optimal recovery of the valuable elements (Co, Li) by leaching of spent LIBs is one of the most effective features that determines whether recovery of spent LIBs in a given time frame can be used for industrial purposes. In view of the leaching process complexity importance, it seems to be necessary to employ advanced techniques for comprehensive study as well as the estimation of the maximum recovery of the spent LIBs main metals.

Owing to their widespread applications and their potential to solve nonlinear problems, artificial neural networks (ANNs) are one of the advanced and effective findings which assist to figure out a numerical quantification of the various physicochemical phenomena. ANN can model the processes by pattern training, instead of completely identifying the point by point physical qualities and mathematical state function of the procedure. In comparison with other numerical analysis techniques, ANN has notable benefits such as learning ability and generalization, tolerance to errors and low computational cost [8]. Despite its many benefits, ANN suffers from a number of restrictions in the learning procedure, which mainly conducted by back-propagation (BP) algorithm, such as optimal adjusting of neurons connection weights and uncertainty of global minimum convergence. The mentioned inherent drawbacks can be modified by particle swarm optimization algorithm to deal with complicated nonlinear problems. Compared to the GA (genetic algorithm), PSO has advantages such as easy implementation, low parameters, and high convergence rate. The main objective of the PSO algorithm application is to optimize ANN neuron interconnection weights and bias to improve its performance for leaching process modeling.

For the sake of popularization, there is an extensive desire for ANN methods, e.g., theoretical analytical and pharmaceutical chemistry, biochemistry, food and management of waste disposal [9,10,11,12]. The ability of ANN in the evaluation of quantitative chemico-physical parameters as well as metals recovery optimization in extractive metallurgy with some advantages over conventional parametric approaches was validated [13,14,15]. The combined evolutionary methods (i.e. PSO–ANN) has been applied to model nonlinear relationship between the photocatalytic degradation reactivity of beta-naphthol on the titanium dioxide (TiO2) nanoparticles [16], to predict the flashpoints of organic compounds [17], to estimate the compressive strength of rock [18], classification of black plastic types [19] and to predict the separation of zinc ions by activated carbon from aqueous environment [20]. Particle swarm optimization and neural network methods were also used to optimize the performance of lithium-ion batteries and to investigate leaching processes. For instance, Sun et al. [21] employed particle swarm algorithm to optimize the Levenberg–Marquardt neural network topology to evaluate the state of charge (SOC) of lithium-ion batteries. Moreover, Khajeh et al. [22] utilized the combination of particle swarm optimization and ANN to evaluate the optimum behavior of leaching—liquid/liquid microextraction of zinc from flour and found out that the model can be applied to estimate the Zn extraction efficiency by a relative standard deviation error (RSD%) less than 4%. The ability of PSO–ANN to estimate the water amount of natural gas (sour and sweet) has been confirmed for wide ranges of CO2 and H2S contents, temperature, and pressure [23]. Additionally, the satisfactory results of PSO coupled ANN in estimating the molybdenum extraction efficiency in water samples using morin-stabilized silver nanoparticles shows another evidence of its applicability in the modeling of various processes [24]. The performance of PSO–ANN in the prediction of chemico-physical processes characteristics is in some cases acceptable [25,26,27,28,29] and thus, the technique can be employed to the comprehensive analysis and modeling of the leaching processes.

To achieve optimal recovery conditions the ANN modeling of waste LIBs leaching process has significant importance. In the recent study, the capability of PSO–ANN technique evaluated for prediction of the cobalt leaching percentage from the spent lithium-ion batteries through H2SO4 and H2O2 mixture. According to the literature, so far the leaching of cobalt from spent LIBs has not been studied using PSO–ANN technique. To determine the dependency of the cobalt leaching on the reaction parameters, i.e., reagents concentration, leaching solution pulp density, temperature and reaction time, 42 repeatable numerous leaching tests are performed using spent LIBs cathodic materials. The leaching dataset used to train and validate 10 models with different structures and the predictability of three reliable models was evaluated using statistical measurements. Pursuant to the PSO–ANN model results, it will be shown that the prediction of leaching reaction in terms of operational parameters can be achieved with high accuracy.

Experimental and theoretical aspects

Materials and leaching experiments

Various brands of spent LIBs used in cell phones were completely discharged in 5% NaCl solution for 24 h and dismantled manually and the plastics, cathodes, anodes, and cell cases separated from the batteries [5, 30]. Then, the electrodes containing cathodic material was treated using N-methylpyrrolidone (NMP) for 1 h at 70 °C. Once purification, the obtained materials dried for 24 h at 100 °C and heated at 700 °C for 5 h in a muffle furnace to remove carbon, PVDF (polyvinylidene fluoride) and NMP excess present in the powder. The resulted powder was ground and sieved with the 0.5 mm screen. All the leaching processes were performed in a 0.5 L three-necked reactor equipped with the condenser and thermometer. First, 3 gr cathodic materials of spent LIBs mixed with H2SO4 (Merck, 95–97.0%) solution and after the thermal equilibrium establishment, the hydrogen peroxide (H2O2, Sigma-Aldrich 30%) was added to the reactor. In each leaching test, the reaction solution samples were taken at certain intervals to analysis of cobalt ion content. Table 1 shows the leaching parameters range with optimal reaction conditions [31].

Table 1 Spent LIBs leaching experimental conditions

Training of artificial neural network and particle swarm optimization for cobalt leaching

Artificial neural network

ANNs are computing units inspired by the biological complex neural structures. They are used extensively in data classification, function estimation, and signal analysis. Neurons link to each other by some weight coefficient, i.e., the strength of the connection and each neuron consists of its own activation function, input and output. One of the most popular ANN networks is multilayer perceptron (MLP) neural networks. In the ANN structure, Inputs and outputs are directly related to the input and output layers, respectively. The hidden layers are placed between the input and output layers. The transformation of information from the one layer’s neuron to the other neuron of the subsequent layer conducted in the base of the following relationship:

$$ \text{y} = \zeta \text{(}s\text{)} = \zeta \left( {b + \sum\limits_{{i\text{ = 1}}}^{n} {w_{i} } x_{\text{i}} } \right) $$
(1)

where xi is the input, b is the bias, wi is the weight of neurons connection, s the activity, ζ the activation or transfer function and y is the output of the neuron. The multilayer perceptron (MLP) training or learning step accomplished by iterative weighing procedures from the inputs to the outputs neurons which are called epochs. After each iteration, the evaluated outputs compare with the real ones (targets) in the base of mean squared error (MSE) or other statistical measure criteria. In this process the weights and bias modified according to the learning algorithm, such as back-propagation, to minimize the MSE in each epoch. The configuration of the neural network includes the neurons number in input, hidden and output layers, connection weights and transfer functions optimized in a way in which the global minimum is achieved. After the training phase, in order to verification of process, the validation and testing phases performed with previously unused data in the training step, randomly.

The most important reaction parameters of the leaching process that affect the cobalt recovery efficiency from spent LIBs cathodic materials are reagents concentration (sulfuric acid (H2SO4) and hydrogen peroxide (H2O2)), leaching solution pulp density (ρS/L), reaction time (τr) and temperature (Tr). The dependence of the cobalt recovery efficiency on the leaching reaction key parameters can be shown as below [32]:

$$ \psi_{\text{Co}} = f\left( {C_{{{\text{H}}_{2} {\text{SO}}_{4} }} ,\;\;{\text{Vol}}\%_{{{\text{H}}_{2} {\text{O}}_{2} }} ,\;\; \, T_{\text{r}} , \, \tau_{\text{r}} , \, \rho_{S /L} } \right) $$
(2)

Since the rate of leaching solution stirring had the least effect on the cobalt recovery efficiency, hence, the optimum value (rpm = 300) of this parameter was fixed during all experiments and not considered in the data training process of the PSO–ANN models. The values of the leaching reaction parameters as model inputs along with extracted cobalt percentage from the spent LIBs in each leaching test are shown in Table 2. About 65% (27 samples) of the data set was employed in training phase, 16% (7 samples) in validation step and the remaining of them were used to test the output of the PSO-optimized ANN models for estimation of leached cobalt percentage, randomly. Normalization of dataset in the [0 1] interval was accomplished by means of the Eq. (3):

$$ \psi_{N} = \frac{{\psi - \psi_{\hbox{min} } }}{{\psi_{\hbox{max} } - \psi_{\hbox{min} } }} $$
(3)

where ψ, ψN, ψmin and ψmax are actual, normalized, minimum, and maximum of data values, correspondingly. Subsequently, the normalized data of leaching efficiency were investigated by denormalization of units.

Table 2 The experimental dataset used in PSO–ANN modeling

Particle swarm optimization algorithm

The PSO algorithm starts by creating a random population. Each component in a population is a different decision variable whose optimal value must be determined and indeed each particle represents a vector in the problem-solving space. In this algorithm, any component action affects the movement of the group, and eventually, each member of the group can benefit from the discoveries and skills of other members.

The fundamental difference between PSO and other optimization algorithms is the velocity vector that forces the members of the set to change the position in the search space (Fig. 1). This velocity vector resultant from the p and pg vectors. P is the best position where a certain particle has reached and pg is the optimized position at which the best particle in the vicinity of that particle has already reached and consequently, the process provides a solution in each iteration. In the d-dimensional search space, the particle i is indicated by a k-dimensional position vector (Xi = (Xi1, Xi2,…,Xik), k-dimensional velocity vector (Vi = Vi1, Vi2,…,Vik), the best position found by a given particle (Pi, best = (pi1, pi2,…,pik) and the best position which find with the best particle among the whole particles (Pg, best = (pg1, pg2,…,pgk). Eventually, the population purposefully moves to the optimal point using the following relationships:

$$ x_{ik}^{n + 1} \, = \, x_{ik}^{n} + v_{ik}^{n + 1} $$
(4)
$$ V_{ik}^{n + 1} = \omega .v_{ik}^{n} + c_{1} r_{1}^{n} \left( {p_{{i, \, {\mathbf{best}}}}^{n} - x_{ik}^{n} } \right) + c_{2} r_{ik}^{n} \left( {p_{{g, \, {\mathbf{best}}}}^{n} - x_{ik}^{n} } \right) $$
(5)
Fig. 1
figure 1

Searching concept with particles in a solution space

In the above relations, ω is the inertia factor, which is used for evaluation of the performance and convergence rate. The r1 and r2 are random numbers, i.e., the normal distribution in [0 1] interval. n is the number of iteration, c1 is the cognitive component, i.e., the best situation that a member gained, and c2 is the social component, i.e., the best situation that detected by the entire group. PSO–ANN optimize the connection weights and biases of the neural network. The neural network model structure used in spent LIBs leaching evaluation is shown in Fig. 2.

Fig. 2
figure 2

Three layer feed-forward ANN training for prediction of spent LIBs leaching efficiency

Structural optimization of PSO–ANN was obtained according to the maximum and minimum values of R2 and MSE, respectively. In this method, firstly N position vectors are generated randomly, and then the neural network is executed with these vector parameters and consequently, the error resulting from each run is considered as the fitness condition of that network variable vector. This process iterated until the final convergence is obtained, i.e., the optimal position vector (optimal network bias and weights values, Fig. 3) in which the training error is minimal. The values of c1 and c2 (Eq. 5), the number of particles, and the maximum number of iterations was selected 2, 2, 20 and 100, respectively.

Fig. 3
figure 3

Optimization of ANN architecture using the PSO algorithm for leaching reaction prediction of spent LIBs

Comparison of PSO–ANN models performance evaluated by statistical quality criteria: R2 (the correlation coefficient), MAE (mean absolute error), MSE (mean squared error), RRSE (root relative squared error) and RMSE (root mean square error):

$$ R^{2} = 1 - \frac{{\sum\nolimits_{i = 1}^{N} {(\psi_{i}^{\exp } - \psi_{i}^{pred} )^{2} } }}{{\sum\nolimits_{i = 1}^{N} {(\psi_{i}^{pred} )^{2} } }} $$
(6)
$$ MAE = \frac{1}{n}\sum\limits_{i = 1}^{N} {\left| {\psi_{i}^{\exp } - \psi_{i}^{pred} } \right|} $$
(7)
$$ MSE = \frac{1}{n}\sum\limits_{i = 1}^{N} {\left| {\left( {\psi_{i}^{\exp } - \psi_{i}^{pred} } \right)^{2} } \right|} $$
(8)
$$ RRSE = \left( {\frac{{\sum\nolimits_{i = 1}^{N} {(\psi_{i}^{\exp } - \psi_{i}^{pred} )^{2} } }}{{\sum\nolimits_{i = 1}^{N} {(\psi_{i}^{\exp } - {\raise0.7ex\hbox{$1$} \!\mathord{\left/ {\vphantom {1 n}}\right.\kern-0pt} \!\lower0.7ex\hbox{$n$}}\sum\limits_{i = 1}^{N} {\psi_{i}^{\exp } )^{2} } } }}} \right)^{0.5} $$
(9)
$$ RMSE = \left( {\frac{1}{n}\sum\limits_{i = 1}^{N} {\left( {\psi_{i}^{\exp } - \psi_{i}^{pred} } \right)^{2} } } \right)^{0.5} $$
(10)

which, ψexpi is the experimental (target) value, ψpredi is the model predicted value and n is the data set number in the training and testing stages of each model.

Results and discussion

The main metals recovery efficiency of the spent LIBs is a function of leaching process parameters. By evaluating the leached percentage of cobalt, it is possible to predict the amount of LIBs recovery in different operating conditions. Figure 4 shows the advancement of modeling by the PSO algorithm in the training phase in the base of layer weights and fitness value trend. The figure represents the optimized progress for the different neuron numbers and excitation functions. Root mean square error (MSE) has been used as the statistical measure for determination of the optimal PSO–ANN model. The fitness value (MSE) in each model pursuant to different activation functions and neurons number (Table 3) indicated in Fig. 4.

Fig. 4
figure 4

Fitness value of training procedures at the different number of neurons and activation functions

Table 3 The results of statistical measurements of the PSO–ANN model accuracy at different Configurations

By changing the generation number, the improvement of the process will happen. Therefore, after the sufficient process iteration, the error values will decrease and the optimized solution can be chosen. The fitness value decrease trend remained until the defined 100 generations for PSO–ANN models design are achieved. As shown in Fig. 4 by proper selection of generation amount there is no further change in error values after multiple iterations. Therefore, the optimum 100 generations number, by considering the calculation cost, was chosen for PSO–ANN models. In the base of Fig. 4, averagely, the Tangsig activation function (Table 3) has the preferable efficiency to elect the proper weights of model layers.

To evaluate the modeling procedure and measuring the effect of functions on the PSO–ANN optimization, the MSE as fitness criteria for each model has been presented in Fig. 5b. The model with MSE value closer to zero has the better performance within the proposed models. According to the average values of MSE for employed activating functions, the Tangsig for 4 selected models by an average of 0.090 has better performance compared with the Logsig function for 6 selected models by an average of 0.103. As seen in Fig. 5b the number of neurons do not follow a specific evolution trend and generally MSE decrease with neurons number. Therefore, it can be stated that the desired performance can be obtained by random progress.

Fig. 5
figure 5

Statistical measures in PSO–ANN models a R-square, b MSE, c RRSE, d MAE, and f RMSE

The selection of the proper model among the proposed models can be accomplished in the base of other statistical measurements. For this purpose, the statistical criteria for each PSO–ANN model have been presented in Fig. 5. From part c of Fig. 5, the value of RRSE measures for Tangsig and Logsig functions with different neurons number are under the 0.28 and 0.312, respectively. Indeed, the RRSE measure near to zero indicates the best functionality of the proposed model. Model PSO–ANN3 with 0.139 RRSE value is the best model within the proposed models. The analysis of R2 measure that is shown in part a, according to the accuracy and performance of selected models, showed that the PSO–ANN3 with 0.985 value has the best performance. In the base of R-square scale, the models by value near the 1 have high performance. Also, based on the MAE criterion (Fig. 5d), model 3 with an average absolute error value of 2.02 represents the best model to evaluate the amount of cobalt leaching from the spent LIBs.

The accuracy of ANN is verified with the ability of the model for prediction of sample data with an acceptable error. Figure 6 shows the predicted cobalt leaching efficiency from the spent LIBs in different reaction conditions. The models with Tangsig function and different neurons number (models 2 and 3 in Fig. 6a and models 8 and 9 in Fig. 6b) have better prediction accuracy in comparison with Logsig function.

Fig. 6
figure 6

The output of PSO–ANN models for leached cobalt percentage a PSO–ANN#1-5 and b PSO–ANN#6-10

Comparison the experimental and predicted values of the cobalt leaching percentage from the cathodic materials of spent LIBs for the ANN (with 3 neurons in hidden layer and LevenbergMarquardt training function), PSO–ANN3, PSO–ANN8 and PSO–ANN9 models (through the training and testing steps) via linear fitting line, its function and the R-square values shown in Fig. 7.

Fig. 7
figure 7

Experimented versus predicted leached cobalt percentage through the ANN, PSO–ANN3, PSO–ANN8 and PSO–ANN9 models

As shown, there is good compatibility between the experimental and the data obtained from the output of the three PSO–ANN models while some output data of the ANN model are scattered from the baseline. To further analyze and compare the performances of two methods considered in this paper the hypothesis Wilcoxon test and error test are also carried out. The error test results are drawn using box plots in Fig. 8. In the figure, the rectangles and the black line between them show the second and third quarter and the mean value of errors, respectively. The maximum and minimum values are presented as error bars on the sides of the rectangles. It can be seen that the distribution of errors around the median in both methods is almost asymmetric. However, the distance between the minimum and maximum of uncoupled ANN model errors are larger than the PSO–ANN models which impose limits on the predictability of the not optimized ANN models by overshooting. According to the p value of the Wilcoxon hypothesis test (Fig. 8), it is obvious that ANN with PSO trained gives the better result and performance compare to ANN. Moreover, pursuant to the statistical criterion of MSE, all of PSO–ANN models compared to the ANN model show a high degree of reliability in predicting the amount of cobalt dissolution in the leaching process. In other side, PSO-coupled neural networks have higher R2 compared to the uncoupled ANN. Also, the statistical fitness between simulated and predicted data shows that the PSO–ANN3 is more accurate than ANN in both training and testing stages. The values of R2, MAE, MSE and RMSE for PSO–ANN3 (Fig. 5a, b, d, f) were 0.985, 2.02, 0.061 and 3.91 and for ANN were 0.928, 2.43, 0.365 and 7.28, respectively. It can be concluded that the optimization of neuron interconnection weights and the ANN bias with PSO algorithm has added the ability of model prediction. The output values from the PSO–ANN3 model are very close to the experimental values and the present model has the ability to predict the cobalt leaching rates under the experimental conditions. Therefore, the PSO–ANN3 model has the highest accuracy among the available models in the cobalt leaching process modeling and selected as the most suitable model in this study. According to the PSO–ANN leaching modeling results and under the optimum practical conditions of leaching (\( C_{{H_{2} So_{4} }} = 2\;{\text{mol/L, Vol\% }}_{{{\text{H}}_{ 2} {\text{O}}_{ 2} }} = 4, \)S/L = 100 gr/L, T = 70 °C, t = 120 min) the maximum amount of cobalt can be extracted.

Fig. 8
figure 8

Boxplots of errors in PSO–ANN and ANN models with p-values of two-sided Wilcoxon test (hypothesis {H0: PSO–ANN median = ANN median Or HA: PSO–ANN median < ANN median}): a MAE, b RRSE, c MSE and d RMSE

Sensitivity analysis, evaluated from the effect of ± 10% changes in the reaction parameters value on the cobalt leaching efficiency, is applied to distinguish the influence of the reaction parameters on the spent LIBs cathodic materials leaching percentage. Since, PSO–ANN3 is the best model for evaluation of the leaching process, the recent model used for sensitivity analysis.

According to the leaching reaction parameters sensitivity analysis results (Fig. 9), the solid pulp density and the concentration of sulfuric acid have the most impact on the model performance while the remaining affect the model performance, slightly. It can be concluded that the ρS/L and \( {\text{C}}_{{{\text{H}}_{2} {\text{So}}_{4} }} \) are the most important components of the reaction. However, in some other reaction operating conditions the influence of the parameters on the leaching efficiency may be different. For instance, Gao et al. [33] have stated that the type and concentration of acid are the most important parameters affecting spent LIBs leaching. Indeed, the mechanism of a certain leaching process can be unique owing to the different pre-treatment process of the cathodic powder, size and morphology of the reactive material particles, reagent type and their concentration, solution mixing speed and temperature. Hence, the influence and significance of the different parameters on the reaction progress, which appear in the rate equation in some way [34], can change in accordance with the current conditions of the process.

Fig. 9
figure 9

Sensitivity analysis of spent LIBs leaching operative parameters

Based on the chemical equation (Eq. 11), owing to the reactant apparent concentration increasing, as a result of ρS/L increment, the amount of leaching efficiency increases until the leaching reaction equilibrium point (S/L = ρS/L = 100 g/L, Table 1). In reality, the reaction efficiency depends on the solid-solution reaction rate and therefore to the reacted fraction of solid spent LIBs (S/L) as well as the leaching reagent concentration [35].

$$ 2{\text{LiCoO}}_{2} \left( s \right) + 3{\text{H}}_{2} {\text{SO}}_{4} \left( {\text{aq}} \right) + {\text{H}}_{2} {\text{O}}_{2} \left( {\text{aq}} \right) \to 2{\text{CoSO}}_{4} \left( {\text{aq}} \right) + {\text{Li}}_{2} {\text{SO}}_{4} \left( {\text{aq}} \right) + 4{\text{H}}_{2} {\text{O }}\left( {\text{l}} \right) + {\text{O}}_{2} \left( {\text{g}} \right) $$
(11)

At higher values of ρS/L, the leaching rate decreases probably due to the local depletion of leaching reagents in the vicinity of the solid particles for the sake of reaction solution viscosity and mass transfer limitation phenomena.

On the other hand, \( {\text{C}}_{{{\text{H}}_{2} {\text{So}}_{4} }} \) is the other main parameters that affect cobalt leaching from the spent LIBs [31]. The cobalt leaching rate increases by increasing sulfuric acid concentration before the chemical reaction equilibrium point of the leaching process is attained (Fig. 10). Moreover, the dissolution of solid product(s) on the surface of the LIBs cathode materials, as a result of leaching reaction, accomplished by the sulfuric acid excess as the reaction proceeds within the leaching solution (Eq. 12). The recent functionality of sulfuric acid is essential to the leaching process progression. In other words, the rate of surface chemical reactions (include electron transfer) [34] is high consequently the cobalt ions concentration can be polarized in the vicinity of the cathodic material surface (saturation state). Therefore, it is a possibility of Li2Co(SO4)2 nucleation on the reactive material surface (solid solution of the reaction (11) products) [36]. As well, the solid solution of the binary system (Li2SO4–CoSO4, 1:1) is stable in agreement with the phase diagram and it can be formed at relatively low temperatures [37]. In the other hand, due to the kinetic conditions of the leaching system, the rate of formed nuclei (Li2Co(SO4)2) dissolution can be higher than their growth rate. Therefore, it can be said that the complicated conversion of cobalt present in the cathode materials structure into the soluble ions accomplished as a result of sequential reactions (solid–liquid (11), nucleation and growth of the solid product, and dissolution (12)). Accordingly, the mechanism (shrinkage core model with surface chemical reaction controlling step) and the counter of the leaching reaction potential energy changes is shown schematically in Fig. 11.

Fig. 10
figure 10

Experimental (Exp.) and predicted (Pre.) data of cobalt leaching from spent LIBs at different sulfuric acid concentrations and solid/liquid ratios (S/L = ρS/L) (Tables 1, 2)

Fig. 11
figure 11

Spent LIBs leaching progress: (i) potential energy changes (no scale) and (ii) the complex reaction mechanism, LCO = spent LIBs cathode materials, Erec = chemical reaction activation energy, Edis = dissolution activation energy, k11 and k12 are the related reaction rate coefficients

Given the above-mentioned mechanism, it can be concluded that the reaction (11) as the bottle-neck of the overall process has a significant contribution to the spent LIBs leaching. Eventually, by ignoring the transient state of binary product nucleation and considering the reaction rate coefficients difference (k12 ≫ k11), the overall reaction of the leaching can be summarized as a single-step process of Eq. (11).

In summary, the spent LIBs leaching reaction follows the shrinking core mechanism and contains the following steps [31]: (1)—adsorption and chemical reaction of the reagents mixture on the surface of spent LIBs cathodic materials, (2)—development of interphase reaction and production of solid products and (3)—dissolution of solid products at the reaction interface to form the soluble ions [38]:

$$ {\text{Li}}_{2} {\text{Co}}\left( {SO_{4} } \right)_{2} \left( {\text{s}} \right) \, + \, 2{\text{H}}^{ + } \left( {\text{aq}} \right) \, = \, 2{\text{Li}}^{ + } \left( {\text{aq}} \right) \, + {\text{ Co}}^{2 + } \left( {\text{aq}} \right) \, + \, 2{\text{HSO}}_{4}^{ - } \left( {\text{aq}} \right) $$
(12)

Due to the relatively low activation energy value (43–66 kJ mol−1) [31, 39, 40], increasing the reaction temperature to the solution boiling point has a negligible influence on the reaction rate and thus on the leaching efficiency of cobalt. Therefore, the pulp density (ρS/L) and the concentration of sulfuric acid are the most effective parameters of the cobalt leaching from the spent LIBs under the reaction condition.

Conclusions

The hybrid of ANN and particle swarm optimization algorithm was implemented to estimate the cobalt leaching efficiency from the spent LIBs using H2SO4 and H2O2 mixture. The concentration of the reagents, pulp density, temperature and reaction time as inputs and leaching percentage of cobalt as output used for PSO–ANN modeling. Leaching modeling is carried by different activation functions and neuron numbers. The performance and accuracy of the proposed approach validated by statistical measures of PSO–ANN model outputs. Comparing the values of predicted leaching efficiency with experimental data showed that the accuracy of PSO–ANN models is reliable. The best R2 values for the data set was 0.985, with low errors rate, i.e., 0.06 and 0.139 for MSE and RRSE, respectively. Also, it was concluded that the pulp density (ρS/L) and H2SO4 concentration were the most important parameters of the leaching process. Using the proposed hybrid technique of artificial network and particle swarm optimization algorithm can assist to maximize the recovery of main metals in the practical process.