journal article·2022-01-29Open access

Building a Production-Ready Multi-Label Classifier for Legal Documents with Digital-Twin-Distiller

Gergely Márk Csányi, Renátó Vági, Dániel Nagy, István Üveges, János Pál Vadász, Andrea Megyeri, Tamás Orosz

Applied Sciences· Volume 12· Issue 3

Abstract

One of the most time-consuming parts of an attorney’s job is finding similar legal cases. Categorization of legal documents by their subject matter can significantly increase the discoverability of digitalized court decisions. This is a multi-label classification problem, where each relatively long text can fit into more than one legal category. The proposed paper shows a solution where this multi-label classification problem is decomposed into more than a hundred binary classification problems. Several approaches have been tested, including different machine-learning and text-augmentation techniques to produce a practically applicable model. The proposed models and the methodologies were encapsulated and deployed as a digital-twin into a production environment. The performance of the created machine learning-based application reaches and could also improve the human-experts performance on this monotonous and labor-intensive task. It could increase the e-discoverability of the documents by about 50%.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Artificial Intelligence in Law · Digital and Cyber Forensics · Imbalanced Data Classification Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

MONTANA Knowledge Management Ltd., H-1097 Budapest, Hungary

Doctoral School of Law, Eötvös Loránd University, Egyetem Square 1-3, H-1053 Budapest, Hungary

Doctoral School in Linguistics, University of Szeged, Egyetem Street 2, H-6722 Szeged, Hungary

Institute of the Information Society, National University of Public Service, H-1083 Budapest, Hungary

Wolters Kluwer Hungary Ltd., Budafoki Way 187-189, H-1117 Budapest, Hungary

Funding

National Research, Development and Innovation Office

References (60)

