1 Introduction

The remaining organic phase after extraction usually contains substances that are harmful to human health and the environment. If such organic phases are directly discharged without treatment, it may cause serious harm to human health and the ecological environment [1, 2]. Therefore, recycling the remaining organic phase after extraction is a sustainable approach that is of great significance for achieving dual economic and environmental benefits.

One of the methods for organic phase recycling is to wash and remove metal ions from the organic phase. The washing process requires multiple cycles and consumes a significant amount of water. Capacitive deionization technology is a method used to remove ions from water. Its principle is to use the double layer structure formed on the charged surface of the electrode to adsorb ions, while the charge carried by the ions is stored in the form of capacitance. The separation and removal of positive and negative ions can be achieved through the action of an electric field. The use of capacitive deionization technology for the recycling of organic phases may achieve good ion removal efficiency and reduce water consumption.

One of the key factors in capacitive deionization technology is the electrode material. Different types of electrode materials (transition metal alloy materials [3, 4], oxides [5,6,7,8,9], hydroxides [10, 11], and sulfides [12, 13], etc.) used for supercapacitors can be used in capacitive deionization technology. Carbon materials have attracted attention due to their high stability, easy preparation, low cost and conductivity [14]. Among them, biomass carbon materials are widely used to prepare electrodes because of their renewable, low cost and easy access [15, 16]. Biomass materials contain rich surface functional groups such as carbon, nitrogen, phosphorus and sulfur, and their structure is easily controlled during the reaction process [17, 18]. In addition, biomass materials have natural transport channels for water and nutrients, that is, they have natural porous structures suitable for charge storage [19,20,21]. As a result, as a carbon precursor for preparing electrode materials, biomass materials have attracted widespread attention in the industry.

The excellent adsorption performance of capacitive deionization technology cannot be achieved without the design of electrode materials. At present, the effective methods to obtain ideal carbon electrode materials include the pore structure design and element doping modification of the electrode materials [22, 23]. In terms of pore structure design, the best combination of macropores, mesopores, and micropores, that is, the construction of hierarchically porous carbon, is considered to be one of the promising and effective strategies to significantly improve the surface adsorption performance of carbon electrode materials [24]. Different types of pore structures will play their respective roles and improve the comprehensive performance of supercapacitors through the combination of different structures. Microholes provide effective storage of ions at the electrode/electrolyte energy storage interface [25]. The mesoporous channel facilitates the electrolyte diffusion and provides a channel for the ion diffusion in the electrolyte to enter the energy storage interface of the bulk material [26]. Macropores are used as electrolyte reservoir for shortening the distance of ion diffusion [27].

In addition to the construction of layered porous nanostructures with micropores, mesopores, and macropores mentioned above, another effective method to improve energy storage performance is the doping of heteroatoms in carbon materials improving the surface wettability of carbon materials and increasing the active energy storage sites [28,29,30,31]. Nitrogen atom doping has unique advantages in improving energy storage performance [32]. Nitrogen doping in the energy storage of porous carbon materials is mainly reflected in the following aspects. It is generally accepted that N doping can generate more active sites in the carbon skeleton [33, 34]. Additionally, N doping can optimize the contactable surface of the porous carbon electrode, so as to improve the surface wettability of the of aqueous electrolyte on porous carbon electrode surface [35,36,37].

In this manuscript, mungbean pods are selected as the precursor of carbon electrode materials because of their easy availability and large quantity. The porous carbon electrode with graded porous structure was prepared by using the environmentally friendly K2CO3 pore-forming agent and the mixed flux of KCl/NaCl. In the preparation process, the addition of KCl/NaCl mixed flux can increase the contact area between K2CO3 pore forming agent and biomass material during the calcination process, thereby improving the pore forming efficiency. In addition, the addition of mixed fluxes can also provide a template effect in the formation process of porous carbon materials, which is conducive to the formation of porous structures. Dopamine, which is non-toxic and easily degradable, is used as a nitrogen source to achieve heterogeneous doping of porous carbon. The electrochemical performance of supercapacitors assembled from biomass-based carbon materials was studied in a three-electrode system. The excellent performance based on mungbean pods demonstrates the potential of this porous carbon material as a capacitive deionized electrode. And the processing ability was verified through experiments of regenerating and extracting organic phases.

2 Experimental section

2.1 Materials

Mungbean pods was collected from Weifang, Shandong Province, China, and used directly after washing with water several times. KCl, NaCl, and dopamine were purchased from Sinopharm Chemical Reagents Co., Ltd. All other chemical reagents are from Aladdin Reagent Co., Ltd.

