This article presents a study on the classification of pathologies in digital chest radiographs using machine learning methods, specifically the extreme gradient boosting (XGBoost) algorithm and the ResNet50 deep convolutional neural network. Both methods were trained on a dataset of X-ray images, achieving high accuracy, but ResNet50 outperformed XGBoost in validation metrics, indicating its superior capability in automatically extracting features. The study highlights the potential of these techniques to enhance diagnostic processes in radiology and suggests future improvements in data preprocessing and dataset size for better model performance.