Intellngent wearable devices