1 Introduction

Two-dimensional (2D) materials, including disulfides (MoS2, ZnS), graphene and transition metal carbides/nitrides (MXene), possess stratified structures that have promising potential for energy storage [1,2,26]:

$$ C = 2i \times \Delta t/A \times U $$
(1)

where i (A cm−2) represents the current density of GCD tests, U (V) represents the voltage window, A (cm2) represents the electrode working area and ∆t (s) represents the discharge time.

As for CMDF symmetric supercapacitors, the specific capacitance (Csc, mF cm−2), power density (Psc, W cm−2) and energy density (Esc, Wh cm−2) are computed by the following formula [27]:

$${C}_{\mathrm{sc}}=i\times \Delta t/A\times U$$
(2)
$${E}_{\mathrm{sc}}=0.5\times {C}_{\mathrm{sc}}\times {U}^{2}$$
(3)
$${P}_{\mathrm{sc}}={E}_{\mathrm{sc}}/\Delta t$$
(4)

3 Results and Discussion

3.1 Chemical Analysis and Structural Characteristics of MXene and MDF

Figure 2 displays the characterization findings on MXene, DF and MDF. The products obtained display supernatant liquid form, suggesting their high stability for subsequent impregnation procedures (Fig. 2a). The XRD peak detected at 7.68° could be ascribed to the typical (002) plane of MXene (Fig. 2b), inferring the successful synthesis of MXene. The TEM image reveals the typical two-dimensional layered structure of the MXene sheet (Fig. 2c), similar to graphene and molybdenum disulfides [28]. Typically, MXene can be synthesized by wet etching of more than 30 different MAX phase precursors, where M is a transition metal element, A is a main group element and X is carbon or nitrogen. MXene obtained in this work displays a nanostructure formed by strip** the Al layer in the MAX phase and attaching –F, –OH and -O to the Ti surface [29]. Spectral analysis reveals the typical peaks for F, Ti, C and O, which concur with the reported chemical components of MXene (Fig. 2d–h). A peak corresponding to a Ti–C bond (282 eV) could be attributed to the core [TiC6] octahedral building block of MXene [30]. Three independent peaks in the O 1 s spectrum of MXene correspond to the Ti–O bond, C–Ti–Ox bond and C–Ti–(OH)x bond. Several symmetric peaks of the Ti 2p spectrum point to the existence of a Ti–C peak around 455.6 eV, which agrees with the XPS measurements. According to the O 1s spectrum, the peaks around 459 eV (Ti 2p3/2) and 462.5 eV (Ti 2p1/2) are most likely caused by O surface groups with partial surface oxidation (Fig. 2e). The presence of two narrow peaks for F 1s spectrum (Fig. 2h) also consistent with the reported works [31]. Therefore, the results above indicate the successful synthesis of MXene.

Fig. 2
figure 2

Material characterization results of MXene and 3D needled felts. a Optical photograph, b XRD pattern, c TEM image and d-h XPS spectra of prepared MXene. i XRD patterns, j-l SEM images of the 3D needled waste denim felts and MXene/3D needled waste denim felts

It has been determined that the MXene has been successfully introduced into MDF based on the presence of a typical (002) diffraction peak located around 7.68°, whereas the peak is not present in DF (Fig. 2i). Figure 2j shows the cross-sectional structure and schematic diagram (the insert image) of DF, revealing the presence of Z-direction channels in the thickness direction of DF. Additionally, Fig. 2k highlights the needle hole present on the surface of DF. The Z-directional fiber bundles along the thickness direction of the DF would allow MXene to penetrate and fill up DF voids, thereby ensuring complete contact between electrolytes and electrodes. There are obvious attachments of MXene on MDF shown in Fig. 2l and its local enlarged image (the insert image), indicating that MXene is effectively loaded after impregnation.

3.2 Carbonization Mechanism of MXene and Architectural Feature of CMDF