2.2 Synthesis of porous carbon

Weigh the crushed biomass material, pore forming agent K2CO3, flux NaCl, and flux KCl in a mass ratio of 1:3:3:3, and add nitrogen-containing dopamine (in a mass ratio of 1:100 to the biomass material) for solid-state grinding. Then, press the mixture into a cylindrical shape using a tablet press. Put the sample into a vacuum tube furnace and heat it to 850 ℃ under a nitrogen atmosphere according to the procedure, and keep it warm for 2 h. After calcination, wash the mixture to obtain N-doped porous carbon material, named PC-N. As a comparison, the porous carbon material prepared without adding a nitrogen source is named PC-0.

2.3 Structure and morphology characterization

Nitrogen adsorption–desorption isotherms were measured on a 4-station fully automatic specific surface area analyzer of the American Micromeritics APSP 2460 model under liquid nitrogen conditions at a temperature of 77 k. The specific surface area was also supplemented testing by mercury intrusion (Micromeritics Autopore V 9620). The morphological characteristics of the Biomass porous carbon were mainly outlined by scanning electron microscopy (SEM, Hitachi Regulus 8100) and transmission electron microscope (TEM, Thermo Fisher Talos F200X). Thermo Scientific K-Alpha X-ray photoelectron spectroscopy (XPS) using Al Kα rays as the excitation source to further aid in the specification of the structural information of the sample. Raman spectroscopy was performed using the Horiba LabRAM HR Evolution Raman spectrometer from Japan to analyze the structure of CDI electrode active materials.

2.4 Electrochemical characterization

In this manuscript, a three-electrode supercapacitor system was used to test the electrochemical performance of the carbon materials such as galvanostatic charge/discharge (GCD), cyclic voltammetry (CV), and electrochemical impedance spectroscopy (EIS). Hg/HgO and platinum sheets were used as reference electrode and counter electrode respectively, foam nickel coated with carbon materials was used as working electrode. Cyclic voltammetry, constant current charge–discharge and AC impedance tests were conducted at the electrochemical workstation of Shanghai Chenhua (CHI760E), and the frequency range of AC impedance test was 0.01–100000 Hz.

2.5 Treatment and analysis of organic extraction phase by CDI

The organic phase that needs to be regenerated in this article takes the extractant t-BAMBP after extracting rubidium as an example, and the process is shown in Fig. 1. Add the used organic extraction phase to the aqueous phase in a 2:1 volume ratio into a storage bottle, stir for a certain period of time, and let it stand to complete the layering. The aqueous phase in the storage bottle is introduced into the CDI device through a peristaltic pump, and an applied voltage is applied to form the electrostatic adsorption of ions in the water by CDI. The adsorption results of ions are recorded through conductivity testing.

Fig. 1
figure 1

Schematic diagram of CDI device for regenerating organic phase

3 Results and discussion

3.1 Structural and morphological characterization

Figure 2 shows the process of preparing biomass porous carbon using mungbean pods as raw materials. The reagents added during the preparation process mainly include pore forming agent K2CO3, flux (KCl + NaCl), and dopamine, which provides a nitrogen source. The presence of flux can provide more possibilities for the full contact of pore forming agents and dopamine with raw materials during high-temperature calcination. In the subsequent calcination process, the flux will become molten near 700℃, creating favorable conditions for the occurrence of pore forming reactions. The introduction of nitrogen species can also generate functional groups on the surface of carbon materials, thereby enhancing their electronic conductivity, surface wettability, and pseudocapacitive interactions between proton and electron donor nitrogen atoms [38,39,40].

Fig. 2
figure 2

Schematic diagram of preparation process of porous carbon

Figure 3 is a scanning electron microscope image of the prepared porous carbon material. Among them, Fig. 3a–c shows the morphology of porous materials PC-N prepared using dopamine nitrogen sources. Figure 3d–f shows a comparative the morphology of PC-0 without the addition of a nitrogen source. Porous materials with certain pores can be prepared under both conditions. This can be attributed to the inherent nitrogen in mung bean pods, which can increase the surface adsorption between biomass and pore forming agents, thereby obtaining a porous morphology during the calcination process. Compared with materials without nitrogen sources, PC-N exhibits greater uniformity and integrity in their pore structure. This conclusion can be further validated on TEM comparative images (Fig. S1). The mapping diagram of PC-N material is shown in Fig. 3g–j, from which the presence and uniform distribution of C, N, and O elements can be clearly seen.

