High pressure die casting is a widely used manufacturing process for producing complex metal parts with high precision and excellent surface finish. However, one of the significant challenges faced in this process is porosity, which can severely affect the mechanical properties and overall quality o