General medical wards admit high-risk patients. Artificial intelligence algorithms can use “big data” for developing models to assess patients’ risk stratification. The aim of this study was to develop a mortality prediction machine learning model using data available at the time of admission to the medical ward.