Imbalanced classification on bankruptcy prediction is considered as one of the most important topics in financial institutions. In this context, various statistical and artificial intelligence methods have been proposed. Recently, deep learning algorithms are experiencing a resurgence of interest, and are widely used to build a prediction and classification models. To this end, we propose a novel deep learning-based approach called BSM-SAES. This approach combines Borderline Synthetic Minority oversampling technique (BSM) and Stacked AutoEncoder (SAE) based on the Softmax classifier. The aim is to develop an accurate and reliable bankruptcy prediction model which includes the features extraction process. To assess the classification performance of our proposed model, k-nearest neighbor, decision tree, support vector machine, and artificial neural network, C5.0 that are machine learning methods, are applied. We evaluate our proposed approach on the Polish imbalanced datasets. The obtained results confirm the efficiency of our proposed model compared to other machine learning models regarding predicting and classifying the financial status of a firm.