A Data-Driven Comparison of Linear Mixed Model and Mixed Effects Regression Tree Approaches for Dairy Productivity Analysis

Authors

  • Achmad Fauzan Universitas Islam Indonesia
  • Fatkhurokhman Fauzi IPB University
  • Rhendy K P Widiyanto IPB University
  • Khairil Anwar Notodiputro IPB University
  • Bagus Sartono IPB University

DOI:

https://doi.org/10.29207/resti.v9i5.6751

Keywords:

hierarchical data, indonesian dairy cow milk productivity survey 2024, linear mixed model (LMM), mixed effects regression tree (MERT), SDGs: goal 2 and 3

Abstract

Dairy productivity studies often involve hierarchical and longitudinal data structures that violate the assumptions of linear regression. This study compares two modeling approaches, Linear Mixed Model (LMM) and Mixed Effects Regression Tree (MERT), in predicting dairy productivity based on the 2024 National Dairy Productivity Survey data. Predictive performance was evaluated using MSEP, RMSEP, MAD, and MAPE, with MERT consistently outperforming LMM in accuracy and robustness. Permutational Multivariate Analysis of Variance (PERMANOVA) test results reinforced this finding, yielding a pseudo-F value of 224.7 and a p-value of 0.001, indicating statistically significant differences in model performance. Key predictors of MERT model included farm altitude, the previous week’s milk production, and the amounts of concentrate feed given, which are part of significant predictor variables in LMM. This finding underscores MERT’s superiority in modeling complex agricultural datasets while providing interpretable insights through data-driven segmentation. The study advocates policy focus in sustainable milk production as well as the availability of high quality of feed and altitude-based dairy farms location to improve milk productivity. Should these focuses implemented by the industry, combined with the MBG Program, Indonesia would be progressing better towards achievement of SDGs Goal 2 and 3.

Downloads

Download data is not yet available.

References

J. F. Hair Jr. and L. P. Fávero, “Multilevel modeling for longitudinal data: concepts and applications,” RAUSP Management Journal, vol. 54, no. 4, pp. 459–489, Oct. 2019, doi: 10.1108/RAUSP-04-2019-0059.

F. Rahmawati, K. A. Notodiputro, and L. O. A. Rahman, “A comparison of fixed effect and mixed effect models in analyzing telecommunication products,” in International Conference on Statistics and Data Science 2021, 2022, p. 020013. doi: 10.1063/5.0111015.

S. Hilbert, M. Stadler, A. Lindl, F. Naumann, and M. Bühner, “Analyzing longitudinal intervention studies with linear mixed models,” TPM Test Psychom Methodol Appl Psychol, vol. 26, no. 1, pp. 101–119, Mar. 2019, doi: 10.4473/TPM26.1.6.

I. Funatogawa and T. Funatogawa, “Longitudinal Data and Linear Mixed Effects Models,” in Longitudinal Data Analysis: Autoregressive Linear Mixed Effects Models, I. Funatogawa and T. Funatogawa, Eds., Singapore: Springer Singapore, 2018, pp. 1–26. doi: 10.1007/978-981-10-0077-5_1.

G. Vannucci, A. Gottard, L. Grilli, and C. Rampichini, “Random effects regression trees for the analysis of INVALSI data,” in ASA 2021 Statistics and Information Systems for Policy Evaluation, Firenze University Press, 2021, pp. 29–34. doi: 10.36253/978-88-5518-304-8.07.

K. Nurfadilah, M. N. Aidi, K. A. Notodiputro, and B. Susetyo, “Multilevel Regressions for Modeling Mean Scores of National Examinations,” BAREKENG: Jurnal Ilmu Matematika dan Terapan, vol. 18, no. 1, pp. 0323–0332, Mar. 2024, doi: 10.30598/barekengvol18iss1pp0323-0332.

L. Fahrmeir and G. Tutz, Multivariate Statistical Modelling Based on Generalized Linear Models. New York, NY: Springer New York, 2001. doi: 10.1007/978-1-4757-3454-6.

A. Hajjem, F. Bellavance, and D. Larocque, “Mixed effects regression trees for clustered data,” Stat Probab Lett, vol. 81, no. 4, pp. 451–459, Apr. 2011, doi: 10.1016/j.spl.2010.12.003.

A. Gottard, G. Vannucci, L. Grilli, and C. Rampichini, “Mixed-effect models with trees,” Adv Data Anal Classif, vol. 17, no. 2, pp. 431–461, Jun. 2023, doi: 10.1007/s11634-022-00509-3.

