Applications that employ medical data are directly impacted by the classification of imbalanced data. It is vital due to the nature of classification and solutions about medical data. The purpose of this article is to identify a machine learning model that may be successfully applied in the medical field to reduce the number of mortality and optimize the efficiency of hospital resources. For this reason, it is thought that the better the performance of the ML model, the more a different perspective will be gained on the problems in today's medicine. Therefore, in the study, Weighted Random Forest (WRF) and Balanced Random Forest (BRF) which are ensemble machine learning (ML) methods for imbalanced data were implemented to identify the performance of the algorithms for mortality determination from open-source MIMIC-III dataset by using vital signs, comorbidities, and laboratory variables with demographic characteristic information. To evaluate the performance of WRF and BRF, a Random Forest Classifier (RFC) was also implemented to investigate the power of developed models for imbalanced data. In addition, the features used in the ML methods were separated into three groups to explore the impact of the vital signs, comorbidities, and laboratory variables with demographic characteristics separately on mortality identification. In addition to previous applications on UCI datasets, the present study revealed that the BRF method for imbalanced medical data provides high performance in determining the majority and minority classes of the data by using vital signs and laboratory variables with demographic characteristics.