Computers, as we know them today are great at doing repetitive tasks and monitoring. Decision-making, no so much.
An interesting read...
IBM's Watson is better at diagnosing cancer than human doctors
I would call this (especially when it comes to decide about the type of treatment) some sort of decission making.
However, this decission is purely statistical and based on comparison with millions of datasets. So our first step is that we need to install very accurate flight data recorders, fly for some centuries and after having a database of millions of accidents, the computer will be perfect in predicting an impending crash from the current parameters.
Maybe it will even be able to decide upon an action, which in the past had saved the day. However, we need to freeze airports, airspace and aircraft design for some time to collect relevant data...