Machine Learning-Based Prediction of Postmortem Interval Using Conventional Forensic Indicators: A Cross-Sectional Study in Pakistan
Keywords:
Postmortem Interval; Machine Learning; Linear Regression; Random Forest; Forensic Medicine; Rigor Mortis; Livor Mortis.Abstract
Background: Postmortem interval estimation is central to medicolegal death investigation, but conventional indicators are influenced by biological and environmental variability. Machine-learning approaches may integrate multiple readily available forensic findings to improve early PMI prediction in resource-limited settings.
Objective: To evaluate prediction of postmortem interval within the first 48 hours using conventional forensic indicators and to compare a prespecified linear regression model with a restricted random forest model.
Study Design: Prospective analytical cross-sectional prediction-model development study.
Methodology: A feasibility target of 100 adult medicolegal autopsies with independently documented time of death and reference PMI of 0–48 hours was used. Prespecified predictors were rectal temperature, ambient temperature, rigor mortis, livor mortis, and body mass index. Linear regression was the primary low-complexity model and restricted random forest was exploratory. Internal validation used bootstrap resampling and out-of-fold predictions, with MAE, RMSE, R², calibration, and clinically relevant absolute-error thresholds reported.
Results: Among 100 records, mean reference PMI was 24.00 ± 13.31 hours. Linear regression achieved a median out-of-bag MAE of 3.91 hours, RMSE of 5.14 hours, and R² of 0.85. Restricted random forest produced a median MAE of 3.96 hours, RMSE of 5.13 hours, and R² of 0.85. Prediction errors within ±6 hours were observed in 77.8% and 79.5% of cases, respectively. Accuracy declined in the >36–48-hour subgroup, where MAE reached 5.49 hours and 60.0% of predictions were within ±6 hours.
Conclusion: Conventional forensic indicators provided useful early PMI prediction, with similar performance from linear regression and restricted random forest. Because added algorithmic complexity did not materially improve accuracy, an interpretable linear model may be preferable for practical use, subject to larger external validation across seasons, causes of death, and Pakistani climatic settings.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Authors

This work is licensed under a Creative Commons Attribution 4.0 International License.



