The study of insects' biology and ecology to determine the postmortem interval or the time since death.