M. Fokkema, J. Edbrooke-Childs, and M. Wolpert, “Generalized linear mixed-model (GLMM) trees: A flexible decision-tree method for multilevel and longitudinal data,” Psychotherapy Research, vol. 31, no. 3, pp. 329–341, Apr. 2021, doi: 10.1080/10503307.2020.1785037.

M. G. Kundu and J. Harezlak, “Regression trees for longitudinal data with baseline covariates,” Biostat Epidemiol, vol. 3, no. 1, pp. 1–22, 2019, doi: 10.1080/24709360.2018.1557797.

W. Y. Loh and W. Zheng, “Regression trees for longitudinal and multiresponse data,” Annals of Applied Statistics, vol. 7, no. 1, pp. 495–522, Mar. 2013, doi: 10.1214/12-AOAS596.

W. Fu and J. S. Simonoff, “Unbiased regression trees for longitudinal and clustered data,” Comput Stat Data Anal, vol. 88, pp. 53–74, Aug. 2015, doi: 10.1016/j.csda.2015.02.004.

R. J. Sela and J. S. Simonoff, “RE-EM trees: a data mining approach for longitudinal and clustered data,” Mach Learn, vol. 86, no. 2, pp. 169–207, Feb. 2012, doi: 10.1007/s10994-011-5258-3.

J. L. Speiser, B. J. Wolf, D. Chung, C. J. Karvellas, D. G. Koch, and V. L. Durkalski, “BiMM forest: A random forest method for modeling clustered and longitudinal binary outcomes,” Chemometrics and Intelligent Laboratory Systems, vol. 185, pp. 122–134, Feb. 2019, doi: 10.1016/j.chemolab.2019.01.002.

S. Nestler and S. Humberg, “A Lasso and a Regression Tree Mixed-Effect Model with Random Effects for the Level, the Residual Variance, and the Autocorrelation,” Psychometrika, vol. 87, no. 2, pp. 506–532, 2022, doi: 10.1007/s11336-021-09787-w.

Asrirawan, K. A. Notodiputro, B. Susetyo, and S. D. Oktarina, “Modified tree-based selection in hierarchical mixed-effect models with trees: A simulation study and real-data application,” MethodsX, vol. 14, p. 103312, Jun. 2025, doi: 10.1016/j.mex.2025.103312.

M. Akram, M. Sami, O. Ahmed, P. F. Onyekere, and C. Egbuna, “Health Benefits of Milk and Milk Products,” in Functional Foods and Nutraceuticals, Cham: Springer International Publishing, 2020, pp. 211–217. doi: 10.1007/978-3-030-42319-3_12.

Food and Agriculture Organization of the United Nations, “The Global Dairy Sector: Facts,” Oct. 2016.

John. Moran, Tropical dairy farming : feeding management for small holder dairy farmers in the humid tropics. Landlinks Press, 2005.

M. C. R. Oliveros, “The Dairy Industry in Southeast Asia: Perspective, Challenges and Opportunities,” in IOP Conference Series: Earth and Environmental Science, IOP Publisher, Nov. 2019, p. 012068. doi: 10.1088/1755-1315/372/1/012068.

Soma Rathma Inna, Azhar Aidil, and Uchiyama Tomohiro, “Food preferences in Indonesian schoolchildren and the parents’ perspectives on the upcoming nutritious free meal program,” in E3S Web Conf., 2024, p. 2004. doi: 10.1051/e3sconf/202457702004.

D. Lopez de Romaña, A. Greig, A. Thompson, and M. Arabi, “Successful delivery of nutrition programs and the sustainable development goals,” Curr Opin Biotechnol, vol. 70, pp. 97–107, 2021, doi: https://doi.org/10.1016/j.copbio.2021.03.004.

S. Jahroh, J. Atmakusuma, A. Fadillah, and others, “Comparative analysis of dairy farming management and business model between East Java and West Java, Indonesia,” Jurnal Manajemen & Agribisnis, vol. 17, no. 1, p. 96, 2020.

A. P. Joshi and B. V. Patel, “Data Preprocessing: The Techniques for Preparing Clean and Quality Data for Data Analytics Process,” Oriental journal of computer science and technology, vol. 13, no. 0203, pp. 78–81, Jan. 2021, doi: 10.13005/ojcst13.0203.03.

M. Kutner, C. Nachtsheim, and J. Neter, Applied Linear Regression Models. McGraw Hill, 2004.

