Listening is the best way but there are some tools out there that can help, have you tried guitar pro..? I use that for difficult patterns load your guitar pro tab then you can remove all the other sounds and just listen to the rythmm or the lead what ever it is your trying to learn. You can also slow the piece down which i find is a great help. I havent been playing long and struggle to work out patterns but if listen hard enough to the beat it starts singing out the pattern. I use the dduudu method to and adjust it until it sounds something like. Keep listening and maybe try guitar pro PM me and ill help you find it.
Good luck
Pages 1