I once posted a similar post, wondering what was the technique behind those wacky leads. I am still looking for clues. I read a bit of everything really. Minor scales might work, diminished as well. So, i find the general tonality and play the corresponding scale ? Playing those weird licks is an art !