Artificial Intelligence of Things: Theory and Applications