CoChat

Regression applied to legal judgments to predict compensation for immaterial damage

Dal Pont, Thiago Raulino, Sabo, Isabela Cristina, Hübner, Jomi Fred, Rover, Aires José · 2023 · PeerJ Computer Science
Cited by 2

The DOI matches its Crossref record; 10 of the 10 references it cites were found in a registry or an index.

Abstract

Immaterial damage compensation is a controversial matter in the judicial practice of several law systems. Due to a lack of criteria for its assessment, the judge is free to establish the value based on his/her conviction. Our research motivation is that knowing the estimated amount of immaterial damage compensation at the initial stage of a lawsuit can encourage an agreement between the parties. We thus investigate text regression techniques to predict the compensation value from legal judgments in which consumers had problems with airlines and claim for immaterial damage. We start from a simple pipeline and create others by adding some natural language processing (NLP) and machine learning (ML) techniques, which we call adjustments. The adjustments include N-Grams Extraction, Feature Selection, Overfitting Avoidance, Cross-Validation and Outliers Removal. An special adjustment, Addition of Attributes Extracted by the Legal Expert (AELE), is proposed as a complementary input to the case text. We evaluate the impact of adding these adjustments in the pipeline in terms of prediction quality and execution time. N-Grams Extraction and Addition of AELE have the biggest impact on the prediction quality. In terms of execution time, Feature Selection and Overfitting Avoidance have significant importance. Moreover, we notice the existence of pipelines with subsets of adjustments that achieved better prediction quality than a pipeline with them all. The result is promising since the prediction error of the best pipeline is acceptable in the legal environment. Consequently, the predictions will likely be helpful in a legal environment.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.7717/peerj-cs.1225

Cites

10 of 10 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 10 references

