With AI or expert systems you're talking about a future that is so far out there, I doubt I'll see it in my lifetime. Until then, there'll be plenty of work for engineers just getting household appliances to work better than they do now. Engineers by their very nature are adaptable, as are their skill sets. AI will displace everyone else long before them.