A. Soberón and W. Stute, “Assessing skewness, kurtosis and normality in linear mixed models,” J Multivar Anal, vol. 161, pp. 123–140, Sep. 2017, doi: 10.1016/j.jmva.2017.07.010.

H. Farhood, I. Joudah, A. Beheshti, and S. Muller, “Evaluating and Enhancing Artificial Intelligence Models for Predicting Student Learning Outcomes,” Informatics, vol. 11, no. 3, p. 46, Jul. 2024, doi: 10.3390/informatics11030046.

N. Shrestha, “Detecting Multicollinearity in Regression Analysis,” Am J Appl Math Stat, vol. 8, no. 2, pp. 39–42, Jun. 2020, doi: 10.12691/ajams-8-2-1.

S. G. Singh and S. V. Kumar, “Dealing with Multicollinearity Problem in Analysis of Side Friction Characteristics Under Urban Heterogeneous Traffic Conditions,” Arab J Sci Eng, vol. 46, no. 11, pp. 10739–10755, Nov. 2021, doi: 10.1007/s13369-020-05213-y.

N. B. A. Warif et al., “Copy-move forgery detection: Survey, challenges and future directions,” Journal of Network and Computer Applications, vol. 75, pp. 259–278, Nov. 2016, doi: 10.1016/j.jnca.2016.09.008.

M. Bolic, “Concepts in performance evaluation and uncertainty analysis,” in Pervasive Cardiovascular and Respiratory Monitoring Devices, Elsevier, 2023, pp. 1–35. doi: 10.1016/B978-0-12-820947-9.00008-8.

P. K. Choudhary and H. N. Nagaraja, Measuring Agreement. Wiley, 2017. doi: 10.1002/9781118553282.

D. S. Young, Handbook of Regression Methods. CRC Press, 2017.

T. Kyriazos and M. Poga, “Dealing with Multicollinearity in Factor Analysis: The Problem, Detections, and Solutions,” Open J Stat, vol. 13, no. 03, pp. 404–424, 2023, doi: 10.4236/ojs.2023.133020.

D. M. Levine, D. F. Stephan, and K. A. Szabat, Statistics for managers using Microsoft Excel. Pearson, 2016.

D. Szabo et al., “Admission lactate level and the GRACE 2.0 score are independent and additive predictors of 30-day mortality of STEMI patients treated with primary PCI—Results of a real-world registry,” PLoS One, vol. 17, no. 11, p. e0277785, Nov. 2022, doi: 10.1371/journal.pone.0277785.

T. O. Hodson, T. M. Over, and S. S. Foks, “Mean Squared Error, Deconstructed,” J Adv Model Earth Syst, vol. 13, no. 12, Dec. 2021, doi: 10.1029/2021MS002681.

A. Gogineni, I. K. Panday, P. Kumar, and R. Kr. Paswan, “Predicting compressive strength of concrete with fly ash and admixture using XGBoost: a comparative study of machine learning algorithms,” Asian Journal of Civil Engineering, vol. 25, no. 1, pp. 685–698, Jan. 2024, doi: 10.1007/s42107-023-00804-0.

N.-H. Nguyen, K. T. Tong, S. Lee, A. Karamanli, and T. P. Vo, “Prediction compressive strength of cement-based mortar containing metakaolin using explainable Categorical Gradient Boosting model,” Eng Struct, vol. 269, p. 114768, Oct. 2022, doi: 10.1016/j.engstruct.2022.114768.

P. Ruba, S. Aarthi, and P. Bhuvaneshwari, “Prediction of ultimate strength for high strength concrete (HSC) using machine learning approaches - optimized by PSO technique,” Discover Computing, vol. 28, no. 1, p. 17, Mar. 2025, doi: 10.1007/s10791-025-09517-1.

Y. Yue and Y.-J. Hu, “Extension of PERMANOVA to Testing the Mediation Effect of the Microbiome,” Genes (Basel), vol. 13, no. 6, 2022, doi: 10.3390/genes13060940.

O. A. Montesinos López, A. Montesinos López, and J. Crossa, “Linear Mixed Models,” in Multivariate Statistical Machine Learning Methods for Genomic Prediction, Cham: Springer International Publishing, 2022, pp. 141–170. doi: 10.1007/978-3-030-89010-0_5.

G. M. Fitzmaurice and N. M. Laird, “Linear Mixed Models,” in International Encyclopedia of the Social & Behavioral Sciences, Elsevier, 2015, pp. 162–168. doi: 10.1016/B978-0-08-097086-8.42016-7.

