Back when I took signal processing, I remember our professor making a very insightful comment. I sadly don't remember his exact words, but it went something like this.
"20 years back, everyone wanted CD's for music, today it is flash drives, the upcoming thing is streaming music from the internet. Technologies come and go. What I can say is that the Fourier transform will still be around 200 years from now as a valuable way of understanding the world."
I am of course in no real position to assert that this is a good idea (as I am still in graduate school), but this is the reason why I gravitate towards math and physics classes. Conditional on the assumption that we have a meaningful civilization decades from now (and none of the dangers outlined for instance in the excellent book "Here Be Dragons: Science, Technology and the Future of Humanity" by Olle Haggstrom) cause its utter collapse, I think it is a safe bet to assume "fundamental" topics like Maxwell's equations, Fourier transforms, etc will still be around, alive, and fruitfully studied and applied across a variety of domains.
Part of the reason is simply historical: the Fourier transform has had over 200 years to prove its worth time and again across a variety of disciplines.
Maybe deep learning is here to stay, maybe it isn't. I don't know, and I am not willing or interested in making bets either way. I am willing to bet on a time proven framework of understanding, such as the examples above.