Is this on start up or shut down?
How often is the backfire occuring?
This is a fuel/air problem. The air should be fairly constant. There are numerous things it could be, but the things I would check would be the oil pressure related items.
Once you know the pressure and coupling are good we then have a fixed foundation to start from.