an automated system is only as good as it's sensors and only as good as the connections to those sensors.
if you could guarantee that all faults would occur on the ground and all faults would be detected by the power on self test then pilots would be a memory.
as an old control systems engineer :-) I can assure you that pilots have a good future.