it's really difficult to say, as diesels don't "misfire" as such, the fuel input can stall, through air bubbles or pump faults, or you can have a leaking valve or cylinder meaning compression loss, but the latter is less likely to be intemittant.
I'd check the fuel filter and maybe bleed the fuel system to check for an air leak.