Text this: AFM-DViT: A framework for IoT-driven medical image analysis