It's been a common theme over the last few decades that computers become more talented than humans in various areas of endeavour. This will doubtless continue and flying will be no different.
One example is Watson, a development by IBM. In its first public outing it beat off human experts in the American quiz show, Jeopardy. It's being developed now in other areas such as a diagnostic aid for doctors, helping utilities forecast and deliver power and so on. Most important, Watson is a learning system; it adapts as new information comes its way.
It's been reported in these fora and elsewhere that in
some emergencies,
some pilots have been so intent on what they are doing that they miss other critical signals. This is human failing is, perhaps, best illustrated in the basketball test.
https://www.youtube.com/watch?v=vJG698U2Mvo
In day-to-day flying conditions, human pilots have huge inputs not available to computers: windows, seat-of-the-pants, speech input from others (ATC reporting something flying off the aircraft at take-off). This will change: computers are increasingly adept at
understanding natural language (a feature of Watson) for example and cheap and reliable sensors are being placed everywhere.
I have no doubt that computer systems will, over the next decade or two, become so deft that pilots (and doctors and others) will find it increasingly difficult to justify their roles.