you can't be 100% sure until you take a blood test to find out your hormonal levels. However, 47 is NOT unusual to be perimenopausal.. That said, I am now 49 and first began that sudden rush of anxiety when I hit my early 40s.. Having never been Claustrophobic before, all of sudden I was becoming VERY anxious on buses, planes and other forms of transportation and couldn't get off the vehicle when I chose to do so. .That said, after no relief from the mainstream doctors............... I began reading up on the topic and discovered that as our Estrogen drops, we can become more anxious. What you need to know is that Estrogen controls your cortisol (stress hormone) well with diminishing supplies of Estrogen going down, the cortisol can cut lose and raise your anxiety........ couple that with a diet of too much caffeine, alcohol and sugar.... and the every day stresses of life (that once didn't bother you) and BAM...anxiety...
I got a lot of good info about women and their hormones, in a book called, Screaming to be heard.. by DR. Vliet.. it details that which is going on in our bodies from early on and later on in life.. It was a good read and to this day is still helpful.... you may want to check it out...
I wish you all the best