Research works printed but not linked: 51

  1. Aggarwal, 2018, Machine learning for Tngext, 1, 10.1007/978-3-319-73531-3_1 · DOI
  2. Aggarwal, 2012, Mining text data, 9781461432, 10.1007/978-1-4614-3223-4 · DOI · Paper page
  3. Baeza-Yates, 1999, Modern information retrieval
  4. Benjamim, 2015, O transporte aéreo e o código de defesa do consumidor, Revista de Direito do Consumidor, 100, 23
  5. Blei, 2003, Latent dirichlet allocation, Journal of Machine Learning Research, 3, 993, 10.1162/jmlr.2003.3.4-5.993 · DOI · Paper page
  6. Bojanowski, 2016, Enriching word vectors with subword information, Transactions of the Association for Computational Linguistics, 5, 135, 10.1162/tacl_a_00051 · DOI · Paper page
  7. Boselina, 2019, Responsabilidade Civil
  8. Breiman, 1996, Bagging predictors, Machine Learning, 24, 123, 10.1007/BF00058655 · DOI · Paper page
  9. Breiman, 2017, Classification and regression trees, 10.1201/9781315139470 · DOI · Paper page
  10. Chandrashekar, 2014, A survey on feature selection methods, Computers and Electrical Engineering, 40, 16, 10.1016/j.compeleceng.2013.11.024 · DOI · Paper page
  11. Chen, 2016, XGBoost, 13–17-August, 785, 10.1145/2939672.2939785 · DOI · Paper page
  12. CNJ, 2020, Justiça em Números 2020
  13. Cover, 2005, Elements of information theory, 10.1002/047174882X · DOI · Paper page
  14. Dal Pont, 2020, Impact of text specificity and size on word embeddings performance: an empirical evaluation in brazilian legal domain, 12319, 521
  15. Devore, 2011, Probability and statistics for engineering and the sciences
  16. Dhanani, 2022, Effective and scalable legal judgment recommendation using pre-learned word embedding, Complex & Intelligent Systems, 8, 3199, 10.1007/s40747-022-00673-1 · doi:10.1007/s40747-022-00673-1
  17. Diniz, 2020, Proteção jurídica da existencialidade, Revista Eletrônica Direito e Sociedade, 8, 181, 10.18316/redes.v8i2.6885 · doi:10.18316/redes.v8i2.6885
  18. Draper, 1998, Applied regression analysis. Wiley series in probability and mathematical statistics, 10.1002/9781118625590 · DOI · Paper page
  19. Drucker, 1997, Support vector regression machines, Advances in Neural Information Processing Systems, 1, 155
  20. Freeman, 1995, Outliers in statistical data, The Journal of the Operational Research Society, 46, 1034, 10.1057/jors.1995.142 · DOI · Paper page
  21. Friedman, 2000, Greedy function approximation: a gradient boosting machine, Annals of Statistics, 29, 1189, 10.1214/aos/1013203451 · DOI · Paper page
  22. García, 2015, Data preprocessing in data mining, 10.1007/978-3-319-10247-4 · DOI · Paper page
  23. Gonçalves, 2020, Responsabilidade civil
  24. Hastie, 2009, The elements of statistical learning, The Mathematical Intelligencer, 27, 83
  25. Hawkins, 2004, The problem of overfitting, Journal of Chemical Information and Computer Sciences, 44, 1, 10.1021/ci0342472 · DOI · Paper page
  26. Hodge, 2004, A survey of outlier detection methodologies, Artificial Intelligence Review, 22, 85, 10.1023/B:AIRE.0000045502.10941.a9 · doi:10.1023/b:aire.0000045502.10941.a9 · Paper page
  27. Hoerl, 1970, Ridge regression: applications to nonorthogonal problems, Technometrics, 12, 69, 10.1080/00401706.1970.10488635 · DOI · Paper page
  28. Jurafsky, 2019, Speech and language processing: an introduction to natural language processing, computational linguistics, and speech recognition
  29. Karystinos, 2000, On overfitting, generalization, and randomly expanded training sets, IEEE Transactions on Neural Networks, 11, 1050, 10.1109/72.870038 · DOI · Paper page
  30. Kherwa, 2017, Latent semantic analysis: an approach to understand semantic of text, 10.1109/CTCEEC.2017.8455018 · doi:10.1109/ctceec.2017.8455018
  31. Kotu, 2019, Data science: concepts and practice
  32. Kowsari, 2019, Text classification algorithms: a survey, Information (Switzerland), 10, 150, 10.3390/info10040150 · DOI · Paper page
  33. Kuhn, 2013, Applied predictive modeling, 10.1007/978-1-4614-6849-3 · DOI · Paper page
  34. Lee, 1999, Cleansing data for mining and warehousing, 751
  35. Martino, 2021, Prilj: an efficient two-step method based on embedding and clustering for the identification of regularities in legal case judgments, Artificial Intelligence and Law, 30, 359, 10.1007/s10506-021-09297-1 · DOI
  36. Melo, 2012, Dano Moral nas Relações de Consumo
  37. Mendes-Moreira, 2012, Ensemble approaches for regression, ACM Computing Surveys, 45, 1, 10.1145/2379776.2379786 · DOI · Paper page
  38. Miao, 2016, A survey on feature selection, Procedia Computer Science, 91, 919, 10.1016/j.procs.2016.07.111 · DOI · Paper page
  39. Ngo-Ye, 2014, The influence of reviewer engagement characteristics on online review helpfulness: a text regression model, Decision Support Systems, 61, 47, 10.1016/j.dss.2014.01.011 · DOI · Paper page
  40. Pedregosa, 2012, Scikit-learn: machine learning in python, Journal of Machine Learning Research, 12, 2825
  41. Peixoto, 2019, Inteligência Artificial e Direito, 1
  42. Pittaras, 2020, Text classification with semantically enriched word embeddings, Natural Language Engineering, 27, 1, 10.1017/S1351324920000170 · DOI
  43. Sabo, 2021, Clustering of Brazilian legal judgments about failures in air transport service: an evaluation of different approaches, Artificial Intelligence and Law, 30, 1, 10.1007/s10506-021-09287-3 · DOI
  44. Sadiku, 2020, Immaterial damage and some types of its compensation, Prizren Social Science Journal, 4, 50, 10.32936/pssj.v4i1.142 · doi:10.32936/pssj.v4i1.142
  45. Schapire, 1999, A brief introduction to boosting, IJCAI International Joint Conference on Artificial Intelligence, 2, 1401
  46. Serras, 2022, verbert: automating brazilian case law document multi-label categorization using BERT, CoRR, 10.48550/arXiv.2203.06224 · arXiv · doi:10.48550/arxiv.2203.06224
  47. Souza, 2020, Bertimbau: pretrained bert models for brazilian portuguese, 403, 10.1007/978-3-030-61377-8_28 · DOI · Paper page
  48. Tibshirani, 1996, Regression shrinkage and selection via the lasso, Journal of the Royal Statistical Society: Series B (Methodological), 58, 267, 10.1111/j.2517-6161.1996.tb02080.x · DOI · Paper page
  49. Xu, 2020, Utilizing the platform economy effect through ewom: does the platform matter?, International Journal of Production Economics, 227, 107663, 10.1016/j.ijpe.2020.107663 · DOI
  50. Yeung, 2019, Effects of inserting domain vocabulary and fine-tuning bert for German legal language. MA thesis
  51. Zou, 2005, Addendum: regularization and variable selection via the elastic net, Journal of the Royal Statistical Society: Series B (Statistical Methodology), 67, 768, 10.1111/j.1467-9868.2005.00527.x · DOI · Paper page

Metadata

Authors
Dal Pont, T. R., Sabo, I. C., Hübner, J. F., & Rover, A. J.
Venue
PeerJ Computer Science
Publisher
PeerJ
Published
2023-03-23
Volume
9
Pages
e1225
ISSN
2376-5992
Cited by
2
References
10
Language
en
Funders
  • CNPq
  • CAPES

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

How to cite

Cite CoChat for the checks on this page, and the paper for its own findings.

This page
CoChat. (2026). Citation check: Regression applied to legal judgments to predict compensation for immaterial damage. https://app.cochat.ai/papers/10.7717/peerj-cs.1225
The paper
Dal Pont, T. R., Sabo, I. C., Hübner, J. F., & Rover, A. J. (2023). Regression applied to legal judgments to predict compensation for immaterial damage. PeerJ Computer Science. https://doi.org/10.7717/peerj-cs.1225

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.