One of the challenges in intensive care is the process of weaning from mechanical ventilation. We studied the differences in respiratory pattern variability between patients capable of maintaining spontaneous breathing during weaning trials and patients that fail to maintain spontaneous breathing. In this work, neural networks were applied to study these differences. 64 patients from mechanical ventilation are studied: Group S with 32 patients with Successful trials and Group F with 32 patients that Failed to maintain spontaneous breathing and were reconnected. A performance of 64.56% of well classified patients was obtained using a neural network trained with the whole set of 35 features. After the application of a feature selection procedure (backward selection) 84.56% was obtained using only 8 of the 35 features.