Digital images make up most multimedia data and are analysed in computer vision applications. Daily uploads of millions of pictures to Internet archives such as satellite image repositories complicate multimedia content and image graphs. As feature vectors, content based image retrieval (CBIR) and image classification models represent high-level image viewpoints. Observing photos recognizes objects and evaluates their significance for image enhancement. To access the visual information of big datasets, efficiently retrieve and query picture graphs. The artificial bee colony (ABC) algorithm is inspired by the foraging behaviour of honeybee swarms. ABC is susceptible to laziness in convergence and local optimums, just like other optimization methods. This study created an enhanced ABC (EABC) model to enhance precision. This study presents query-based image tagging model using ensemble learning with EABC (QbITM-ELEABC) for CBIR for appropriately tagging images based on the query image. We examine a number of convolutional neural network (CNNs) with varying topologies that can be trained on the dataset with varying degrees of similarity. As representations, each network extracts class probability vectors from images. The final image representation is created by combining the ensemble's class probability vectors with image.