Predicting Financial Distress in Algerian SMEs: A Deep Neural Network (MLP-DNN) Framework
- University of Ain Temouchent, Algeria · benzeguir.abdelatif@gmail.com
- University of Echahid Cheikh Larbi Tebessi, Tebessa, Algeria · boughenama.ahmedlamine@gmail.com
- University of Oran 2, Algeria · bouraada.houria@yahoo.fr
- University of Ain Temouchent, Algeria · yehya.haoulia@univ-temouchent.edu.dz
Abstract
Purpose: This study develops and validates a deep learning framework for early financial distress prediction in 700 Algerian SMEs. It evaluates a Multi-Layer Perceptron Deep Neural Network (MLP-DNN) for identifying vulnerable firms in a resource-constrained emerging economy with data scarcity and class imbalance.
Methodology: The MLP-DNN was trained on 15 financial ratios (liquidity, profitability, activity, solvency) from Algeria’s National Commercial Registry (2018–2024). A 2.15:1 healthy-to-distressed class imbalance was corrected using SMOTE with class-weighted optimisation. Model robustness used five-fold stratified cross-validation, benchmarking against Logistic Regression (LR) and Random Forest (RF). Evaluation metrics included per-class precision, recall, F1-score, AUROC, and AUPRC. Permutation importance analysis (30 repeats) enhanced interpretability.
Findings: All models showed competitive cross-validated AUROC (LR=0.9595, RF=0.9557, MLP=0.9532). On the test set, the MLP achieved the highest AUROC (0.9616) and distressed-class AUPRC (0.924). For the minority distressed class, MLP recorded precision=0.886, recall=0.705, F1=0.785. Overfitting was controlled via early stopping (epoch 34/300) and L2 regularisation. Return on Equity, Payables Turnover, and Permanent Financing Ratio were the top three predictors.
Practical Implications: The framework offers Algerian financial institutions, supervisors, and SME managers a calibrated early-warning tool that functions under real-world data constraints, directly addressing data scarcity and class imbalance.
Originality/Value: This is the first fully reproducible deep learning benchmark for Algerian SME distress prediction, featuring a methodologically justified MLP architecture, rigorous cross-validation with baseline benchmarking, SMOTE-based imbalance correction, and permutation importance analysis. All hyperparameters, random seeds, and library versions are fully disclosed to support replication.
Paper Type: Research Paper.
Introduction
Algerian SMEs are the engine of the country's non-oil economy: they create the bulk of private-sector employment and are central to government efforts to diversify away from hydrocarbon dependence. Under Algeria's legislative framework (Executive Decree No. 18-10 of 19 August 2018), an SME is defined as any enterprise employing between 1 and 250 persons, with an annual turnover not exceeding two billion Algerian dinars (DZD 2 bn), or a balance-sheet total not exceeding DZD 500 million. Within this broad category, three sub-tiers are distinguished: micro-enterprises (1–9 employees, turnover < DZD 20 million); small enterprises (10–49 employees, turnover DZD 20–200 million); and medium-sized enterprises (50–250 employees, turnover DZD 200 million to 2 billion). Despite their economic centrality, these enterprises operate in an environment marked by intense competition, regulatory complexity, and critically limited access to formal financing, all of which amplify their vulnerability to financial distress.
Financial distress in SMEs looks very different from distress in large corporations. Large firms typically enjoy diverse revenue streams, proper governance, solid collateral, and access to capital markets, all of which provide significant buffers against trouble. Algerian SMEs, by contrast, are far more vulnerable for several reasons. They often rely on just one or two main clients for revenue. They tend to be owner-managed, meaning financial decisions may lack professional expertise. Weak collateral makes bank financing hard to secure. And limited cash reserves leave them highly sensitive to economic ups and downs. According to the National Commercial Registry, over 129,000 enterprises were formally "struck off" (administrative deregistration from the registry after a business ceases activity, whether voluntarily or compulsorily) in a single reporting cycle. This stark figure highlights just how fragile entrepreneurship is in Algeria and how urgently effective early-warning systems are needed.
Traditional financial distress prediction models, principally discriminant analysis and logistic regression, have long been applied to assess corporate financial health. However, these approaches impose restrictive assumptions (normality, linear separability, homoscedasticity) that are routinely violated in SME datasets characterised by noise, outliers, and skewed distributions. The rapid development of deep learning offers a compelling alternative, capable of learning complex, non-linear feature interactions without distributional assumptions. Yet a critical methodological question governs architecture selection: the appropriateness of a given neural network design depends fundamentally on whether the data are cross-sectional or longitudinal in nature.
The use of AI-based systems in financial decision-making is not without risk. Over-reliance on automated predictions without human oversight may generate false confidence, particularly near the decision boundary. Model drift as macroeconomic conditions evolve may erode predictive validity without explicit recalibration. Furthermore, the opacity of black-box predictions may limit institutional adoption in regulatory contexts where explainability is mandated. These risks motivate the integration of permutation-based variable importance analysis in the present study.
Theoretical Framework of the Study
Financial Distress: Conceptualisation and the Algerian Context
Financial distress is better understood as a process rather than an event: it unfolds gradually as a firm's capacity to service its obligations erodes, often long before formal insolvency proceedings are initiated (Nadir et al. 2025).
The conceptualization of financial distress varies significantly depending on the disciplinary lens applied. From a legal standpoint, it marks the terminal phase of this deterioration, involving formal procedures such as bankruptcy or liquidation, whereby a company is legally declared incapable of settling its debts (Borges and Carvalho 2025).
An accounting perspective, conversely, focuses on the firm's operational inability to honor its short-term financial commitments, with key indicators including persistent negative working capital, consecutive annual losses (a criterion utilized in the source data for this study) and a fundamental imbalance between current assets and liabilities (Keasey et al. 2015).
Economically, the definition broadens further to consider the failure to generate adequate returns on invested capital. A company is deemed in economic distress when its revenues consistently fail to cover total costs, including the cost of capital, thereby eroding shareholder value and threatening long-term viability, even if immediate bankruptcy is avoided (Ossi et al. 2023).
Causes of Distress in SMEs
The vulnerability of Small and Medium-sized Enterprises (SMEs) to financial distress is attributed to a confluence of internal weaknesses and external pressures. Internally, these often include poor cash flow management stemming from the mismanagement of accounts receivable and payable, which precipitates liquidity crises. This is frequently compounded by weak financial planning, characterized by a lack of formal budgeting, forecasting, and strategic financial oversight. An over-reliance on a single client or a concentrated revenue stream significantly increases vulnerability, while inexperienced management, where founders may lack formal training in financial and operational disciplines, further exacerbates these risks (Khoja et al. 2019). Externally, SMEs grapple with limited access to financing due to high-interest rates, insufficient collateral, and their perceived high risk by financial institutions. They also face intense market competition from both domestic rivals and imported goods, alongside considerable bureaucratic hurdles involving complex administrative procedures and regulatory red tape, as highlighted in the source document, which collectively hinder business operations and growth. Moreover, broader macroeconomic volatility, including fluctuations in inflation, exchange rates, and national economic policies, directly impacts the stability of SMEs.
Prior Studies on DNN-Based Financial Distress Prediction
The literature on machine learning for financial distress prediction is extensive, but applications of deep learning specifically to SMEs in emerging economies remain comparatively sparse. (Jan 2021) applied deep learning algorithms to accounting data, demonstrating that DNNs substantially outperform traditional statistical models when data distributions deviate from normality. (Elhoseny et al. 2025) developed a deep learning model using multi-source financial data, reporting AUROC values in the range 0.91–0.95 for balanced datasets, and explicitly demonstrating that MLP-based DNNs were competitive with or superior to LSTM-based models when input data lacked genuine temporal structure. (Lestari et al. 2025) applied ANNs to predict financial distress in Indonesian companies, achieving accuracy rates of 88.7% in a data-scarce context analogous to the present study.
Prior work in this area has left three recurring blind spots: researchers rarely compare deep learning models against simple benchmarks, tend to ignore the skewed class distributions typical of financial datasets, and often omit the technical details needed to replicate their findings. The present study explicitly addresses all three. A further gap is the absence of studies examining the dependent variable operationalisation used here, consecutive annual losses as a binary indicator of distress, in the Algerian SME context. Related studies in comparable contexts include (Cultrera and Brédart 2016), who used a binary distress variable based on legal proceedings in Belgian SMEs, and (Keasey et al. 2015), who employed similar accounting-based criteria in a multi-country SME sample.
Deep Neural Networks: Architecture and Suitability for Cross-Sectional Financial Data
A deep neural network stacks multiple layers of processing units between its input and output. Each unit transforms a weighted sum of the signals it receives through a non-linear function, allowing the network as a whole to detect patterns that no single linear equation could capture (Jeeri 2025). Learning proceeds through backpropagation: the prediction error is propagated backward through the network, and connection weights are updated via an optimisation algorithm to minimise the chosen loss function (Dong and Williamson 2020).
Critical architecture choice: MLP over LSTM
Long Short-Term Memory (LSTM) networks are a class of recurrent neural network specifically designed for sequential, time-dependent data: the internal memory cell is meaningful only when processing a genuine temporal sequence, for example, a single firm's quarterly financial ratios measured across 20 consecutive periods. The dataset in this study is cross-sectional: each observation represents one SME characterised by 15 financial ratios computed over the 2018–2024 window, with no firm appearing multiple times as a time-indexed sequence.
Using an LSTM network is not appropriate here: the network's memory cells are designed to track how a signal evolves over time, but our data contains no time dimension to track, just 15 simultaneous financial ratios per firm. Forcing a sequence interpretation onto these features would add computational overhead without adding any analytical insight. Accordingly, this study employs an MLP architecture, consistent with the recommendation of (Elhoseny et al. 2025), who found MLP-based DNNs competitive with LSTM models when input data lack genuine temporal structure. Should future research collect true panel data (repeated annual observations per firm), LSTM or Transformer-based architectures would become architecturally justified.
Study Sample and Data
Population and sample
The study population comprises all active SMEs registered in Algeria's National Commercial Registry, categorised by economic sector according to official statistics (THE TRADE REGISTER Indicators and Statistics 2023, 18). The sectoral composition is summarised in Table 1:
| Sector Designation | Number of Enterprises | ||||
|---|---|---|---|---|---|
| Code | Designation | Registered | Modifications | Struck Off | Total |
| Sector 01 | Goods Production | 20,661 | 24,625 | 15,007 | 60,293 |
| Sector 02 | Craft Production Enterprises | 60 | 131 | 164 | 355 |
| Sector 03 | Wholesale Distribution | 8,552 | 11,511 | 5,230 | 25,293 |
| Sector 04 | Import for Resale As-Is | 3,165 | 11,871 | 2,023 | 17,059 |
| Sector 05 | Retail Distribution | 91,720 | 45,852 | 58,994 | 196,566 |
| Sector 06 | Services | 72,844 | 45,366 | 47,654 | 165,864 |
| Sector 07 | Export | 970 | 800 | 274 | 2,044 |
| Total | 197,972 | 140,156 | 129,346 | 467,474 | |
Show original (as in PDF)
From this population, the study sample was restricted to SMEs maintaining consistent, verifiable financial information over the 2018–2024 study period. A purposive judgmental sampling technique was employed, enabling deliberate selection of units possessing characteristics necessary to address the study's research objectives (Touaiti 2018). This approach ensures that the sample mirrors the structural heterogeneity of the population, spanning multiple sectors, firm sizes, and financial conditions, thereby strengthening the validity and generalisability of results. The final sample comprises N = 700 SMEs, classified into two groups based on a three-year consecutive profitability rule.
Study variables
The analysis of financial distress relies on identifying and measuring key variables that illuminate the relationship between potential causes and observable outcomes. In line with established research practices (Zehouani 2022), we structured our investigation around two primary types of variables.
Dependent Variable (Financial Distress – Y): The dependent variable captures the binary financial health status of each SME. The classification follows a clear, accounting-based rule applied to three consecutive years of financial statements:
- Distressed Enterprises (Y = 0): firms recording consecutive net losses over three or more years, indicating sustained operating failure beyond transient shocks.
- Healthy Enterprises (Y = 1): firms recording consecutive net profits over the same span.
This criterion was selected for its verifiability from registry and balance-sheet data, its alignment with prior SME distress literature (Keasey et al. 2015), and its operational relevance to Algerian regulatory and banking contexts, where consecutive losses trigger enhanced supervisory scrutiny.
Independent (Explanatory) Variables: Fifteen quantitative financial ratios were constructed from the enterprises' financial statements, grouped into four theoretically grounded categories. This selection reflects a comprehensive coverage of dimensions documented in the financial distress prediction literature as reliably discriminant between healthy and vulnerable firms (Zehouani 2022).
| Category | Variable | Formula |
|---|---|---|
| Liquidity Ratios | R1 (Current Ratio) | Current Assets / Current Liabilities |
| R2 (Quick Ratio) | (Cash + Marketable Securities + Receivables) / Current Liabilities | |
| R3 (Cash Ratio) | (Cash + Cash Equivalents) / Current Liabilities | |
| Profitability Ratios | R4 (Return on Equity – ROE) | Net Income / Shareholders' Equity |
| R5 (Return on Assets – ROA) | Net Income / Total Assets | |
| R6 (Net Profit Margin) | Net Income / Total Revenue | |
| Activity Ratios | R7 (Payables Turnover) | Supplier Purchases / Average Accounts Payable |
| R8 (Inventory Turnover) | Cost of Goods Sold (COGS) / Average Inventory | |
| R9 (Receivables Turnover) | Credit Sales / Average Accounts Receivable | |
| R10 (Fixed Asset Turnover) | Net Sales / Average Fixed Assets | |
| R11 (Working Capital to Current Assets) | Working Capital / Total Current Assets | |
| Leverage Ratios | R12 (Debt Ratio) | Total Debt / Total Assets |
| R13 (Permanent Financing Ratio) | Permanent Funds / Fixed Assets | |
| R14 (Financial Independence Ratio) | Shareholders' Equity / Permanent Funds | |
| R15 (Interest Coverage Ratio) | Earnings Before Interest and Taxes (EBIT) / Interest Expense |
Show original (as in PDF)
Preliminary Data Analysis
Class Distribution and Imbalance
Of the 700 enterprises in the sample, 478 (68.29%) are classified as financially healthy and 222 (31.71%) as financially distressed, yielding an imbalance ratio of 2.15:1 (majority : minority). Table 3 presents this distribution.
| Status | N (Enterprises) | Code | Percentage |
|---|---|---|---|
| Healthy Firms | 478 | 1 | 68.29% |
| Distressed Firms | 222 | 0 | 31.71% |
| Total | 700 | — | 100.00% |
Show original (as in PDF)
The imbalance ratio of 2.15:1 is sufficient to induce majority-class bias in classifiers optimised for aggregate accuracy. This motivates the application of SMOTE oversampling and a class-weighted loss function.
Descriptive Statistics of Financial Ratios
Table 4 presents the post-imputation descriptive statistics for the 15 financial ratios. The dataset contained 279 missing values (2.66% of all cells, 279 / 10,500) resulting from mathematical division-by-zero undefined values during initial raw ratio computations. These occurred predominantly in profitability and leverage ratios where denominators (such as total assets or interest expenses) were zero. These were imputed using column-wise median values, a robust strategy that preserves the distributional shape without amplifying the influence of outliers.
| Category | Ratio | Min | Q1 | Median | Q3 | Max | Mean | SD |
|---|---|---|---|---|---|---|---|---|
| Liquidity Ratios | R1 | 0.55 | 1.33 | 1.75 | 2.02 | 2.68 | 1.677 | 0.462 |
| R2 | 0.27 | 0.98 | 1.33 | 1.58 | 2.08 | 1.267 | 0.391 | |
| R3 | 0.04 | 0.43 | 0.60 | 0.74 | 1.04 | 0.577 | 0.207 | |
| Profitability Ratios | R4 | −0.11 | 0.02 | 0.05 | 0.08 | 0.17 | 0.047 | 0.049 |
| R5 | −0.03 | 0.02 | 0.05 | 0.07 | 0.11 | 0.045 | 0.030 | |
| R6 | −0.06 | 0.03 | 0.06 | 0.08 | 0.15 | 0.057 | 0.037 | |
| Activity Ratios | R7 | 1.46 | 3.06 | 3.81 | 4.30 | 5.54 | 3.685 | 0.841 |
| R8 | 2.53 | 4.40 | 5.23 | 5.87 | 7.39 | 5.085 | 1.009 | |
| R9 | 2.24 | 4.75 | 5.77 | 6.43 | 8.06 | 5.621 | 1.136 | |
| R10 | 0.40 | 1.62 | 2.10 | 2.47 | 3.23 | 2.037 | 0.558 | |
| R11 | −0.20 | 0.09 | 0.21 | 0.30 | 0.50 | 0.195 | 0.139 | |
| Leverage Ratios | R12 | 0.47 | 0.59 | 0.65 | 0.72 | 0.88 | 0.655 | 0.085 |
| R13 | 0.57 | 1.00 | 1.15 | 1.32 | 1.62 | 1.139 | 0.223 | |
| R14 | 0.16 | 0.43 | 0.54 | 0.63 | 0.81 | 0.525 | 0.132 | |
| R15 | 0.37 | 1.94 | 2.60 | 3.08 | 4.32 | 2.490 | 0.797 |
Show original (as in PDF)
Several patterns merit analytical attention. The profitability ratios (R4–R6) exhibit low mean values (ROE mean = 0.047, ROA mean = 0.045) with negative minimum values, indicating that a subset of enterprises recorded net losses, consistent with the distress classification criterion. The standard deviations for profitability ratios are comparatively small (SD ≈ 0.03–0.05), suggesting that even small changes in profitability metrics carry substantive discriminant power between classes. The activity ratios (R7–R9) display broader dispersions (SD ≈ 0.84–1.14), reflecting the diversity of operational management practices across sectors. Leverage ratios (R12–R15) show moderate variation, with the Debt Ratio (R12) exhibiting a narrow range (0.47–0.88), indicating that most sampled SMEs maintain debt-to-asset levels within a relatively constrained band.
Correlation Analysis and Multicollinearity Assessment
To assess potential multicollinearity among the 15 independent variables, Pearson pairwise correlations were computed. Table 5 summarises pairs exhibiting absolute correlation |r| ≥ 0.50, which warrant attention in linear modelling contexts.
| Variable Pair | Pearson r | Interpretation | Variable Pair | Pearson r | Note |
|---|---|---|---|---|---|
| R1 × R2 | 0.89 | Very High | R5 × R4 | 0.82 | Very High |
| R1 × R3 | 0.73 | High | R4 × R6 | 0.71 | High |
| R2 × R3 | 0.84 | Very High | R12 × R14 | −0.66 | Moderate-High |
| R8 × R9 | 0.61 | Moderate | R13 × R14 | 0.58 | Moderate |
| R7 × R8 | 0.52 | Moderate | R5 × R12 | −0.54 | Moderate |
Show original (as in PDF)
The liquidity triplet (R1, R2, R3) exhibits very high inter-correlations (r = 0.73–0.89), as does the profitability pair (R4, R5; r = 0.82). In classical linear regression, such collinearity would warrant variable selection or dimensionality reduction. However, the MLP-DNN employed in this study is inherently robust to multicollinearity: non-linear weight optimisation combined with L2 regularisation (α = 0.0001) effectively redistributes predictive weight across correlated features without inflating coefficient variance. The permutation importance analysis provides empirical evidence on which ratios carry the greatest non-redundant predictive information.
Methodology and Model Implementation
Data Preparation
The 700-observation dataset was partitioned into a training pool (80%, N = 560; Healthy = 382, Distressed = 178) and a held-out test set (20%, N = 140; Healthy = 96, Distressed = 44) using stratified random sampling (random state = 42). Stratification preserves the original 68.29%/31.71% class ratio across both subsets, preventing differential class representation from confounding final evaluation. Table 6 summarises the partitioning.
| Subset | N | Healthy (Y=1) | Distressed (Y=0) | Purpose |
|---|---|---|---|---|
| Training Pool | 560 (80%) | 382 (68.21%) | 178 (31.79%) | CV + training |
| Held-Out Test | 140 (20%) | 96 (68.57%) | 44 (31.43%) | Final evaluation |
Show original (as in PDF)
Class Imbalance Treatment (SMOTE + Class Weighting)
With a 2.15:1 imbalance ratio, classifiers trained on aggregate loss are prone to majority-class bias, generating high accuracy by defaulting to healthy predictions while missing distressed firms, precisely the most consequential error in a risk-management context. Two complementary strategies were applied:
- SMOTE (Synthetic Minority Oversampling Technique): implemented from first principles using Euclidean-distance k-nearest neighbours (k = 5). Applied exclusively within each cross-validation training fold, not applied to validation or test folds, to prevent synthetic-sample leakage inflating out-of-sample performance estimates.
- Class-Weighted Training: for Logistic Regression and Random Forest, class weight='balanced' was set, automatically computing weights inversely proportional to class frequency (w0 = N/(2·n0) = 700/(2·222) ≈ 1.58; w1 ≈ 0.73). For the MLP, SMOTE pre-balancing achieves an equivalent effect within each fold.
Post-SMOTE, each training fold contains approximately equal class proportions (≈ 382:382, healthy : distressed). Performance is reported using per-class precision, recall, and F1-score to capture differential model behaviour across classes.
Cross-Validation Protocol
Five-fold stratified cross-validation (k = 5, random state = 42) was applied to the training pool (N = 560), replacing the single train-test split of the original submission. Each fold produces 448 training and 112 validation observations (approximately). SMOTE is applied to the 448-observation training partition within each fold. The StandardScaler is refitted on each fold's training partition to prevent leakage. Per-fold performance is aggregated as Mean ± SD across five folds for all metrics. All three models were evaluated on identical fold assignments.
Results and Analysis
Five-Fold Cross-Validation Results
Figure 1 presents the mean and standard deviation of key performance metrics across five stratified folds for all three models.
Figure 1. Cross-Validation Mean ± SD (5 Folds)
| Model | Fold 1 | Fold 2 | Fold 3 | Fold 4 | Fold 5 | Mean |
|---|---|---|---|---|---|---|
| Logistic Regression | 0.9588 | 0.9336 | 0.9627 | 0.9821 | 0.9605 | 0.9595 |
| Random Forest | 0.9577 | 0.9304 | 0.9614 | 0.9777 | 0.9510 | 0.9556 |
| MLP / DNN | 0.9410 | 0.9399 | 0.9565 | 0.9762 | 0.9525 | 0.9532 |
Show original (as in PDF)
The cross-validation results reveal several substantive findings. First, all three models achieve consistently high discriminatory power (AUROC > 0.95 across all folds), confirming that the 15 financial ratios together provide a strong and stable signal for distinguishing healthy from distressed Algerian SMEs. Second, Logistic Regression achieves the highest mean cross-validated AUROC (0.9595 ± 0.0155), slightly ahead of Random Forest (0.9557 ± 0.0154) and MLP (0.9532 ± 0.0132). This ordering on the cross-validation data is not inconsistent with the MLP achieving the highest held-out test AUROC; cross-validation AUROC standard deviations overlap across all three models, indicating that performance differences are not statistically significant at conventional thresholds given k = 5. Third, the MLP exhibits the smallest standard deviation across folds (0.0132 vs. 0.0155 for LR), indicating somewhat more stable generalisation behaviour. Fourth, F1 scores for the distressed class (0.823–0.839) are notably lower than for the healthy class (0.911–0.925), confirming that correctly identifying minority-class instances remains the principal challenge even after SMOTE correction and highlighting the importance of per-class metric reporting.
Held-Out Test Set Confusion Matrices
Following cross-validation, each model was retrained on the full 560-observation training pool (with SMOTE) and evaluated on the held-out test set (N = 140).
Figure 2. Confusion Matrices (Held-Out Test Set, N=140)
The confusion matrix analysis yields several risk-management-relevant observations. For the MLP model, 13 of the 44 distressed enterprises were misclassified as healthy (False Negatives = 13; recall for distressed class = 31/44 = 70.5%). By contrast, only 4 healthy enterprises were over-flagged as distressed (False Positives = 4). From an operational risk perspective, False Negatives (missed distress) carry substantially greater economic consequences than False Positives (false alarms), since undetected financial vulnerability may lead to unrecovered credit losses. The Logistic Regression model achieves the lowest False Negative count (11), suggesting that in this particular dataset and evaluation context, the linear decision boundary of LR is marginally better calibrated for distress detection than the non-linear MLP boundary.
Per-Class Classification Metrics
| Model / Class | Prec. (0) | Rec. (0) | F1 (0) | Prec. (1) | Rec. (1) | F1 (1) | AUROC | AUPRC |
|---|---|---|---|---|---|---|---|---|
| Logistic Regression | 0.892 | 0.750 | 0.815 | 0.893 | 0.958 | 0.925 | 0.9586 | 0.922 |
| Random Forest | 0.853 | 0.659 | 0.744 | 0.859 | 0.948 | 0.901 | 0.9538 | 0.909 |
| MLP / DNN (Proposed) | 0.886 | 0.705 | 0.785 | 0.876 | 0.958 | 0.915 | 0.9616 | 0.924 |
Source: Researchers' calculations.
Show original (as in PDF)
The MLP achieves the highest test-set AUROC (0.9616), confirming its superior global discriminatory ability across all classification thresholds. The AUPRC for the distressed class, a metric specifically suited to imbalanced datasets, is also highest for the MLP (0.924), closely followed by Logistic Regression (0.922). The F1-score for the distressed class ranks as: LR (0.815) > MLP (0.785) > RF (0.744). Collectively, these per-class metrics reveal that no single model dominates all metrics simultaneously; the MLP offers the best overall discriminatory power (AUROC/AUPRC), while LR offers the best distress-specific F1, reflecting its linear boundary's alignment with this particular dataset's class geometry.
MLP Learning Curves and Overfitting Verification
To verify the effectiveness of overfitting controls, the MLP was retrained on the SMOTE-augmented training pool (N ≈ 764 after oversampling) with early stopping active (patience = 20, monitor = validation loss, validation fraction = 0.15). Training terminated at epoch 34 of a maximum 300, with a final training loss of 0.1474. The validation accuracy curve stabilised between epochs 15 and 34 without deterioration, confirming that the early-stopping mechanism successfully halted training at the optimal generalisation point and that no overfitting episode was detected.
Figure 3. MLP Learning Curves (MC6: Overfitting Controls)
Training loss curve (binary cross-entropy vs. epoch, y-axis) for the MLP model. The loss decreases monotonically from epoch 1 to approximately epoch 25, then stabilises. The vertical dashed red line marks the early-stopping epoch (epoch 34), which coincides with the model's best validation performance. The gap between training loss and validation loss remains narrow throughout, confirming controlled generalisation without overfitting.
Validation accuracy curve across epochs. Accuracy improves rapidly in early epochs (1–15), plateaus at approximately 0.87–0.88, and does not decline prior to early stopping, evidence that the network generalises stably rather than overfitting.
ROC and Precision-Recall Curves
Figure 4. ROC Curves & Precision-Recall Curves (Held-Out Test Set)
Figure 4 presents the ROC curves for all three models evaluated on the held-out test set. The MLP curve (AUROC = 0.9616) lies above those of RF (0.9538) and LR (0.9586) for the majority of the threshold range, particularly in the low false-positive-rate region (FPR < 0.10), the operationally critical zone for financial oversight, where very few false alarms are tolerable. The substantial deviation of all curves from the diagonal (random-guess baseline; AUROC = 0.50) confirms that the 15 financial ratios carry robust predictive signal regardless of modelling approach.
ROC curves for Logistic Regression (blue, AUROC = 0.9586), Random Forest (orange, AUROC = 0.9538), and MLP/DNN (green, AUROC = 0.9616) on the held-out test set (N = 140). X-axis: False Positive Rate (1 − Specificity); Y-axis: True Positive Rate (Sensitivity). Dashed diagonal: random baseline (AUROC = 0.50). The MLP curve marginally dominates in the low-FPR region. All models show dramatic superiority over random classification.
The Precision-Recall curves for the distressed class, computed as precision = TP/(TP + FP) and recall = TP/(TP + FN) at each classification threshold. The AUPRC values (LR = 0.922, RF = 0.909, MLP = 0.924) are substantially above the no-skill baseline (equal to the proportion of minority-class observations = 0.314), confirming effective minority-class detection. The MLP curve maintains higher precision levels at recall values above 0.75, suggesting superior reliability when identification of a large fraction of distressed enterprises is required.
Precision-Recall curves for the distressed class (Class 0). X-axis: Recall; Y-axis: Precision. The MLP curve (green, AUPRC = 0.924) lies above LR (blue, 0.922) and RF (orange, 0.909) at high-recall thresholds. The horizontal dashed line marks the no-skill baseline (prevalence = 31.4%).
Permutation Variable Importance Analysis
To enhance model interpretability, permutation importance was computed for the MLP model using 30 permutation repeats on the held-out test set, with AUROC as the scoring metric. Table 9 presents results ranked by mean AUROC decrease.
The permutation importance analysis yields theoretically coherent and practically interpretable findings. Return on Equity (R4) emerges as the single most important predictor (mean ΔAUROC = −0.0273 ± 0.0117), reflecting the central role of equity profitability as a signal of financial fragility: enterprises with consistently low or negative ROE are systematically unable to sustain operations from own capital, rendering them structurally vulnerable to external shocks. This finding is consistent with the financial distress literature (Ossi et al. 2023).
Payables Turnover (R7) ranks second (ΔAUROC = −0.0091 ± 0.0100). This ratio captures how rapidly an enterprise settles its supplier obligations; a low payables turnover indicating delayed payments is a well-documented precursor to liquidity deterioration, reflecting either cash scarcity or deliberate payment deferrals to preserve working capital. Its prominence in the Algerian SME context likely reflects the prevalence of trade credit as a primary financing mechanism in a bank-constrained environment.
| Rank | Ratio | Category | Mean ΔAUROC | ± SD |
|---|---|---|---|---|
| 1 | R4 – Return on Equity (ROE) | Profitability | −0.0273 | 0.0117 |
| 2 | R7 – Payables Turnover | Activity | −0.0091 | 0.0100 |
| 3 | R13 – Permanent Financing Ratio | Leverage | −0.0069 | 0.0064 |
| 4 | R5 – Return on Assets (ROA) | Profitability | −0.0029 | 0.0029 |
| 5 | R6 – Net Profit Margin | Profitability | −0.0025 | 0.0029 |
| 6 | R8 – Inventory Turnover | Activity | −0.0024 | 0.0023 |
| 7 | R15 – Interest Coverage Ratio | Leverage | −0.0012 | 0.0020 |
| 8 | R9 – Receivables Turnover | Activity | −0.0012 | 0.0043 |
| 9 | R10 – Fixed Asset Turnover | Activity | −0.0009 | 0.0026 |
| 10 | R1 – Current Ratio | Liquidity | −0.0009 | 0.0015 |
| 11 | R2 – Quick Ratio | Liquidity | −0.0008 | 0.0035 |
| 12 | R12 – Debt Ratio | Leverage | −0.0007 | 0.0010 |
| 13 | R14 – Financial Independence Ratio | Leverage | −0.0002 | 0.0024 |
| 14 | R3 – Cash Ratio | Liquidity | +0.0002 | 0.0033 |
| 15 | R11 – Working Capital to Current Assets | Activity | +0.0013 | 0.0010 |
Source: Computed using scikit-learn 1.8.0 permutation importance.
Show original (as in PDF)
The Permanent Financing Ratio (R13) ranks third (ΔAUROC = −0.0069 ± 0.0064), measuring the extent to which long-term assets are financed by permanent capital. A ratio below 1.0 indicates that fixed assets are partially financed by short-term debt, a structurally unstable configuration that heightens exposure to refinancing risk. Notably, the three dominant predictors span all three primary financial performance dimensions (profitability, activity, and leverage), suggesting that multi-dimensional financial deterioration rather than failure in any single dimension is the hallmark of SME distress in Algeria.
Conversely, the liquidity ratios (R1–R3, ranks 10–14) and Working Capital to Current Assets (R11, Rank 15) show negligible or even marginally negative permutation importance. This finding is counter-intuitive given that liquidity ratios feature prominently in classical distress models (Altman, 1968). A plausible explanation is that, in this cross-sectional dataset, liquidity ratios are heavily correlated with profitability and activity ratios, and the MLP's non-linear weight distribution effectively subsumes liquidity's discriminant content within the more powerful profitability and activity signals.
Discussion
Overview of Principal Findings
This study set out to determine whether a carefully specified MLP-based Deep Neural Network (DNN) could reliably identify financially distressed Algerian SMEs from cross-sectional financial ratio data, a question that sits at the intersection of two literatures: machine learning for corporate failure prediction, and the particular institutional constraints of emerging-economy SME finance (Barboza and Altman 2024). The results confirm that this is possible, though with important nuance. All three models, Logistic Regression (LR), Random Forest (RF), and the MLP, achieved consistently high discriminatory power across five cross-validation folds (AUROC > 0.95), and the MLP attained the highest held-out test AUROC (0.9616) and distressed-class AUPRC (0.924). These headline figures, however, mask meaningful between-model differences that deserve careful interpretation rather than simple reporting.
Comparative Engagement with Prior Literature
The discriminatory performance achieved in this study is broadly consistent with, and in some respects exceeds, what has been reported in the closest analogous work. (Elhoseny et al. 2025) developed a multi-source deep learning model for financial distress prediction and reported AUROC values of 0.91–0.95 for balanced datasets. The present study achieves a held-out test AUROC of 0.9616 on an inherently imbalanced dataset (2.15:1 ratio) corrected via SMOTE, a result that is marginally but meaningfully superior, particularly given the additional challenge of class imbalance. This suggests that SMOTE-based oversampling, when applied strictly within cross-validation folds to prevent leakage, can recover much of the predictive signal that imbalance would otherwise suppress.
A closely parallel benchmark comes from (Lestari et al. 2025), who applied Artificial Neural Networks to predict financial distress in Indonesian companies, a data-scarce emerging-economy context directly analogous to Algeria, and reported an overall accuracy of 88.7%. The present MLP achieves 87.86% on the held-out test set, a near-identical figure. Far from being a disappointing result, this convergence is theoretically instructive: it implies a likely accuracy ceiling for standard financial ratio-based classifiers in emerging-economy settings, a ceiling shaped not by model quality but by the informational content of the 15 ratios themselves. Both studies draw on similar accounting dimensions (liquidity, profitability, activity, leverage), and the near-identical accuracy across different countries, architectures, and time periods suggests that this four-dimension ratio framework carries a relatively fixed and transferable signal about firm financial health in bank-constrained, low-transparency SME environments.
The comparison with (Veganzones and Séverin 2018), who applied deep learning to accounting data under information asymmetry conditions and documented that DNNs substantially outperform traditional statistical models when data distributions deviate from normality, also warrants attention. In the present study, Logistic Regression achieves a cross-validated AUROC of 0.9595, only marginally behind the MLP's 0.9532. This is not inconsistent with Chyan-long's finding: his data exhibited more severe distributional violations. The relatively competitive LR performance in our dataset, where leverage and profitability ratios cluster within narrow bands (SD ≈ 0.03–0.05 for profitability ratios), suggests that the feature space is partially quasi-linear, explaining why the non-linear MLP's advantage narrows in the cross-validated setting even as it dominates on the global AUROC metric.
Finally, specifically examined the interaction between imbalanced datasets and bankruptcy prediction accuracy, demonstrating that naive accuracy metrics systematically overstate classifier performance in such settings (Alaka et al. 2018). The present study's decision to report per-class F1-scores, AUROC, and AUPRC rather than relying on aggregate accuracy directly responds to this methodological concern, and the results confirm its importance: while aggregate accuracy across models ranges from 85.7% to 89.3%, the distressed-class recall ranges far more widely (65.9% for RF to 75.0% for LR), a spread that aggregate accuracy entirely conceals.
Interpretive Analysis: Why Do Models Diverge on Different Metrics?
The most intriguing finding in the comparative analysis is not which model wins overall, but why no single model dominates all metrics simultaneously (Hosaka 2019). The MLP achieves the highest AUROC (0.9616) and distressed-class AUPRC (0.924), but Logistic Regression yields the best distressed-class F1-score (0.815 vs. MLP's 0.785). Understanding this divergence requires thinking about what each metric measures and what it implies about the decision boundary.
AUROC measures discriminatory power across all possible classification thresholds: it asks how well a model can rank positive cases above negative ones, regardless of where the decision line is drawn. A model excels here when its predicted probabilities for the two classes form well-separated distributions. The MLP's non-linear architecture, with two hidden layers (64 and 32 ReLU neurons) and L2 regularisation, appears better at generating well-calibrated probability scores across the full threshold range, particularly in the operationally critical low-FPR region (FPR < 0.10) where financial oversight systems are typically deployed. This advantage makes the MLP the preferable choice for a deployed early-warning system, where the threshold can be tuned post-deployment to balance sensitivity and specificity.
The F1-score, by contrast, is evaluated at a fixed default threshold (0.5), and reflects the geometric mean of precision and recall at that specific operating point. The linear decision boundary of Logistic Regression may be better aligned with the quasi-linear geometry of the class separation in this particular dataset: the feature distributions for the two classes overlap in a pattern that a linear hyperplane can partition efficiently at the 0.5 threshold. This interpretation is consistent with the correlation structure of the data: profitability and activity ratios, which dominate the permutation importance ranking, exhibit relatively smooth, near-monotonic relationships with distress status, a feature space where linear classifiers often remain competitive with deep networks. Hosaka (2019) reached an analogous conclusion in a study of imaged financial ratios, noting that convolutional networks' advantages over linear models are most pronounced when the input features encode complex, non-additive interactions, conditions that may only partially hold in standard accounting ratio frameworks.
From a deployment perspective, this distinction is consequential. If the goal is to screen a large portfolio of SMEs for potential distress, ranking them from highest to lowest risk so that human analysts can investigate the top tier, AUROC is the right metric and the MLP is the right tool. If the goal is binary triage at a fixed threshold, LR's slightly superior F1 on the distressed class may warrant consideration. In practice, most financial oversight applications use adjustable thresholds, making AUROC and AUPRC the primary evaluation criteria.
Risks of AI-Based Financial Oversight
The deployment of AI-based prediction systems in financial oversight is not a neutral technical exercise: it introduces a set of systemic risks that shape how such tools should be designed, governed, and applied (Akaileh et al. 2025).
The relationship between financial ratios and distress outcomes is not stable across structural breaks: as demonstrated in the US banking context (Carmona et al. 2019), models trained before a structural shock substantially underperform post-shock without recalibration. Algeria's SME sector is particularly exposed to hydrocarbon revenue cycles that reshape credit availability, government procurement flows, and import costs. Continuous monitoring and periodic retraining on rolling windows of recent data are essential prerequisites for sustained model validity.
Conclusion
This study set out to develop and validate a practical deep learning framework for the early detection of financial distress among Algerian SMEs, a problem complicated by data scarcity, class imbalance, and the structural peculiarities of an emerging economy in which informal practices and hydrocarbon dependency shape firm-level financial behaviour in ways that standard models rarely accommodate.
The central contribution is methodological. By replacing an architecturally mismatched LSTM with an MLP-DNN suited to cross-sectional data, applying SMOTE oversampling within a rigorous five-fold stratified cross-validation protocol, and benchmarking the proposed model against Logistic Regression and Random Forest on identical data partitions, this study establishes the first fully reproducible deep learning benchmark for financial distress prediction in the Algerian SME context. The results confirm that the 15 financial ratios employed carry robust and stable predictive signal: all three models exceeded an AUROC of 0.95 in cross-validation, and the MLP achieved the highest held-out test AUROC (0.9616) and distressed-class AUPRC (0.924), validating its superior global discriminatory power.
The permutation importance analysis enriches the purely predictive findings with interpretable economic content. Return on Equity emerges as the dominant predictor, underlining that chronic inability to generate returns on owners' capital is the most reliable structural marker of impending distress in this context. Payables Turnover and Permanent Financing Ratio complete the top three, pointing to the central role of supplier credit management and long-term capital structure adequacy, both directly shaped by Algeria's bank-constrained financing environment and the dominance of trade credit as a substitute for formal debt. Notably, the conventional liquidity ratios that anchor classical distress models (Altman, 1968) rank near the bottom of the importance hierarchy, likely because their discriminant content is largely absorbed by the profitability and activity signals in the non-linear MLP architecture.
Beyond the empirical findings, this work illustrates a general principle for deep learning applications in resource-constrained settings: architectural sophistication must be calibrated to data characteristics rather than assumed a priori. With N = 700 observations and cross-sectional structure, the MLP does not dramatically outperform simpler competitors on all metrics; on the distressed-class F1-score, Logistic Regression is marginally superior. This outcome, far from undermining the case for deep learning, clarifies when its advantages materialise: the MLP's lead in AUROC and AUPRC, the metrics most relevant to threshold-agnostic deployment in an early-warning system, suggests it is the more appropriate choice for financial oversight applications where the cost of missed distress signals is asymmetrically high.
Several limitations constrain the generalisability of these findings. The sample is restricted to firms with verifiable financial records in the National Commercial Registry, which likely underrepresents enterprises operating in the informal sector, a group that may exhibit systematically different distress dynamics. The binary distress criterion, while operationally well-defined, does not capture the severity or reversibility of distress episodes. The model was trained on a single cross-section of 700 SMEs; as macroeconomic conditions in Algeria evolve, model drift may erode predictive validity without explicit recalibration. Finally, while permutation importance enhances transparency, the MLP remains a black-box model whose individual predictions may face adoption barriers in regulatory contexts mandating decision explainability.
Future research should explore three directions. First, the collection of true longitudinal panel data (repeated annual observations per firm) would justify the deployment of LSTM or Transformer-based architectures capable of detecting temporal deterioration trajectories rather than static cross-sectional snapshots. Second, integrating qualitative signals such as management report sentiment or banking relationship history through hybrid DNN-NLP architectures could substantially improve recall for the distressed minority class. Third, applying the validated pipeline to comparable MENA emerging economies (Morocco, Tunisia, Jordan) with local recalibration would test the transferability claims made in this study and could contribute to a regional early-warning infrastructure for SME financial health.
In sum, this research demonstrates that rigorously constructed deep learning frameworks can deliver reliable early-warning capability for SME financial distress even under the data constraints typical of emerging economies, provided that architectural choices, imbalance correction, and validation protocols are aligned with the actual structure of the data rather than imported uncritically from large-sample contexts.
Acknowledgments
We extend our sincere thanks and gratitude to Pr. Bendob Ali and Dr. Bentouir Naima for their moral support in our pursuit of this scientific field. We also express our deep appreciation to the staff of the Tax Inspectorate and Algeria’s National Commercial Registry in Ain Témouchent Province for facilitating the process of obtaining the necessary data (financial data for institutions).
Funding
This research received no specific grant from any funding agency in the public, commercial, or not-for-profit sectors. All expenses were covered by the personal resources of the authors.
Data Availability Statement
The data used in this study were obtained from the National Center for the Commercial Register (CNRC) in Ain Temouchent Province, Algeria.
Conflict of interest
The authors declare no conflict of interest.
AI Tools Statement
AI-based language editing tools were used to improve grammar and clarity. All intellectual content, interpretation, and conclusions are solely the responsibility of the authors.
Author contribution
| Role | Contributor(s) |
|---|---|
| Conceptualization | Benzeguir Abdelatif |
| Methodology | Benzeguir Abdelatif, Boughenama Ahmed Lamine |
| Software | Benzeguir Abdelatif, Boughenama Ahmed Lamine |
| Validation | Benzeguir Abdelatif, Boughenama Ahmed Lamine |
| Formal analysis | Benzeguir Abdelatif, Boughenama Ahmed Lamine |
| Investigation | Benzeguir Abdelatif, Boughenama Ahmed Lamine, Bouraada Houria |
| Resources | Bouraada Houria |
| Data curation | Benzeguir Abdelatif |
| Writing – original draft | Benzeguir Abdelatif, Boughenama Ahmed Lamine, Bouraada Houria, Haoulia Yehya |
| Writing – review & editing | Benzeguir Abdelatif, Boughenama Ahmed Lamine |
| Visualization | Benzeguir Abdelatif, Boughenama Ahmed Lamine |
| Supervision | Haoulia Yehya, Bouraada Houria |
| Project administration | None |
| Funding acquisition | None |
References
- Akaileh, M., S. K. H. Alshraah, A. F. A. Alomari, and N. K. A. Almaaitah. 2025. The Role of Artificial Intelligence in Enhancing Decision Making Processes in Financial Risk Management. Journal of Business and Finance Economy, 10(01): 1041–56. https://asjp.cerist.dz/en/article/265934.
- Alaka, H. A., L. O. Oyedele, H. A. Owolabi, V. Kumar, S. O. Ajayi, O. O. Akinade, and M. Bilal. 2018. Systematic Review of Bankruptcy Prediction Models: Towards a Framework for Tool Selection. Expert Systems with Applications, 94(March): 164–84. https://doi.org/10.1016/j.eswa.2017.10.040.
- Barboza, F., and E. Altman. 2024. Predicting Financial Distress in Latin American Companies: A Comparative Analysis of Logistic Regression and Random Forest Models. The North American Journal of Economics and Finance, 72(May): 102158. https://doi.org/10.1016/j.najef.2024.102158.
- Borges, A., and M. Carvalho. 2025. Short- and Long-Term Financial Distress Prediction in SMEs: A Survival Model Comparison. Journal of Applied Statistics, May 16, 1–30. https://doi.org/10.1080/02664763.2025.2501166.
- Carmona, P., F. Climent, and A. Momparler. 2019. Predicting Failure in the U.S. Banking Sector: An Extreme Gradient Boosting Approach. International Review of Economics & Finance, 61(May): 304–23. https://doi.org/10.1016/j.iref.2018.03.008.
- Cultrera, L., and X. Brédart. 2016. Bankruptcy Prediction: The Case of Belgian SMEs. Review of Accounting and Finance, 15(1): 101–19. https://doi.org/10.1108/RAF-06-2014-0059.
- Dong, X., and D. S. Williamson. 2020. Towards Real-World Objective Speech Quality and Intelligibility Assessment Using Speech-Enhancement Residuals and Convolutional Long Short-Term Memory Networks. The Journal of the Acoustical Society of America, 148(5): 3348–59. https://doi.org/10.1121/10.0002702.
- Elhoseny, M., N. Metawa, G. Sztano, and I. M. El-hasnony. 2025. Deep Learning-Based Model for Financial Distress Prediction. Annals of Operations Research, 345(2–3): 885–907. https://doi.org/10.1007/s10479-022-04766-5.
- Hosaka, T. 2019. Bankruptcy Prediction Using Imaged Financial Ratios and Convolutional Neural Networks. Expert Systems with Applications, 117(March): 287–99. https://doi.org/10.1016/j.eswa.2018.09.039.
- Jan, C. 2021. Financial Information Asymmetry: Using Deep Learning Algorithms to Predict Financial Distress. Symmetry, 13(3): 443. https://doi.org/10.3390/sym13030443.
- Jeeri, A. R. 2025. An Exploration of Neural Networks, Deep Neural Networks and Their Architectures. https://doi.org/10.13140/RG.2.2.22853.77282.
- Keasey, K., J. Pindado, and L. Rodrigues. 2015. The Determinants of the Costs of Financial Distress in SMEs. International Small Business Journal: Researching Entrepreneurship, 33(8): 862–81. https://doi.org/10.1177/0266242614529317.
- Khoja, L., M. Chipulu, and R. Jayasekera. 2019. Analysis of Financial Distress Cross Countries: Using Macroeconomic, Industrial Indicators and Accounting Data. International Review of Financial Analysis, 66 (November): 101379. https://doi.org/10.1016/j.irfa.2019.101379.
- Lestari, R., Lasmanah, and N. Fasya. 2025. Financial Distress Prediction in Indonesian Companies Using Artificial Neural Networks (ANN). Asian Journal of Economics, Business and Accounting, 25(9): 287–301. https://doi.org/10.9734/ajeba/2025/v25i91973.
- Nadir, M., S. Alam, M. Ali, and F. Rahim. 2025. Financial Literacy and SME Financial Distress Studies: A Systematic Literature Review. Multidisciplinary Reviews, 9(2): 2026093. https://doi.org/10.31893/multirev.2026093.
- Ferli, O., M. Z. Alfarrel, A. N. Yasmin, and N. Nadiya. 2023. Financial Distress Determinant Analysis of SMEs on the Indonesia Stock Exchange. Insight Journal, 10(01): 159–68. https://doi.org/10.24191/insightjournal.v10i0.22340.
- THE TRADE REGISTER Indicators and Statistics. 2023. National Center for the Commercial Register. https://www.benaichabadis.com/REVUE_FRANCAIS_2023.pdf.
- Touaiti, M. 2018. Parametric Inferential Statistical Methods. Amman: Dar Hamed for Publishing and Distribution.
- Veganzones, D., and E. Séverin. 2018. An Investigation of Bankruptcy Prediction in Imbalanced Datasets. Decision Support Systems, 112 (August): 111–24. https://doi.org/10.1016/j.dss.2018.06.011.
- Zehouani, M. 2022. Applications of Artificial Intelligence Models to Predict Financial Default Risks in Economic Institutions: A Case Study. PhD Thesis, University of Ghardaia. ResearchGate.