Hi there I think I might have the answer, I to had a miss fire and splutter in driving rain and driving rain only, its took me two years to finally fix the issue and it's 100% fixed, it's not the electrics it's not carb icing, what I was suspected was definitely the fault water was getting into the airways, the seal on the inlets was the issue, they looked fine but if you undo the screws holding the two shaped air ducts they just fell out, silicone had perished causing air gapes round the intakes, re silicone with high temp silicone and issue as gone, I've been riding in the rain on purpose heavy driving rain not missed a beat, even at high speed well 80mph in the rain no issues, hope this helps anyone took me two years to find.
People told me it was electrics but I'm an electrical engineer and wsnt having it. I tested every bit of kit on the bike, my relief when I git to the bottom of this issue.
Not saying it will be your issue but def mine, now not scared to ride in the rain.
What a joy