Have a personal or library account? Click to login
Predicting the Amount of Compensation for Harm Awarded by Courts Using Machine-Learning Algorithms Cover

Predicting the Amount of Compensation for Harm Awarded by Courts Using Machine-Learning Algorithms

Open Access
|May 2024

Figures & Tables

Figure 1.

Distribution of Amounts Awarded as Compensation for Harm Suffered and Their Logarithms
Distribution of Amounts Awarded as Compensation for Harm Suffered and Their Logarithms

Figure 2.

Distribution of Amounts Awarded as Compensation for Harm Suffered among the 25 Most Impactful Features
Distribution of Amounts Awarded as Compensation for Harm Suffered among the 25 Most Impactful Features

Figure 3.

Partial Dependence Plots for the Most Impactful Features
Partial Dependence Plots for the Most Impactful Features

Figure 4.

Example Model Prediction: Judgement of the Regional Court in Gliwice Dated August 31, 2014, File Number I C 1946/14
Example Model Prediction: Judgement of the Regional Court in Gliwice Dated August 31, 2014, File Number I C 1946/14

Figure 5.

Example Model Prediction: Judgement of the Regional Court in Zambrów Dated September 24, 2015, File Number I C 335/15
Example Model Prediction: Judgement of the Regional Court in Zambrów Dated September 24, 2015, File Number I C 335/15

Tokens Characterized by the Highest Differences Between Maximum and Minimum Value of Their Partial Dependence Plots

IdTokenAverage awarded compensation when token does not occurMinimum awarded compensationMaximum awarded compensationDifference between maximum and minimum awarded compensation
1pension21,027.8021,027.80 (0)38,725.99 (5)17,698.18
2family16,532.2616,532.26 (0)34,000.38 (16)17,468.12
3hospital20,559.3020,559.30 (0)35,327.96 (20)14,768.65
4fracture19,852.6219,852.62 (0)30,671.07 (25)10,818.46
5year19,473.5119,473.51 (0)28,048.15 (10)8,574.65
6life19,712.1419,712.14 (0)25,905.34 (36)6,193.20
7dead22,645.5022,645.50 (0)28,181.21 (7)5,535.71
8zloty_monthly22,557.2922,557.29 (0)27,708.96 (29)5,151.67
9extend22,570.7622,570.76 (0)26,658.50 (6)4,087.74
10substantial22,346.3522,346.35 (0)25,140.15 (19)2,793.80
11bones23,056.9623,056.96 (0)25,536.80 (25)2,479.84
12child22,439.8522,439.85 (0)24,908.14 (39)2,468.29
13bond23,108.5423,108.54 (0)25,423.49 (24)2,314.95
14cervical23,675.4521,368.98 (22)23,675.45 (0)2,306.47
15disorders22,655.9222,655.92 (0)24,947.08 (17)2,291.17
16collar23,419.0022,944.30 (11)23,419.00 (0)2,264.04
17disability22,944.3022,944.30 (0)25,129.94 (5)2,185.64
18family_bond23,262.1023,262.10 (0)25,430.35 (10)2,168.25
19twist23,417.0421,541.70 (7)23,417.04 (0)1,875.34
20future22,640.7922,640.79 (0)24,386.69 (22)1,745.90

Error Measures Obtained on a Test Set With Different Algorithms Applied

Algorithm appliedPredictorsRoot mean squared errorMean Absolute percentage errorRoot median squared errorMedian absolute percentage error
OLSToken counts308,207.87112.3211,747.5552.79
TF-IDF100,743.4894.5911,759.0749.25
LASSOToken counts287,706.24109.6811,474.5252.64
TF-IDF95,976.8293.4611,435.7948.64
Random forestsToken counts75,268.1286.4311,064.2847.16
TF-IDF74,674.5588.5910,518.7548.13
XGBoostToken counts94,271.95105.2712,654.4652.18
TF-IDF192,230.66102.7912,821.4551.48
Multilingual BERT-95,665.94426.4538,062.4488.03

Error Measures Obtained on a Test Set With Different Algorithms Applied and Models’ Overestimates Assumed as Not Errors

Algorithm appliedPredictorsRoot mean squared errorMean Absolute percentage errorRoot median squared errorMedian absolute percentage error
OLSToken counts61,829.0423.921,024.795.29
TF-IDF67,563.7721.83178.391.08
LASSOToken counts62,019.8923.831,061.225.57
TF-IDF68,215.3221.78129.660.69
Random forestsToken counts74,939.2423.111,729.418.01
TF-IDF73,939.2422.801,741.939.02
XGBoostToken counts71,414.4223.831,069.247.93
TF-IDF65,657.9924.131,209.667.68
Multilingual BERT-82,212.2229.040.000.00
DOI: https://doi.org/10.2478/ceej-2024-0015 | Journal eISSN: 2543-6821 | Journal ISSN: 2544-9001
Language: English
Page range: 214 - 232
Published on: May 26, 2024
Published by: Sciendo
In partnership with: Paradigm Publishing Services
Publication frequency: 1 times per year

© 2024 Maciej Świtała, published by Sciendo
This work is licensed under the Creative Commons Attribution 4.0 License.