Bankruptcy Prediction via Hybrid Resampling and Stacking Ensemble Techniques with Explainable Artificial Intelligence (XAI)-Driven Analysis
This study introduces an AI framework for bankruptcy prediction, integrating feature selection, hybrid resampling, stacking ensembles, and explainable AI to enhance minority-class detection in imbalanced financial data.
Intelligence analysis by Gemini 2.5 Flash

Researchers developed an advanced AI system to predict corporate bankruptcy more accurately, particularly for rare cases, by combining various machine learning techniques and making the predictions transparent. The system was tested on Taiwanese financial data, identifying key financial indicators for early warning.
Imagine a super-smart computer program that helps grown-ups figure out if a company might run out of money, like a detective looking for clues. This program is extra good at finding the rare cases where a company is in trouble, even when most companies are doing fine. It uses lots of different smart tricks to look at a company's money details and then explains *why* it thinks a company might be in danger, so people can help fix things early.
Analysis
The paper presents a comprehensive framework designed to tackle the challenging problem of bankruptcy prediction, especially when dealing with severely imbalanced financial datasets where instances of bankruptcy are rare. The methodology is notable for its multi-stage approach, beginning with a consensus-based feature selection process that distilled the input space to 23 robust variables from the original dataset. This initial step is crucial for reducing noise and focusing the models on the most pertinent financial indicators, thereby enhancing efficiency and interpretability.
Taiwanese Bankruptcy Prediction dataset
The study leveraged the well-known Taiwanese Bankruptcy Prediction dataset from the UCI Machine Learning Repository, a standard benchmark for financial distress prediction. This dataset is characterized by its severe class imbalance, meaning bankruptcies are a small fraction of the total observations, which poses a significant challenge for traditional machine learning models that often struggle to accurately predict the minority class. The researchers addressed this by employing hybrid resampling techniques, specifically SVM-SMOTE, SMOTE-Tomek, and SMOTE-ENN, to create balanced training data, ensuring that the models had sufficient examples of both healthy and distressed firms to learn from effectively.
SVM-SMOTE
Among the various resampling strategies explored, SVM-SMOTE and SMOTE-Tomek were found to favor overall accuracy and specificity, indicating their effectiveness in correctly identifying non-bankrupt firms. In contrast, SMOTE-ENN demonstrated superior performance in minority-class detection, which is critical for early warning systems where identifying potential bankruptcies is paramount. The research compared five ensemble machine learning classifiers—gradient boosting, extreme gradient boosting, histogram-based gradient boosting, LightGBM, and AdaBoost—with five deep learning models, including RNN, LSTM, GRU, DNN, and MLP. The GRU model, when combined with SMOTE-ENN, emerged as the best standalone performer, achieving a strong balance across recall, G-mean, and ROC-AUC metrics, highlighting its capability in handling sequential financial data and detecting the minority class.
SHAP analysis
A key innovation of this framework is the integration of Explainable Artificial Intelligence (XAI) through SHAP (SHapley Additive exPlanations) analysis. This technique was used to elucidate the contributions of individual features to the model's predictions, moving beyond black-box model outputs to provide actionable insights. The SHAP analysis identified leverage, profitability, solvency, and operational efficiency indicators as the most influential predictors of bankruptcy risk. This interpretability is vital for financial practitioners, as it not only provides a prediction but also explains why a firm is predicted to be at risk, allowing for targeted interventions and a deeper understanding of financial health. The findings underscore the potential for these hybrid models to create more reliable and interpretable early warning systems for financially distressed firms.
Key points
- A bankruptcy prediction framework was developed, integrating consensus-based feature selection, hybrid resampling, stacking ensembles, and XAI.
- The study utilized the Taiwanese Bankruptcy Prediction dataset, reducing input features to 23 robust variables.
- Five ensemble machine learning and five deep learning models were compared, alongside hybrid stacking ensembles.
- The GRU model with SMOTE-ENN achieved the best standalone predictive balance, particularly for minority-class detection.
- SHAP analysis identified leverage, profitability, solvency, and operational efficiency as the most influential bankruptcy predictors.
The developed framework could lead to significantly more robust and reliable early warning systems for financial distress, enabling timely interventions that prevent corporate failures and protect jobs and investments. Its explainable nature could foster greater trust and adoption of AI in critical financial decision-making processes.
Despite its advancements, the model's effectiveness is inherently tied to the quality and timeliness of financial data, which can be challenging to obtain and maintain in real-world scenarios. Over-reliance on such sophisticated systems without adequate human oversight and contextual understanding could lead to misinterpretations or unintended consequences if underlying economic conditions shift unexpectedly.



