When designers of engineering systems discovered the propensity of human operator error, they often attempted to remove the need for human input. Removing human operators lead to the effect, a so-called Automation Irony. The designers normally automated the easy tasks, but left the complex, unfamiliar tasks for humans. The problem is that all the learning environmnet is gone. The building of mental models is no more. The human operators must conduct difficult tasks intermittently on unfamiliar systems -- a sure recipe for failure.
A resume e.g. at.
This is the explanation of the mechanism by which the S&E careers will fail in the US. Everything is automated. The routine jobs are easy to do; in fact doing them is not required any mental competence -- any high school graduate can do the modern jobs of engineers. But sometimes there is a need for completion of complex untrivial tasks... however, there have been no learning environment... nobody learnt how to do complex tasks, or any tasks at all. There will always be smart young people, however they will have no tasks the completuon of which would teach them the skills, and no supervisors who can show how to do the complex stuff.
I would not even blame outsourcing for the loss of S&E careers in the US. Their contribution is not significant. The US corporations cannot outsource complex engineering projects to India or China, because those countries do not have infrastructure to do the complex projects (they have no facilites, and there is no sutainable workforce). Life became too easy in the modern West. The western civililisation will virtually drown in its own shit.