In clinical practice, when a patient is undergoing mechanical ventilation, it is important to identify the optimal moment for extubation, minimizing the risk of failure. However, this prediction remains a challenge in the clinical process. In this work, we propose a new protocol to study the extubation process, including the electromyographic diaphragm signal (diaEMG) recorded through 5-channels with surface electrodes around the diaphragm muscle. First channel corresponds to the electrode on the right. A total of 40 patients in process of withdrawal of mechanical ventilation, undergoing spontaneous breathing tests (SBT), were studied. According to the outcome of the SBT, the patients were classified into two groups: successful (SG: 19 patients) and failure (FG: 21 patients) groups. Parameters extracted from the envelope of each channel of diaEMG in time and frequency domain were studied. After analyzing all channels, the second presented maximum differences when comparing the two groups of patients, with parameters related to root mean square (p = 0.005), moving average (p = 0.001), and upward slope (p = 0.017). The third channel also presented maximum differences in parameters as the time between maximum peak (p = 0.004), and the skewness (p = 0.027). These results suggest that diaphragm EMG signal could contribute to increase the knowledge of the behaviour of respiratory system in these patients and improve the extubation process.Clinical Relevance - This establishes the characterization of success and failure patients in the extubation process.