Show source-provided references
1. Cheng, T.T., Cua, J.L., Tan, M.D., Yao, K.G., and Roxas, R.E. (2009, January 20–22). Information extraction from legal documents. Proceedings of the IEEE 2009 Eighth International Symposium on Natural Language Processing, Bangkok, Thailand.10.1109/SNLP.2009.5340925 ↗
2. Song, D., Vold, A., Madan, K., and Schilder, F. (Inf. Syst., 2021). Multi-label legal document classification: A deep learning-based approach with label-attention and domain-specific pre-training, Inf. Syst., 2021, in press.10.1016/j.is.2021.101718 ↗
3. Wan, L., Papageorgiou, G., Seddon, M., and Bernardoni, M. (2019). Long-length Legal Document Classification. arXiv.
4. Wei, F., Qin, H., Ye, S., and Zhao, H. (2018, January 10–13). Empirical study of deep learning for text classification in legal document review. Proceedings of the 2018 IEEE International Conference on Big Data (Big Data), Seattle, WA, USA.10.1109/BigData.2018.8622157 ↗
5. Text summarization from legal documents: A survey10.1007/s10462-017-9566-2 ↗
6. Improving legal document summarization using graphical models
7. Software architecture for document anonymization10.1016/j.entcs.2015.05.006 ↗
8. Oksanen, A., Tamper, M., Tuominen, J., Hietanen, A., and Hyvönen, E. (2019, January 11–13). ANOPPI: A Pseudonymization Service for Finnish Court Documents. Proceedings of the JURIX, Madrid, Spain.
9. Csányi, G.M., Nagy, D., Vági, R., Vadász, J.P., and Orosz, T. (2021). Challenges and Open Problems of Legal Document Anonymization. Symmetry, 13.10.3390/sym13081490 ↗
10. van Opijnen, M., Peruginelli, G., Kefali, E., and Palmirani, M. (2021, January 05). On-Line Publication of Court Decisions in the EU: Report of the Policy Group of the Project ‘Building on the European Case Law Identifier’. Available online: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3088495.
11. Katz, D.M., Dolin, R., and Bommarito, M.J. (2021). Fastcase, and the Visual Understanding of Judicial Precedents. Legal informatics, Cambridge University Press.
12. Katz, D.M., Bommarito, M.J., and Blackman, J. (2017). A general approach for predicting the behavior of the Supreme Court of the United States. PLoS ONE, 12.10.1371/journal.pone.0174698 ↗
13. Predicting judicial decisions of the European Court of Human Rights: A natural language processing perspective10.7717/peerj-cs.93 ↗
14. Prison term prediction on criminal case description with deep learning
15. Using machine learning to predict decisions of the European Court of Human Rights10.1007/s10506-019-09255-y ↗
16. Sulea, O.M., Zampieri, M., Vela, M., and Van Genabith, J. (2017). Predicting the law area and decisions of french supreme court cases. arXiv.10.26615/978-954-452-049-6_092 ↗
17. Sun, Y.Y., Zhang, Y., and Zhou, Z.H. (2010, January 11–15). Multi-label learning with weak label. Proceedings of the Twenty-Fourth AAAI Conference on Artificial Intelligence, Atlanta, GA, USA.
18. Yang, S.J., Jiang, Y., and Zhou, Z.H. (2013, January 3–9). Multi-instance multi-label learning with weak label. Proceedings of the Twenty-Third International Joint Conference on Artificial Intelligence, Beijing, China.
19. Approach for Multi-Label Text Data Class Verification and Adjustment Based on Self-Organizing Map and Latent Semantic Analysis
20. Ahmed, N.A., Shehab, M.A., Al-Ayyoub, M., and Hmeidi, I. (2015, January 7–9). Scalable multi-label arabic text classification. Proceedings of the IEEE 2015 6th International Conference on Information and Communication Systems (ICICS), Amman, Jordan.10.1109/IACS.2015.7103229 ↗
21. Chidanand, A., Fred, D., and Weiss, S. (1994). Reuters-21578 Dataset, ACM Transactions on Information Systems; Association for Computing Machinery.
22. Maas, A., Daly, R.E., Pham, P.T., Huang, D., Ng, A.Y., and Potts, C. (2011, January 19–24). Learning word vectors for sentiment analysis. Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, Portland, OR, USA.
23. An Evolving Hybrid Deep Learning Framework for Legal Document Classification10.18280/isi.240410 ↗
24. Bambroo, P., and Awasthi, A. (2021, January 19–20). LegalDB: Long DistilBERT for Legal Document Classification. Proceedings of the IEEE 2021 International Conference on Advances in Electrical, Computing, Communication and Sustainable Technologies (ICAECT), Bhilai, India.10.1109/ICAECT49130.2021.9392558 ↗
25. A comparative study of automated legal text classification using random forests and deep learning10.1016/j.ipm.2021.102798 ↗
26. Šajatović, A., Buljan, M., Šnajder, J., and Bašić, B.D. (2019, January 2). Evaluating automatic term extraction methods on individual documents. Proceedings of the Joint Workshop on Multiword Expressions and WordNet (MWE-WN 2019), Florence, Italy.10.18653/v1/W19-5118 ↗
27. Pennington, J., Socher, R., and Manning, C.D. (2014, January 25–29). Glove: Global vectors for word representation. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar.10.3115/v1/D14-1162 ↗
28. Mikolov, T., Sutskever, I., Chen, K., Corrado, G.S., and Dean, J. (2013, January 5–8). Distributed representations of words and phrases and their compositionality. Proceedings of the Advances in Neural Information Processing Systems, NIPS 2013, Lake Tahoe, NV, USA.
29. Devlin, J., Chang, M.W., Lee, K., and Toutanova, K. (2018). Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv.
30. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., and Polosukhin, I. (2017). Attention is all you need. arXiv.
31. Orosz, T., Vági, R., Csányi, G.M., Nagy, D., Üveges, I., Vadász, J.P., and Megyeri, A. (2022). Evaluating Human versus Machine Learning Performance in a LegalTech Problem. Appl. Sci., 12.10.3390/app12010297 ↗
32. Mastropaolo, A., Pallante, F., and Radicioni, D.P. (2013, January 10–14). Legal Documents Categorization by Compression. Proceedings of the Fourteenth International Conference on Artificial Intelligence and Law (ICAIL ’13), Rome, Italy.10.1145/2514601.2514612 ↗
33. A statistical approach to mechanized encoding and searching of literary information10.1147/rd.14.0309 ↗
34. A statistical interpretation of term specificity and its application in retrieval10.1108/eb026526 ↗
35. Wikipedia (2021, January 05). Agglutinative Languages. Available online: https://en.wikipedia.org/wiki/Agglutinative_language.
36. Üveges, I., Csányi, G.M., Ring, O., and Orosz, T. (2022, January 27–28). Comparison of text augmentation methods in sentiment analysis of political texts. Proceedings of the XVIII Hungarian Computational Linguistics Conference (MSZNY 2022), Szeged, Hungary.
37. Németh, L., Trón, V., Halácsy, P., Kornai, A., Rung, A., and Szakadát, I. (2004, January 24–30). Leveraging the open source ispell codebase for minority language analysis. Proceedings of the LREC 2004—SALTMIL Workshop: First Steps in Language Documentation for Minority Languages, Lisbon, Portugal.
38. Analysis of variance (ANOVA)10.1016/0169-7439(89)80095-4 ↗
39. ANOVA—Principal component analysis and ANOVA—Simultaneous component analysis: A comparison10.1002/cem.1400 ↗
40. Csányi, G., and Orosz, T. (2021). Comparison of data augmentation methods for legal document classification. Acta Technica Jaurinensis.10.14513/actatechjaur.00628 ↗
41. Joachims, T. (1998). Text categorization with support vector machines: Learning with many relevant features. European Conference on Machine Learning, Springer.10.1007/BFb0026683 ↗
42. An evaluation of statistical approaches to text categorization10.1023/A:1009982220290 ↗
43. Learning multi-label scene classification10.1016/j.patcog.2004.03.009 ↗
44. Learning from positive and unlabeled data: A survey10.1007/s10994-020-05877-5 ↗
45. Bekker, J., and Davis, J. (2018, January 2–7). Estimating the class prior in positive and unlabeled data through decision tree induction. Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence, New Orleans, LO, USA.10.1609/aaai.v32i1.11715 ↗
46. Scott, C. (2015). A rate of convergence for mixture proportion estimation, with application to learning from noisy labels. Artificial Intelligence and Statistics, PMLR.
47. Wu, M., Liu, F., and Cohn, T. (2018). Evaluating the utility of hand-crafted features in sequence labelling. arXiv.10.18653/v1/D18-1310 ↗
48. Combining Domain Knowledge Extraction With Graph Long Short-Term Memory for Learning Classification of Chinese Legal Documents10.1109/ACCESS.2019.2943668 ↗
49. An Ontology Driven Knowledge Block Summarization Approach for Chinese Judgment Document Classification10.1109/ACCESS.2018.2881682 ↗
50. Evaluating human versus machine learning performance in classifying research abstracts10.1007/s11192-020-03614-2 ↗
51. Gonçalves, T., and Quaresma, P. (2005). Evaluating Preprocessing Techniques in a Text Classification Problem, SBC-Sociedade Brasileira de Computação.
52. Joulin, A., Grave, E., Bojanowski, P., and Mikolov, T. (2016). Bag of tricks for efficient text classification. arXiv.10.18653/v1/E17-2068 ↗
53. Rehurek, R., and Sojka, P. (2011, January 25–28). Gensim—Statistical semantics in python. Proceedings of the EuroScipy 2011, Paris, France.
54. Marivate, V., and Sefara, T. (2020). Improving short text classification through global augmentation methods. International Cross-Domain Conference for Machine Learning and Knowledge Extraction, Springer.10.1007/978-3-030-57321-8_21 ↗
55. Wei, J., and Zou, K. (2019). Eda: Easy data augmentation techniques for boosting performance on text classification tasks. arXiv.10.18653/v1/D19-1670 ↗
56. Miller, G.A. (1998). WordNet: An Electronic Lexical Database, MIT Press.
57. Miháltz, M., Hatvani, C., Kuti, J., Szarvas, G., Csirik, J., Prószéky, G., and Váradi, T. (2008, January 22–25). Methods and results of the Hungarian WordNet project. Proceedings of the GWC: The Fourth Global WordNet Conference, Szeged, Hungary.
58. Scikit-learn: Machine learning in Python
59. Ghamrawi, N., and McCallum, A. (November, January 31). Collective multi-label classification. Proceedings of the 14th ACM International Conference on Information and Knowledge Management, Bremen, Germany.
60. Document categorization in legal electronic discovery: Computer classification vs. manual review10.1002/asi.21233 ↗