Apple demonstrated its advancements in artificial intelligence with its wearable devices and latest iPhones.