Programmable artificial intelligence machine for wave sensing and communications