Fig. 3
figure 3

SEM images of porous carbons(a-c: PC-N, d-f: PC-0, g-j: mapping of PC-N)

The differences in the morphology of the prepared materials can be explained by XPS (Fig. 4a–d). The high-resolution C1s, O1s, and N1s spectra of porous carbon PC-N indicate that the prepared porous carbon contains abundant functional groups of C, O, and N elements. The presence of these functional groups not only benefits the surface wettability and hydrophilicity of the porous carbon, but also indicates that the electrode has the ability to coordinate with ions, thereby promoting electro adsorption [41]. There are three distinct peaks in the N 1 s spectrum, corresponding to pyrrole nitrogen (N-6), pyridine nitrogen (N-5), and quaternary nitrogen (N-Q). The presence of pyridine N can enhance the Lewis alkalinity and can increase the proportion of sp2 hybrid structures of the material surface, thereby increasing the wettability of the material surface and contributing to the generation of pseudocapacitance [42,43,44]. Compared with PC-0 (Fig.S2), PC-N has a higher content of pyridine-N, which generates more active sites to store charges, significantly improving the pseudocapacitive properties of carbon materials.

Fig. 4
figure 4

Structural characterization of biomass porous carbon (a: XPS Survey of PC-N. b–d: high-resolution spectra of CIs, O1s, and N1s of PC-N. e: Adsorption and desorption curves of BET test of PC-0 and PC-N. f: Raman spectrogram of PC-0 and PC-N)

In theory, there is a close relationship between the specific surface area and specific capacity of electrode materials. However, a more accurate statement of this viewpoint is to accurately represent the specific surface area as the “effective specific surface area” of the electrode material [45, 46]. When the ion diameter of the electrolyte is fully compatible with the pore structure, the highest capacity can be achieved [47]. According to density functional theory simulations, as the temperature decreases, ions are difficult to desolvate, so pore structures larger than solvated ions can better participate in energy storage [48]. In addition, in order to realize efficient energy storage of porous materials, researchers also realized that mesopores as ion transport channels are indispensable. Its existence can not only store large solvated ions, but also shorten the ion transport path, reduce the ion transport impedance, and greatly optimize the multiplier performance and cycle performance of the device [49, 50]. Combining the above two points of view, the construction of micro/mesoporous hierarchical porous structure suitable for electrolyte ions becomes one of the key factors to optimize electrode materials. The isotherm of biomass porous carbon can be observed (Fig. 4e), and when the relative pressure is low, the adsorption curve of the sample rapidly increases, indicating the presence of abundant micropores in the material. The hysteresis loop generated in the curve with increasing pressure confirms the existence of mesopores. The presence of micropores and mesopores can achieve full electrochemical performance. Compared with PC-0 (2512.22 m2 g−1), PC-N has a higher specific surface area (2862.36 m2 g−1), which is beneficial for its electrochemical performance. The distribution of pore structure and structural parameters are shown in Fig. S3 and Tab. S1. Additionally, the crystalline structure of the PC-0 and PC-N were studied by Raman spectroscopy (Fig. 4f). Obviously, Raman spectroscopy shows that both samples have two characteristic bands, the G peak and the D peak. The PC-N showed a higher intensity ratio (ID/IG = 0.93) than that of PC-0(ID/IG = 0.90), indicating that more defects were induced by nitrogen doping.

3.2 Electrochemical performance characterization

Figure 5 shows the GCD and CV curves of the porous carbon electrode in a three-electrode system. The GCD curves of PC-N and PC-0 at a current density of 2 A g−1 in the voltage range of 1 V to 0 V are shown in Fig. 5a. The specific capacitance of PC-0 and PC-N at a current density of 2 A g-1 is 380.0 and 451.8F g-1, respectively. The GCD data of two electrodes at different current densities are shown in Fig. 5b and 5c, respectively. The GCD curve of PC-0 electrode (Fig. 5b) is a symmetrical triangle, thus confirming the typical double layer capacitance behavior. For the same specific current, PC-N electrode materials exhibit higher specific capacitance values and certain pseudocapacitive behavior. For PC-N electrodes (Fig. 5c), the specific electrical capacities at 1 A g−1, 2 A g−1, 4A g−1, and 20A g−1 are 480.5 F g-1, 451.8F g-1, 406.3F g-1, and 359.8F g-1, respectively. As the current density increases, the diffusion resistance of charges in the pore structure increases, leading to a decrease in specific capacity. Figure 5d shows the comparison of CV curves between PC-0 and PC-N electrodes in the voltage range of -1 V to 0 V at a scanning speed of 50 mV/s. Figure 5e and 5f show CV images of PC-0 and PC-N electrodes collected at different scanning rates, respectively. The rectangular CV curve also confirms the ideal EDLC behavior of the PC-0 electrode. The pseudocapacitive behavior of PC-N electrode mainly comes from the nitrogen doping behavior of PC-N electrodes, which can accelerate the ion transmission speed, provide more active sites and improve the wettability of the interface [51].