The diameter of the fibers in MDF and CMDF that adhere to one another is wider than those of DF and CDF. This is likely due to the effectiveness of the MXene loading during the impregnation process (Fig. 3). There was a negligible effect of carbonization on the needled felt pore structure (Fig. S6). Furthermore, the Ti 2s spectrum of MDF is similar to that of MXene while no peak was detected for DF and CDF (Fig. 2d). It is observed that the CMDF presents two typical peaks at 459 eV (Ti–O) and 465 eV (Ti-C), suggesting Ti element was transformed into TiO2 and further converted into TiC during the high carbonization temperature. No signal of the F 1s spectrum was detected for CMDF, implying the removal of -F groups in MXene during the carbonization process. Figure 3d1–d4 demonstrates the water droplets drop vertically on the surface of samples for 10 s. It was found that the coating of MXene had improved the hydrophilicity of the denim needled felt where the contact angle was reduced from 115° to 80°. At elevated temperatures, the hydrophilic –OH group of cellulose and MXene disappears, yet the carbonized denim fiber attains a fine texture that enhances water transfer [32]. This has led to the reduction in CMDF contact angle due to competitive effects between the two. The consequent increase in hydrophilicity is advantageous for electrolyte penetration, thereby elevating the electrochemical properties of CMDF. Figures S7 and S8 show the EDX map** and electrochemical test of CMDF under various carbonization temperatures (800, 1000 and 1200 °C).

Fig. 3
figure 3

Comparison of SEM image, XPS spectra of F 1s and Ti 2s, water contact angle for different samples. a1, b1, c1, d1 DF, a2, b2, c2, d2 MDF, a3, b3, c3, d3 CDF and a4, b4, c4, d4 CMDF

3.3 Performance of CMDF Electrode

In order to ascertain the most effective MXene loading concentration, various MXene concentration solutions were utilized for verification. As evidenced in Fig. S9, when subjected to the same carbonization temperature, the specific capacitance of 1000CM6%DF exceeded that of 1000CM8%DF, which in turn surpassed that of 1000CM4%DF, with 1000CM2%DF being the least effective. In addition, when the current density is increased to 6 mA cm−2, the capacitance of the CMDF electrode remains at 888 mF cm−2, showing excellent rate performance. The findings obtained can potentially be attributed to the reduction in spacing between neighboring fibers and MXene sheets due to the coated MXene layer. This increases the overall bulk density of the electrochemically active material, thereby affecting its performance. However, it was observed that excessive MXene loading can lead to surface sealing of the DF, thereby hindering the complete contact of the material with the electrolyte, ultimately leading to compromised electrochemical performance. Therefore, it was concluded that a 6% MXene load is optimal under these circumstances.

During low scanning rates, CV curves of the CMDF electrode exhibit rectangular symmetric behavior, but at high scanning rates with significant capacitance, they become fusiform due to polarization (Fig. 4a). However, the analysis reveals that CDF exhibits negligible electrochemical properties (refer to Fig. S10), indicating that the electrochemical properties of CMDF are highly comparable to carbonized MXene. Notably, carbonized MXene exhibits a notably larger interlayer spacing than MXene. This is primarily attributed to the generation of TiC and TiO2 at high temperatures, which facilitates the entry of the electrolyte into the interlayer, thereby enhancing the electrochemical performance of the material. The curves exhibit a triangle-like structure when the current density increases, indicating good reversibility, and also there are no obvious voltage drops, which further implies high electrical conductivity (Fig. 4b). The optimum specific capacitance of the CMDF (1748.5 mF cm−2) was detected at a current density of 0.5 mA cm−2, suggesting that CMDF could demonstrate higher performance compared to other MXene supercapacitors. The fitting curves of CMDF show a higher slope at the low-frequency zone than the pristine Nyquist curve, indicating rapid ion diffusion occurs (Fig. 4c). Besides, the CMDF showed a 94% capacitance retention and a 99% coulombic efficiency after 15,000 GCD cycles (Fig. 4d), suggesting that the CMDF has excellent potential as an electrode for high-performance supercapacitors in the future.

Fig. 4
figure 4

a CV graphs under different scanning rates. b GCD graphs under different current densities. c EIS spectra. d Cycling stability (at 6 mA cm−2) of the CMDF. e MXene load and capacitance of the CMDF with other reported MXene relevant textiles. f TG-IR-MS 3D results, g TG curves and h FTIR spectra of MDF heated from 0 to 1,200 °C. i Decomposition gas analysis of DF and MDF during 0 to 1,200 °C

