This study comprehensively investigated the transesterification process of converting waste pork fat oil into biodiesel as a fuel for the common rail direct injection (CRDI) diesel engine. In addition, Di-tert-butyl peroxide (DTBP) is used as an ignition enhancer to minimize exhaust gas emissions. The test fuels are diesel and diesel-waste pork fat biodiesel (WPFB)-DTBP blend (B20DTBP10 by volume), were used to analyze the engine outcome parameters with modified engines operating conditions like various compression ratios (CRs 16, 17.5, and 19) and injection pressures (IPs 400, 500 and 600 bar) at maximum load. The experiment results revealed that higher CRs and IPs, the heat release rate (HRR) and cylinder pressure increased. The brake thermal efficiency (BTE) is enhanced by increasing CRs and IPs but lowered than neat diesel. Smoke opacity decreased while increasing CRs and IPs. At CR 19 and IP 600 bar, smoke opacity decreased by 18.29%, related to baseline diesel. Increasing CRs and IPs lowered HC and CO emissions, but increasing IPs increased both emissions. HC and CO emissions were lowered in CR 19 and IP 500 bar by 21.73% and 28.49% more than neat diesel. The lower CRs and IPs, the oxides of nitrogen (NOx) emissions decreased, but further increasing CRs and IPs, the NOx emissions increased. Compared to baseline diesel, NOx emissions decreased in CR 16 and IP 400 bar by 15.49%. It was discovered that with increasing CRs and IPs, the emissions decreased with a minor rise in NOx emissions. Furthermore, the experimental results matched the predictions of an artificial neural network (ANN) model. The research concluded that the blend B20DTBP10 with modified engine operating conditions CRs and IPs suits diesel engine operation.