More and more medical images are being produced quickly by modern imaging devices that are connected to the Internet of Things (IoT). For the retrieval of necessary images from a conventional big volume database, the continuous scanning of all image data in an IoT network appears to be ineffective and computationally expensive. Effective image retrieval from a big image database necessitates the use of an effective and scalable image indexing approach. Existing image indexing methods have significant drawbacks, including lower efficiency, constrained scalability, increased computing demands, and longer processing times. To index the medical images obtained by IoT sensors, we suggested a novel, effective Content-Based Cascaded Gabor Wavelet Algorithm (CBCGWA) in this study. Further in this study, the medical images from computed tomography (CT) are employed for medical indexing Totally, the dataset included 168 individually annotated square patches in a subset of 115 high-resolution CT (High-Resolution CT) slices used in this study. An adaptive median filter is used for preprocessing the CT medical images once they are acquired from IoT sensor nodes connected to medical imaging systems. The Gaussian Adaptive Attention Network is then used to cluster together images with comparable attributes (GAAN). The suggested method is used to index the images after image clustering. The cloud database is where the indexed images are eventually maintained. The comparison of the recommended indexing approach to the existing indexing strategies revealed that it is better in terms of processing time, power, and indexing efficiency.