The research used legal-analysis and economic-statistical tools. From complementary perspectives, the two units addressed the question of assessing the effectiveness of early warning tools, with particular regard to SMEs.
AI-EWTFrom the legal framework to predictive analysis of SME distress.
Analysis paths
Law and economic-statistical analysis
The legal research and the economic-statistical analysis contributed to the assessment of warning tools from different but coordinated perspectives.
Two complementary perspectives.
01Legal analysis. The legal analysis examined the regulatory framework, including the Italian Code of Business Crisis and Insolvency, Directive (EU) 2019/1023 and the experience of other European legal systems, to identify practical weaknesses and assess whether the warning tools were consistent with early detection. The published collective volume brings together the outcomes of this phase.
02Economic-statistical analysis. The economic-statistical analysis covered financial data on Italian companies available in AIDA, the preparation of time series and the comparison of statistical, machine-learning and deep-learning techniques. The script published on this page documents this technical phase.
Publications
Legal research
The volume La gestione iniziale della crisi (The initial management of the crisis) explores early warning measures, the potential of artificial intelligence in early crisis detection, and pre-insolvency restructuring tools.
Cacucci EditoreLa gestione iniziale della crisi (Bari, 2024).
Outcome of the method
The model employed
The economic-statistical research, developed in dialogue with the legal research, employed the model documented in the published R script. The file prepares the data, compares several model families and organises temporal evaluations. The next section describes the operations that can be verified in the code.
Data and time seriesModel comparisonTemporal evaluations
Research models
The experimental workflow described in the R script
The script published within the PRIN 2022 - AI-EWT project experiments with several model families to classify the allert target: logistic regression, a feed-forward neural network and a multi-input LSTM network.
The file organises temporal evaluations for 2020, 2021 and 2022. The construction of the allert target is external to the published script; the page therefore does not assign an unsupported time horizon or probability to its output.
Pipeline
Processing Pipeline
The pipeline below summarises only operations visible in the TXT, without adding performance figures, sample sizes or techniques not documented in the file.
Phase 1Sample
AIDA import, S.r.l. filter, ordering and continuous annual series.
Phase 2Selection
Normalisation, likelihood-ratio and correlation reduction.
Phase 3Models
Logistic regression, feed-forward network and multi-input LSTM.
Phase 4Evaluation
2020–2022 tests, ROC, Youden threshold and confusion matrix.
Code
Explore the published file
The file is displayed in full and without modification. It is technical material dedicated to industry experts and documents data preparation, training and evaluation.
Data notice: additional data used in the research are not published with the script because they are covered by the data providers' copyright and related usage restrictions. The TXT is not a standalone prediction service executable in the browser.
Test the published script, which combines a three-year financial sequence, four static variables and region. Choose an example or build a scenario to see the simulated flow.
Choose an example: the data used will appear below the cards before the outcome.
Data entered automaticallySelected scenario
Three financial years
Four static aspects
Region
Choose the data for the three branches and check whether the alert mechanism is activated in the scenario you build.
BRANCH 01
Financial sequence
In the TXT: three years and 51–53 time-dependent variables processed by an LSTM. Here each year is summarised by an understandable choice.
BRANCH 02
Illustrative static aspects
These are examples of common events used in the simulator to represent the static-variable branch in an understandable way.
BRANCH 03
Region · embedding
The algorithm also studies region. In the simulator, the regional contribution is generated randomly between 0 and 6 points, does not depend on the selected region and serves an educational purpose only.
Check whether the selected data activate the alert mechanism. The 0–100 index is for demonstration only.
Privacy: the data entered remain in your browser and are neither transmitted nor stored.
Simplified educational simulation: it does not estimate an insolvency probability or replace a professional assessment. The simulator does not exactly reproduce the trained model because some data are excluded for computational reasons.
Simulation outcome
Is the alert activated?
Demonstration index 0–100
0/100
WAITING FOR CALCULATION
Alert mechanism activation 0–100
Complete the three branches or choose a scenario.
Because the index exceeds 50%, the alert mechanism is activated. Under the legislative proposal, a positive result triggers an automatic notification to company management and the control body or external auditor, where appointed, so that appropriate measures can be taken.
Factors with the greatest effect
Details will appear after calculation.
How it is calculated
The three-year sequence accounts for 70% of the educational calculation; within it the years weigh 20%, 30% and 50%. The four illustrative static aspects account for 30% in equal parts. Each new region selection generates a random demonstration contribution between 0 and 6 points.
The diagram follows the structure visible in the script: LSTM branch, dense branch, regional embedding and concatenation. The formula and intensities exist only for this demonstration and are not coefficients of the research model.