Identification of pneumonia on chest x-ray images through machine learning