Fig. 5
figure 5

GCD profiles (a: GCD curves of PC-N and PC-0 at 2 A g−1, b: PC-0, c: PC-N) at different current densities and CV curves(d: CV curves at 50 mV/s, e:PC-0, f: PC-N) at different scan rates

EIS was used to further study the interface characteristics of the porous carbon electrodes [52]. Figure 6a shows a comparison of the Nyquist plot of the PC-N electrode after the first cycle and 1000 cycles. After 1000 charge discharge cycles, the stability of the electrochemical impedance spectrum is high, which also confirms the cycling stability of the material. The corresponding circuit diagram is shown in Fig. 6b. The low-frequency region of the Nyquist diagram indicates the pseudocapacitive behaviour of the carbon electrode. The semicircle in the low frequency region also confirmed the more obvious pseudo-capacitance behavior. The cyclic stability of PC-N comes from functional groups such as carboxyl groups on the surface of the material itself, as well as nitrogen doping during the preparation process, which increases the wettability of the material surface (Fig. 6c).

Fig. 6
figure 6

Nyquist plots of porous carbon electrodes. (a: Comparison of Nyquist diagram PC-N electrodes after the first and 1000 cycles; b: Equivalent-circuit diagram; c: The mechanism of improving stability)

3.3 Analysis of regeneration treatment results for organic phase extraction

The organic phase that needs to be regenerated will undergo three water washing and electro adsorption experiments. When the charging voltage is 1.2 V, the trend of the conductivity of the porous carbon electrode over time is shown in Fig. 7a. After applying the charging voltage, the conductivity of the solution decreases rapidly at a low speed, indicating that the ions in the solution are adsorbed onto the electrode with opposite charges by the electric field. Subsequently, the conductivity of the solution slowly decreased and stabilized within 20 min, reaching the electro adsorption equilibrium. The desorption process of ions is achieved under reverse voltage or short circuit conditions. After three adsorption cycles, the conductivity of the solution can be reduced to 19 μ s cm−1.

Fig. 7
figure 7

Relevant data on the regeneration of organic phases using capacitive deionization technology. (a: The variation of conductivity under different cycle times. b: Comparison of extraction data between regenerated organic phase and fresh organic phase)

In order to investigate whether the extractant t-BAMBP can be recycled, the extraction conditions were chosen to be the same as those of fresh extractants. Based on the comparison of ion concentrations in the residual aqueous phase and the reverse extraction aqueous phase, the conclusion can be drawn as to whether the extractant can be regenerated. From the Fig. 7b, it can be seen that the extraction ability of t-BAMBP recycled has not decreased. After 6 extraction-counter extraction cycles, the extraction capacity of the recovered extractant can reach 99.6% of that of fresh extractants. This indicates that the extractant can be recycled, which has significant theoretical value and economic significance for industrial application.

4 Conductions

This manuscript successfully prepared biomass-graded porous carbon using discarded pods and applied it to the organic phase regeneration technology of CDI technology. This solves the problem of handling agricultural waste, and this process of turning waste into treasure is precisely the goal pursued by the current circular economy and sustainable development. This manuscript used potassium carbonate as an activator and NaCl/KCl as a mixed flux to prepare porous carbon, which had a high specific surface area, rich pore structure, and good electrochemical performance, suitable for ion adsorption and desorption processes in CDI technology. This study proposes a new solution for the application of CDI technology in organic phase regeneration. After 6 extraction-counter extraction cycles, the extraction capacity of the recovered extractant can reach 99.6% of that of fresh extractants. By comparing the usage data of regenerated organic phase and fresh organic phase, the actual effect of this method on regenerated organic matter was further verified. Therefore, this method has practical application value and is expected to provide an effective way for the treatment and resource utilization of waste organic phases. In addition, this method has the advantages of low cost and environmental friendliness, providing new ideas for the utilization of waste resources and the development of CDI technology.