{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,4]],"date-time":"2026-11-04T22:53:29Z","timestamp":1793832809187,"version":"4.6.1"},"reference-count":49,"publisher":"MDPI AG","issue":"21","license":[{"start":{"date-parts":[[2021,11,4]],"date-time":"2021-11-04T00:00:00Z","timestamp":1635984000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Applied Sciences"],"abstract":"<jats:p>The discretionary damage of mental suffering in fatal car accident cases in Taiwan is subjective, uncertain, and unpredictable; thus, plaintiffs, defendants, and their lawyers find it difficult to judge whether spending much of their money and time on the lawsuit is worthwhile and which legal factors judges will consider important and dominant when they are assessing the mental suffering damages. To address these problems, we propose k-nearest neighbor, classification and regression trees, and random forests as learning algorithms for regression to build optimal predictive models. In addition, we reveal the importance ranking of legal factors by permutation feature importance. The experimental results show that the random forest model outperformed the other models and achieved good performance, and \u201cthe mental suffering damages that plaintiff claims\u201d and \u201cthe age of the victim\u201d play important roles in assessments of mental suffering damages in fatal car accident cases in Taiwan. Therefore, litigants and their lawyers can predict the discretionary damages of mental suffering in advance and wisely decide whether they should litigate or not, and then they can focus on the crucial legal factors and develop the best litigation strategy.<\/jats:p>","DOI":"10.3390\/app112110361","type":"journal-article","created":{"date-parts":[[2021,11,4]],"date-time":"2021-11-04T09:11:32Z","timestamp":1636017092000},"page":"10361","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":14,"title":["Legal Judgment Prediction Based on Machine Learning: Predicting the Discretionary Damages of Mental Suffering in Fatal Car Accident Cases"],"prefix":"10.3390","volume":"11","author":[{"given":"Decheng","family":"Hsieh","sequence":"first","affiliation":[{"name":"Department of Computer Science and Information Engineering, College of Science and Technology, National Chi Nan University, Nantou County 545301, Taiwan"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Lieuhen","family":"Chen","sequence":"additional","affiliation":[{"name":"Department of Computer Science and Information Engineering, College of Science and Technology, National Chi Nan University, Nantou County 545301, Taiwan"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Taiping","family":"Sun","sequence":"additional","affiliation":[{"name":"Department of Electrical Engineering, College of Science and Technology, National Chi Nan University, Nantou County 545301, Taiwan"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2021,11,4]]},"reference":[{"key":"ref_1","unstructured":"Chen, Y. (2009). The Research on the Criteria of Computing the Amount of Consolation Payment in the Civil Damages Law. [Master\u2019s Thesis, National Cheng Kung University]."},{"key":"ref_2","first-page":"139","article-title":"An Empirical Study of Pain and Suffering Damages in Fatal Car Accident Cases in Taiwan","volume":"149","author":"Chang","year":"2017","journal-title":"Chengchi Law Rev."},{"key":"ref_3","first-page":"909","article-title":"Quantitative legal prediction-or-how I learned to stop worrying and start preparing for the data-driven future of the legal services industry","volume":"62","author":"Katz","year":"2012","journal-title":"Emory LJ"},{"key":"ref_4","first-page":"49","article-title":"Exploiting Machine Learning Models for Chinese Legal Documents Labeling, Case Classification, and Sentencing Prediction","volume":"17","author":"Lin","year":"2012","journal-title":"Int. J. Comput. Linguist. Chin. Lang. Process."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"e93","DOI":"10.7717\/peerj-cs.93","article-title":"Predicting judicial decisions of the European Court of Human Rights: A Natural Language Processing perspective","volume":"2","author":"Aletras","year":"2016","journal-title":"PeerJ Comput. Sci."},{"key":"ref_6","unstructured":"Agrawal, S., Ash, E., Chen, D., Gill, S.S., Singh, A., and Venkatesan, K. (2017). Affirm or Reverse? Using Machine Learning To Help Judges Write Opinions, National Bureau of Economic Research. NBER Working Paper."},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Li, J., Zhang, G., Yan, H., Yu, L., and Meng, T. (2018, January 21\u201323). A Markov Logic Networks Based Method to Predict Judicial Decisions of Divorce Cases. Proceedings of the 2018 IEEE International Conference on Smart Cloud (SmartCloud), New York, NY, USA.","DOI":"10.1109\/SmartCloud.2018.00029"},{"key":"ref_8","unstructured":"Jiang, X., Ye, H., Luo, Z., Chao, W., and Ma, W. (2018, January 20\u201326). Interpretable Rationale Augmented Charge Prediction System. Proceedings of Proceedings of the 27th International Conference on Computational Linguistics: System Demonstrations, Santa Fe, NM, USA."},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Chen, S., Wang, P., Fang, W., Deng, X., and Zhang, F. (2019, January 17\u201319). Learning to Predict Charges for Judgment with Legal Graph. Proceedings of the International Conference on Artificial Neural Networks, Munich, Germany.","DOI":"10.1007\/978-3-030-30490-4_20"},{"key":"ref_10","first-page":"164","article-title":"Legal judgment prediction based on legal judgment documents","volume":"7","author":"Zhang","year":"2021","journal-title":"Big Data Res."},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"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.","DOI":"10.1371\/journal.pone.0174698"},{"key":"ref_12","first-page":"86","article-title":"Predicting Family Court Cases by Machine Learning: An Application of Legal Informatics","volume":"270","author":"Huang","year":"2017","journal-title":"Taiwan Law Rev."},{"key":"ref_13","first-page":"299","article-title":"What Factors Determine Child Custody in Taiwan? Using Decision Tree Learning on Court Decisions","volume":"47","author":"Huang","year":"2018","journal-title":"NTU Law J."},{"key":"ref_14","first-page":"2023","article-title":"The Application of Artificial Intelligence and Legal Analytics: Focused on Decisions Regarding Child Custody","volume":"48","author":"Huang","year":"2019","journal-title":"NTU Law J."},{"key":"ref_15","unstructured":"Boaro, J.M.C., Santos, P.T.C.d., Henrique, F., Garcia, V., and Manfredini, C. (2020, January 11\u201314). Legal Judgment Prediction in the Context of Energy Market using Gradient Boosting. Proceedings of the 2020 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Toronto, ON, Canada."},{"key":"ref_16","unstructured":"Raschka, S., and Mirjalili, V. (2019). Python Machine Learning: Machine Learning and Deep Learning with Python, Scikit-Learn, and TensorFlow 2, Packt Publishing. [3rd ed.]."},{"key":"ref_17","first-page":"34","article-title":"About The Formal Aount of Money of Compensation for Mental Damage","volume":"17","author":"Yu","year":"2002","journal-title":"J. Chang. Univ. Electr. Power"},{"key":"ref_18","first-page":"2825","article-title":"Scikit-learn: Machine Learning in Python","volume":"12","author":"Pedregosa","year":"2011","journal-title":"J. Mach. Learn. Res."},{"key":"ref_19","unstructured":"Zheng, A., and Casari, A. (2018). Feature Engineering for Machine Learning: Principles and Techniques for Data Scientists, O\u2032Reilly. [1st ed.]."},{"key":"ref_20","unstructured":"Eye, A.V., and Clogg, C.C. (1996). Categorical Variables in Developmental Research: Methods of Analysis, Academic Press."},{"key":"ref_21","unstructured":"Albon, C. (2018). Machine Learning with Python Cookbook: Practical Solutions from Preprocessing to Deep Learning, O\u2032Reilly Media. [1st ed.]."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"42","DOI":"10.20470\/jsi.v5i1.178","article-title":"Dealing with missing values in data","volume":"5","author":"Kaiser","year":"2014","journal-title":"J. Syst. Integr."},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Grzymala-Busse, J.W., and Hu, M. (2000, January 16\u201319). A Comparison of Several Approaches to Missing Attribute Values in Data Mining. Proceedings of the International Conference on Rough Sets and Current Trends in Computing, Banff, AB, Canada.","DOI":"10.1007\/3-540-45554-X_46"},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Kantardzic, M. (2003). Data Mining: Concepts, models, methods, and algorithms. Technometrics, 45.","DOI":"10.1198\/tech.2003.s785"},{"key":"ref_25","unstructured":"Hsieh, D. (2021). Legal Judgment Prediction of Solatium for Fatal Car Accident Cases Based on Machine Learning. [Master\u2019s Thesis, National Chi Nan University]."},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Hastie, T., Tibshirani, R., and Friedman, J.H. (2009). The Elements of Statistical Learning: Data Mining, Inference, and Prediction, Springer. [2nd ed.].","DOI":"10.1007\/978-0-387-84858-7"},{"key":"ref_27","unstructured":"Aboudi, N.E., and Benhlima, L. (2016, January 22\u201324). Review on wrapper feature selection approaches. Proceedings of the 2016 International Conference on Engineering & MIS (ICEMIS), Agadir, Morocco."},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"John, G.H., Kohavi, R., and Pfleger, K. (1994, January 10\u201313). Irrelevant Features and the Subset Selection Problem. Proceedings of the Machine Learning, New Brunswick, NJ, USA.","DOI":"10.1016\/B978-1-55860-335-6.50023-4"},{"key":"ref_29","first-page":"403","article-title":"Comparative study of techniques for large-scale feature selection","volume":"16","author":"Ferri","year":"1994","journal-title":"Mach. Intell. Pattern Recognit."},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"389","DOI":"10.1023\/A:1012487302797","article-title":"Gene selection for cancer classification using support vector machines","volume":"46","author":"Guyon","year":"2002","journal-title":"Mach. Learn."},{"key":"ref_31","unstructured":"Buitinck, L., Louppe, G., Blondel, M., Pedregosa, F., Mueller, A., Grisel, O., Niculae, V., Prettenhofer, P., Gramfort, A., and Grobler, J. (2013). API design for machine learning software: Experiences from the scikit-learn project. arXiv."},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"83","DOI":"10.1016\/j.chemolab.2006.01.007","article-title":"Recursive feature elimination with random forest for PTR-MS analysis of agroindustrial products","volume":"83","author":"Granitto","year":"2006","journal-title":"Chemom. Intell. Lab. Syst."},{"key":"ref_33","unstructured":"Louppe, G. (2014). Understanding random forests: From theory to practice. [PhD Dissertation, University of Li\u00e8ge]."},{"key":"ref_34","first-page":"605","article-title":"Application of K-Nearest Neighbor (KNN) Approach for Predicting Economic Events: Theoretical Background","volume":"3","author":"Imandoust","year":"2013","journal-title":"Int. J. Eng. Res. Appl."},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"Marsland, S. (2015). Machine Learning: An Algorithmic Perspective, CRC Press. [2nd ed.].","DOI":"10.1201\/b17476"},{"key":"ref_36","unstructured":"Breiman, L. (1984). Classification and Regression Trees, Wadsworth International Group."},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"582","DOI":"10.1016\/B978-008045405-4.00149-X","article-title":"Classification and Regression Trees","volume":"Volume 1","author":"Moisen","year":"2008","journal-title":"Encyclopedia of Ecology"},{"key":"ref_38","unstructured":"Timofeev, R. (2004). Classification and Regression Trees (CART) Theory and Applications. [Master\u2019s Thesis, Humboldt University]."},{"key":"ref_39","doi-asserted-by":"crossref","first-page":"5","DOI":"10.1023\/A:1010933404324","article-title":"Random Forests","volume":"45","author":"Breiman","year":"2001","journal-title":"Mach. Learn."},{"key":"ref_40","doi-asserted-by":"crossref","first-page":"2225","DOI":"10.1016\/j.patrec.2010.03.014","article-title":"Variable selection using random forests","volume":"31","author":"Genuer","year":"2010","journal-title":"Pattern Recognit. Lett."},{"key":"ref_41","doi-asserted-by":"crossref","first-page":"3","DOI":"10.1007\/s10994-006-6226-1","article-title":"Extremely randomized trees","volume":"63","author":"Geurts","year":"2006","journal-title":"Mach. Learn."},{"key":"ref_42","doi-asserted-by":"crossref","first-page":"3711","DOI":"10.1093\/bioinformatics\/bty373","article-title":"The revival of the Gini importance?","volume":"34","author":"Nembrini","year":"2018","journal-title":"Bioinformatics"},{"key":"ref_43","doi-asserted-by":"crossref","first-page":"1502","DOI":"10.12928\/telkomnika.v14i4.3956","article-title":"SVM parameter optimization using grid search and genetic algorithm to improve classification performance","volume":"14","author":"Syarif","year":"2016","journal-title":"Telkomnika"},{"key":"ref_44","doi-asserted-by":"crossref","unstructured":"Ranjan, G.S.K., Verma, A.K., and Radhika, S. (2019, January 29\u201331). K-Nearest Neighbors and Grid Search CV Based Real Time Fault Monitoring System for Industries. Proceedings of the 2019 IEEE 5th International Conference for Convergence in Technology (I2CT), Bombay, India.","DOI":"10.1109\/I2CT45611.2019.9033691"},{"key":"ref_45","doi-asserted-by":"crossref","first-page":"291","DOI":"10.2307\/1403680","article-title":"Submodel Selection and Evaluation in Regression. The X-Random Case","volume":"60","author":"Breiman","year":"1992","journal-title":"Int. Stat. Rev."},{"key":"ref_46","first-page":"1137","article-title":"A Study of Cross-Validation and Bootstrap for Accuracy Estimation and Model Selection","volume":"14","author":"Kohavi","year":"1995","journal-title":"Ijcai"},{"key":"ref_47","doi-asserted-by":"crossref","first-page":"e623","DOI":"10.7717\/peerj-cs.623","article-title":"The coefficient of determination R-squared is more informative than SMAPE, MAE, MAPE, MSE and RMSE in regression analysis evaluation","volume":"7","author":"Chicco","year":"2021","journal-title":"PeerJ Comput. Sci."},{"key":"ref_48","first-page":"1371","article-title":"Overfitting in Making Comparisons Between Variable Selection Methods","volume":"3","author":"Reunanen","year":"2003","journal-title":"J. Mach. Learn. Res."},{"key":"ref_49","first-page":"61","article-title":"Attempted Study How to Confirm the Sum of Compensation in Spiritual Damage","volume":"16","author":"Wang","year":"2004","journal-title":"J. Xichang Teach. Coll."}],"container-title":["Applied Sciences"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2076-3417\/11\/21\/10361\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T07:25:50Z","timestamp":1760167550000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2076-3417\/11\/21\/10361"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,11,4]]},"references-count":49,"journal-issue":{"issue":"21","published-online":{"date-parts":[[2021,11]]}},"alternative-id":["app112110361"],"URL":"https:\/\/doi.org\/10.3390\/app112110361","relation":{},"ISSN":["2076-3417"],"issn-type":[{"value":"2076-3417","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,11,4]]}}}