N. Schreck and M. Wiesenfarth, “Decomposition of Explained Variation in the Linear Mixed Model,” 2023. [Online]. Available: https://arxiv.org/abs/2205.15090

D. Bates, M. Mächler, B. M. Bolker, and S. C. Walker, “Fitting linear mixed-effects models using lme4,” J Stat Softw, vol. 67, no. 1, Oct. 2015, doi: 10.18637/jss.v067.i01.

A. Akıllı, H. Atıl, and Ç. Takma, “A Decision Tree Model to Determine Some Environmental Factors Affecting 305-Day Milk Yield in Simmental Cows,” Journal of Agricultural Faculty of Gaziosmanpaşa University, vol. 39, no. 3, pp. 191–198, 2022, doi: 10.55507/gopzfd.1175502.

G. Molle, M. Decandia, A. Cabiddu, S. Y. Landau, and A. Cannas, “An update on the nutrition of dairy sheep grazing Mediterranean pastures,” Small Ruminant Research, vol. 77, no. 2, pp. 93–112, 2008, doi: https://doi.org/10.1016/j.smallrumres.2008.03.003.

P. Huhtanen, M. Rinne, and J. Nousiainen, “Evaluation of the factors affecting silage intake of dairy cows: a revision of the relative silage dry-matter intake index,” Animal, vol. 1, no. 5, pp. 758–770, 2007, doi: https://doi.org/10.1017/S175173110773673X.

S. V Rama Rao et al., “Performance, carcass variables and immune responses in commercial broiler chicks fed graded concentrations of threonine in diet containing sub-optimal levels of protein,” Anim Feed Sci Technol, vol. 169, no. 3, pp. 218–223, 2011, doi: https://doi.org/10.1016/j.anifeedsci.2011.06.013.

P. Brandt, T. Rousing, M. S. Herskin, E. V Olsen, and M. D. Aaslyng, “Development of an index for the assessment of welfare of finishing pigs from farm to slaughter based on expert opinion,” Livest Sci, vol. 198, pp. 65–71, 2017, doi: https://doi.org/10.1016/j.livsci.2017.02.008.

H. Zhang et al., “Genetic parameters and genome-wide association analyses for lifetime productivity in Chinese Holstein cattle,” J Dairy Sci, vol. 107, no. 11, pp. 9638–9655, Nov. 2024, doi: 10.1016/j.jods.2024.10.001.

K. Abebe, B. Tamir, G. Goshu, T. Demissie, and F. Regassa, “Effect of Late Gestation and Early Postpartum Concentrate Supplementation on Milk Production, Milk Composition and Reproductive Performances of HF × Boran Dairy Cows,” Advances in Life Science and Technology, vol. 61, pp. 28–37, 2017, [Online]. Available: www.iiste.org

H. U. Rehman et al., “Sustainable Strategies for the Development of Livestock Production Sector: Moving Towards Zero Hunger and Food Security,” Journal of Population Therapeutics and Clinical Pharmacology, vol. 31, no. 7, 2024, doi: 10.53555/jptcp.v31i7.4394.

B. T. West, K. B. Welch, and A. T. Gatecki, Linear Mixed Models: A Practical Guide Using Statistical Software, 3rd ed. Taylor & Francis Group, LLC, 2022.

P. Bressoux, “Using multilevel models is not just a matter of statistical adjustment. Illustrations in the educational field,” 2020.

C. Feng, L. Li, and A. Sadeghpour, “A comparison of residual diagnosis tools for diagnosing regression models for count data,” BMC Med Res Methodol, vol. 20, no. 1, p. 175, Dec. 2020, doi: 10.1186/s12874-020-01055-2.

N. Khatun, “Applications of Normality Test in Statistical Analysis,” Open J Stat, vol. 11, no. 01, pp. 113–122, 2021, doi: 10.4236/ojs.2021.111006.

A. Hajjem, F. Bellavance, and D. Larocque, “Mixed-effects random forest for clustered data,” J Stat Comput Simul, vol. 84, no. 6, pp. 1313–1328, Jun. 2014, doi: 10.1080/00949655.2012.741599.

Downloads

Published

2025-10-12

Issue

Section

Computer Science Applications

How to Cite

Achmad Fauzan, Fatkhurokhman Fauzi, Rhendy K P Widiyanto, Khairil Anwar Notodiputro, & Bagus Sartono. (2025). A Data-Driven Comparison of Linear Mixed Model and Mixed Effects Regression Tree Approaches for Dairy Productivity Analysis. Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 9(5), 1078-1090. https://doi.org/10.29207/resti.v9i5.6751