This study shows that the MXene load of CMDF is higher than most existing studies, thus demonstrating the structural superiority of 3D needled felt (Table S1, Fig. 4). At 0.5 mA cm−2 current density, the CMDF specific capacitance detected was 1748.5 mF cm−2 (Fig. 4e) which is significantly higher than the MXene-coated cotton fabric (362 mF cm−2) [33]. Furthermore, the specific capacitance of CMDF calculated from CV curves (1290 mF cm−2) is also higher than MXene/silk fabric (707 mF cm−2) at 2 mV s−1 [34], MXene/cotton fabric (794.2 mF cm−2) [35] and MXene/carbon fabric (416 mF cm−2) at 10 mV s−1 [4i), which could be ascribed to the existence of MXene.

3.4 Supercapacitor Performance of CMDF

For the purpose of examining the practical application of CMDF as a flexible energy storage device, two pieces of CMDF were assembled into a symmetric supercapacitor, and the results of electrochemical measurements are shown in Fig. 5. Based on the GCD curves and the symmetrical structure, the supercapacitors show good reversibility, and increased current density reduces the charge–discharge time. On the basis of the GCD curves, the specific capacitance of supercapacitors can be computed (Fig. 5b). Whenever the current density escalates from 0.5 to 6 mA cm−2, specific capacitance falls from 577.5 to 158.4 mF cm−2. The volume and mass specific capacitance of CMDF are 8.3 F cm−3 and 12.3 F g−1, respectively, when the current density escalates to 0.5 mA cm−2. In addition, the energy and power densities of supercapacitors can also be estimated based on GCD curves. As shown in Fig. 5c, d, energy density gradually decreases from 80.2 to 22 μWh cm−2 with escalating current density, achieving the maximum current density of 0.5 mA cm−2. Also, there is a reverse trend in power density, which increases from 0.25 to 3 mW cm−2.

Fig. 5
figure 5

a GCD graphs, b Specific capacitance, c energy density and d power density of the CMDF supercapacitor under various current densities. e GCD graphs of supercapacitors in series and parallel. f Cycling stability of the supercapacitor; g charging curve of the supercapacitor to a PVDF film. h Capacitance retention of the supercapacitor at various bending angles and i the display of the device's application in practice

Compared to a single supercapacitor, two connected devices generate twice the current and specific capacitance (Fig. 5e). Furthermore, two series-connected supercapacitors have a voltage window of 2 V, or twice that of a single supercapacitor, leading to a higher voltage output for the same operating period. This would broaden their operating voltage window when applied to practical applications. Besides, Fig. 5f displays the GCD curves for 15,000 cycles of the supercapacitor at 2 mA cm−2, which could evaluate the energy storage durability of the obtained flexible supercapacitor. It can be observed from the results that capacitance retention and coulombic efficiency were maintained after 15,000 cycles at 78.94% and 98%, respectively, indicating remarkable cycling stability.

Flexible supercapacitors can improve energy utilization and provide ultra-long endurance in self-generating systems by collecting electrical energy from electric devices. For this purpose, the SC was connected to a piezoelectric generator. Figure 5g shows that a signal is generated by slap** the film and transmitted to the supercapacitor across a rectifier circuit, which leads to a voltage of 0.84 V after 140 s. Figure 5h shows the capacitance retention of the supercapacitor at various bending angles. Approximately 96% of capacitance retention is maintained whenever the bending angle escalates from 0 to 180 degrees, which indicates excellent flexibility and electrochemical stability. While bending at 180°, the two supercapacitors (1 cm × 2 cm) can still illuminate the electronic screen of the hygrothermograph (Fig. 5i), proving their practical application in smart wearable technology. The experimental results demonstrate that the supercapacitor exhibits remarkable durability against bending and folding, as evidenced by its capacitance retention of 97% and 89.6% (Figs. S11 and S12), respectively, after 1000 cycles of testing.

4 Conclusions

This study proposes high-performance electrodes and supercapacitors by combining MXene with 3D needled waste denim felts. It is, therefore, possible to ensure that a high MXene load can be achieved on needled felt by impregnation, while carbonization can remove adverse functional groups and enhance electrical conductivity, resulting in improved supercapacitive electrochemical performance. The obtained CMDF electrode and the supercapacitor achieved remarkable maximum specific capacitance with superior long-term cycling stability. Overall, the CMDF derived from a problematic waste denim textile demonstrates the remarkable potential for utilization in the smart wearable field.