Financial Risk Prediction for SMEs in Vietnam
Financial Risk Prediction for SMEs in Vietnam
Abstract:
The research uses TabNet, a deep learning model based on attention mechanisms,
and predicts financial risk for Vietnamese listed SMEs by conducting 1,181
quarterly observations on 34 firms at the Hanoi Stock Exchange (2016–2024)
period. The results show that leverage and debt structure metrics, particularly the
nonlinear threshold effect of the debt-to-equity ratio, are the most powerful
indicators of financial distress. TabNet is found to outperform the traditional
approaches significantly with a 78.2% balanced accuracy rate as opposed to
logistic regression's 69.4%, and it also provides better interpretability through its
sequential attention mechanism. The model exposes a decision-making hierarchy
which gives priority to capital structure first, then profitability, and liquidity and
cash flow last. This study not only contributes to the development of predictive
models for financial distress in emerging markets, but also provides practical
recommendations for optimizing SME capital structures in financially dominated
by banks systems.
1. Introduction
A forecast of financial risk is vital for stability and growth in the economy, especially for
emerging markets in which small and medium-sized enterprises (SMEs) constitute a
significant landscape. While mathematical models are considered strong tools to assess
financial vulnerability, the prediction of distress still remains complex in the case of SMEs,
specifically under dynamic settings with sudden economic changes (Krüger & Meyer, 2021).
In Vietnam, SMEs listed on Hanoi Stock Exchange (HNX) represent a sizable workforce
segment in highly valuable sectors and also pay large chunks of tax revenue to the nation
(Diep, 2024), thus highlighting the need for such entities and their financial health
assessment. Their stability influences both their shareholders and the wider realization of
employment, supply chains, and regional economic development (Thu & Xuan, 2023).
Contemporary approaches to financial distress prediction for SMEs in emerging markets have
many shortcomings. The first limitation relates to a persistent trade-off between model
complexity and interpretability; highly accurate models have always lacked the transparency
needed for intervention weighing; being able to recognize the causal mechanisms is as
1
Duy Quang Nguyen, Head of Digital Economics Major, Faculty of Economics, Ho Chi Minh City University of Economics
and Finance, Tel : +84 905 083 366; Email: quangnd@[Link]
1
important as the actual prediction of distress (Gao et al., 2025). Another trap in the race:
financial distress models are prepared in the setting of large entities in the developed
economies and fail to capture peculiarities of SMEs in emerging markets vis-a-vis differences
in capital structures, information environments, and patterns of distress (Leipziger et al.,
2024). Third, the static approach is another limitation of current frameworks, since it looks at
a sequential development of risk, intoxication from distress signals on financial statements
(Yu et al., 2025). Lastly, there still is a considerable implementation gap between theoretically
advanced models and practical implementations in resource-restrained environments (Dodd et
al., 2020).
The study fills those gaps using TabNet, an attention-based neural network architecture, for
financial-risk prediction for listed SMEs in Vietnam. TabNet offers high predictive accuracy
with its attention mechanism and enhanced interpretability-limiting similarity to financial
analysts focusing on the relevant variables for risk assessment. This methodology thus
facilitates the correct prediction of financial distress and the identification of primary risk
drivers, enriching both theory and practice of financial-risk management.
Specifically, this study looks into: (1) how well TabNet can classify financial risk with
interpretability and whether the attention mechanism could help us grasp nonlinear
relationships and ascertain some insights into feature importance; (2) the importance levels of
indicators, that is, financial ratios in risk determination and how the ranking compares with
current theoretical and empirical literature; (3) if temporal patterns exhibited by financial
indicators provide an early warning signal for distress and which among them show the
strongest lead times; (4) how debt structure and cash flow indicators affect risk classification
mostly when considered alongside traditional financial ratios; and (5) how the results of risk
classification are affected by nonlinear relationships and interaction effects between financial
ratios.
Such findings expand the very core of financial risk modelling in emerging markets through
methodological innovations and empirical insight into the determinants of financial health in
Vietnamese SMEs. The results also carry practical implications for financial institutions,
regulators, investors, and SMEs, thus enabling more informed decision making and leading to
the stability of the economic ecosystem in Vietnam's burgeoning capital markets
2. Theoretical Background
The sparsemax function maps attention scores to the probability simplex, thus producing
sparse probability vectors that comprise a lot of zeros, whereas softmax usually gives nonzero
probabilities to all features. The sparse feature selection matrix created in this way is suitable
for processing in a more efficient way and model transparency is improved, hence it is
specially good for the financial indicators of SMEs to be analyzed in terms of their complex
interplay. Processing in sequence not only improves the interpretability of the model but also
shows the order of the features' contributions to the risk prediction.
2.4. Economic Interpretation of the Model
The financial distress probability indicator. Economic theories can be used to interpret these
coefficients. The Capital Structure Theory predictions get support from a positive coefficient
for leverage ratios, meaning financial distress probability goes up with more debt. Sequential
feature processing makes it possible to study the chronological dynamics of financial distress,
which is consistent with the fact that financial weaknesses are gradually developing.
Nonlinear relationships capturing ability of the model goes beyond traditional models
limitations and gives a detailed understanding of the economic mechanisms that cause SMEs
financial risk.
2.5. Hypotheses
The unified theoretical framework leads the author to propose the following hypotheses:
H1: The Influence of Leverage and Debt Structure: In line with Capital Structure Theory
(Kraus & Litzenberger, 1973), accounting for leverage and debt structure is the main predictor
of financial distress for listed Vietnamese SMEs. This assumption is also indicative of limited
capital accessibility for SMEs and hence, the bank-centric financing in Vietnam
(Boyarchenko & Elias, 2024; Boston, 2020).
H2: Temporal sequence of financial distress indicators: The predictive significance of
financial indicators has a temporal sequence, wherein profitability and operational efficiency
indicators are the first to raise alarms and liquidity indicators the last. This builds upon the
conclusions of Freiesleben et al. (2024) and utilizes the attention mechanism of TabNet to
discern the order in which the indicators support the prediction of distress.
H3: Superiority of TabNet in Capturing Nonlinear Financial Dependencies: TabNet is on
top of traditional statistical methods when it comes to predicting the financial distress as it is
capable of unveiling complex non-linear relationships among financial variables. To put it
differently, it is in line with Complexity Theory (Arthur, 2021) and also has the backing of
earlier research that has proved TabNet’s outstanding performance in like financial prediction
contexts (Mai et al., 2019).
4
H4: The Predominant Role of Short-term Debt: The indicators of short-term debt will be
found to be more critical than the long-term debt indicators in predicting financial distress.
This is based on the poor access of SMEs to long-term capital; hence, they are most likely to
suffer from the risks of rollover and interest rate volatility (Gupta et al., 2018).
H5: Added Value of Cash Flow Indicators: Cash flow indicators are very useful as they
point out the extra predictive information, especially in the case of identifying risks among
financially stable firms that rely solely on accrual accounting indicators for assessment. This
signals the importance of cash flow in situations where the transparency of accounting may
not be very good (Seretidou et al., 2025).
The presented hypotheses form a broad empirical analysis framework by amalgamating
economic theories with TabNet's skills to fill the identified research gaps.
3. Research Methodology
The research predicts the financial risk of small and medium-scale listed companies present
on the Hanoi Stock Exchange (HNX) using a numerical method and financial ratio
examination together with the TabNet machine learning model. The performance of the
TabNet model has been the major reason behind its selection, which can learn to describe
nonlinear relationships in financial data, while still being more interpretable than the
traditional "black box models" (Arik & Pfister, 2021). This interpretability provides
actionable insights for the stakeholders and at the same time confirms the existing economic
theories regarding the firm's distress.
Our research work has used a cross-sectional dataset along with lagged variables in order to
reflect the very nature of the financial risk capturing its dynamic aspect. The data for our
study consisted of the 34 small and medium-sized listed companies (having capital less than
VND 100 billion) on HNX, and was obtained through quarterly observations from 2016 to
2024, leading to 1181 observations. This time period not only covers the pre- and post-
COVID-19 periods but also makes it possible to perform a robust model evaluation through
different economic conditions. The dependent variable is made up of a three-point ordinal
financial risk classification (low, medium, and high) based on a modified Altman Z-score
Altman et al. (2020) adapted for emerging market SMEs, which is more sophisticated than
two-classification and thus provides valuable insights into the financial distress "gray zone".
The independent variables used in the analysis are financial ratios that have been categorized
according to corporate finance theories: leverage and capital structure (Debt/Equity (DE),
Short-Term Debt to Total Debt (STDTD)); liquidity (Current Ratio (CR), Working Capital to
Total Assets (WCTA)); profitability (Return on Assets (ROA), Gross Profit Margin (GPM),
Return on Equity (ROE)); asset composition (Fixed Assets to Total Assets (FATA)); debt
coverage (Interest Coverage Ratio (ICR)); revenue growth (REVG); and cash flow (Operating
Cash Flow to Total Assets (OCFTA), Free Cash Flow to Total Assets (FCFTA)). To reflect
the temporal dynamics within the study, lagged variables for one year (L1) and two years (L2)
along with year-over-year change variables (Δ) for the key ratios were included. Power
analysis indicated that our sample was sufficiently large for detection of medium-to-large
effects (f² ≥ 0.15) at standard significance levels (α = 0.05, 1-β = 0.8).
The venues for data were Cafef and HNX. The preprocessing steps included defining &
harmonizing accounting terms, treating outliers by winsorizing the top (99th) and bottom (1st)
percentile, and missing-value handling via trend interpolation and industry average
5
substitution. All financial variables were standardized. To deal with the class imbalance (34%
low risk, 49% medium risk, and 17% high risk), the Synthetic Minority Oversampling
Technique (SMOTE) was used in the training set until all risk classes were equally
represented, without any bias being introduced. The dataset was prepared through stratified
sampling with an 80% training and a 20% testing set to maintain the same risk class
representation.
3.1. TabNet Model Specification
The architecture of TabNet included four decision steps (N=4), 64 as the feature
width, 0.2 as the dropout rate, and 1e-4 as the L2 regularization coefficient. These
hyperparameters were found by performing a grid search with 5-fold stratified cross-
validation, where the weighted average F1-score across the risk classes was maximized (refer
to Table 2). The attention component of the model allows for the selection of features in a
sequential manner and improves the understanding of the process by showing what features
were important at each stage of the decision. The Adam optimizer was employed for training,
starting with a learning rate of 0.01, which was reduced by a factor of 0.5 according to a
learning rate scheduler. The target function was a multiclass cross-entropy loss function with
class weights to deal with class imbalance.
Table 2. Hyperparameter Optimization Results
d_model \ N 1 2 3 4 5
8
DE 1.73 4.82 <0.001 0.042 → ROA (0.003), → CR (0.015)
ROA -0.56 5.21 <0.001 0.008 → OCFTA (0.001), → ICR (0.012)
CR 1.84 7.26 <0.001 0.032 → WCTA (0.001)
WCTA 0.15 3.48 0.038 0.027 → ROA (0.089)
OCFTA 0.32 4.95 <0.001 0.004 → FCFTA (0.001), → ICR (0.045)
ICR 2.63 12.84 <0.001 0.073 There is no significant causal relationship
The application of bootstrap and Monte Carlo dropout methods for the analysis of model
uncertainty (Table 6) resulted in the identification of a high-risk group with a greater
uncertainty range, predominantly contributed by aleatoric uncertainty. The calibration curves
(Figure 1) reported a good calibration whilst the medium-risk class was an exception to this
claim.
Feature importance analysis (Table 7, Figure 2, Figure 3) provided evidence that DE was the
foremost predictor (17.2%) followed by ROA (11.8%) and ICR (9.7%). The attention
mechanism of TabNet revealed a series of decisions made one after the other, which initially
looked at leverage, profitability, and working capital and then shifted to debt repayment
capacity and liquidity. Eventually, it merged the cash flow indicators. The permutation feature
importance (Figure 10) supports the superiority of DE whereas the SHAP value analysis
(Figure 11) shows that capital structure, asset structure, and liquidity are the key aspects in
predicting risks.
10
Figure 2. Importance of permutation features
11
4.4. Comparative Analysis and Robustness Testing
TabNet is a remarkable model that has outperformed logistic regression in every evaluation
metric and this has been evidenced by the demonstration of the benefits of nonlinear modeling
inL the capture of complex relationships among the financial indicators and risk (see Table 9).
Besides, TabNet was able to outperform Random Forest and XGBoost by a small amount but
that difference was supported by the statistical evidence, which confirms his effectiveness in
the specific case mentioned. Moreover, combining all three methods in an ensemble model
resulted in the highest performance, which indicates that every single model contributed to the
data from its own and unique point of view. Besides, stability and generalisation of the
TabNet model across the different data subgroups came as a result of robustness testing,
which was a surprise to the researchers. Moreover, the researchers believe that lagged
variables played a major role in the performance of the model since they provided a historical
perspective of the financial situation that was essential for risk prediction.
Table 8. Performance of comparative model
Metric TabNet Logistic Regression Random Forest XGBoost Ensemble
Balanced Accuracy 0.782 0.694 0.743 0.764 0.796
Cohen's Kappa 0.693 0.567 0.632 0.663 0.702
F1 Score (Low Risk) 0.812 0.735 0.774 0.792 0.821
F1 Score (Medium Risk) 0.776 0.694 0.736 0.751 0.784
F1 Score (High Risk) 0.702 0.592 0.643 0.682 0.716
Average AUC-ROC 0.881 0.812 0.853 0.872 0.889
Ranking Loss Score 0.231 0.364 0.287 0.256 0.219
5.
Tables and figures should be numbered (without headings) consecutively (in Arabic numbers,
Times New Roman 10, Bold, Centered, After 3 pt). The title (for both tables and figures)
should be placed above (see Figure 1, Table 1)
Table 1. Title
Figures should be center aligned. Add figures as pictures with the highest possible resolution.
Use only black & white figures. All figures should be placed on portrait-oriented pages.
Figure 1. Title
13
Text2 (Times New Roman 10, Before 6 pt, After 6 pt, Justified)
Equations should be left-aligned in the first column of the single-row-two-columns table (see the model below).
The table with the equation should be set for 6 pt before and 6 pt after. The equations are consecutively
numbered, with Arabic numbers in parentheses, in the second column of the table, right-aligned (see the model
below).
(1)
References (Times New Roman 12, Bold, Before 12 pt, After 12 pt, Justified)
Text of references (Times New Roman 10, Regular, Justified, Hanging 1 cm)
Cited literature to include research papers from indexed journals in Scopus/ Web of science is highly
encouraged!
Citations of authors/works should be made in the text (NOT as footnotes) in the following general form: (Allen,
Wood, 2006, p. …). The page range is provided only in the citing inside the text. In the Reference list at
the end of the paper, only journal articles should have a page range.
The references and citations should follow the Harvard System Convention an APA Citation Style. All
references should be cited in the text.
For book: Author surname, Author initial. (Year). Title. Place: Publisher, ISBN.
Barker, R., Kirk, J. and Munday, R. J. (1988). Narrative Analysis. 3rd ed. Bloomington: Indiana University Press.
For book chapter: Chapter Author surname, Chapter Author initial. (Year). Chapter Title. – In: Book Author
surname, Book Author initial. (ed. if needed). Book Title. Place: Publisher.
Samson, C. (1970). Problems of Information Studies in History. – In: Stone, S. (ed.). Humanities Information
Research. Sheffield, CRUS.
2
14
For a journal article: Author surname, Author initial. (Year). Title. – Journal name, Vol. …, N …, p.p. …., ISSN.
Boughton, J. M. (2002). The Bretton Woods Proposal: an Indepth Look. – Political Science Quarterly, 42(6), p.
564-578.
For e-journals: Author surname, Author initial. (Year). Title. – Journal name, Vol. …., N …, p.p. …., available
at: <internet address>.
Kipper, D. (2008). Japan’s New Dawn. – Popular Science and Technology, [online] Available
at:<[Link]
Page Setup:
Paper size – A4
All pages – portrait orientation
Margins – top 3 cm / bottom 3 cm / left 2.5 cm / right 2.5 cm
Header – 3 cm
Footer – 3 cm
Different first page
Different odd and even page
15