Artificial intelligence of things for smart agriculture with optimal embedded edge intelligence | Synapse