Image Retrieval System Using Optimized Dual Branched Deep Learning Approach

Image Retrieval System Using Optimized Dual Branched Deep Learning Approach

V. Mythily* | P. Sukumar

Department of Computer Science and Engineering, Nandha Engineering College, Erode 638052, India

Department of Electronics and Communication Engineering, Nandha Engineering College, Erode 638052, India

Corresponding Author Email: 
mythilycse12@gmail.com
Page: 
2143-2152
|
DOI: 
https://doi.org/10.18280/ts.430505
Received: 
13 August 2026
|
Revised: 
14 October 2026
|
Accepted: 
22 October 2026
|
Available online: 
31 October 2026
| Citation

© 2026 The authors. This article is published by IIETA and is licensed under the CC BY 4.0 license (http://creativecommons.org/licenses/by/4.0/).

OPEN ACCESS

Abstract: 

Image Retrieval (IR) is a process of retrieving the relevant images from the imaging database. In this article, both medical and Non-Medical Images (NMIs) are retrieved using the proposed deep learning algorithm. The multi-level Gabor transformation has been applied to all the images in the image database for local and global texture feature computation. The computed texture feature set is optimized using a Genetic Algorithm (GA) approach using a fitness computation process. The optimized texture feature set is applied to the proposed deep learning algorithm. The features of the query image are obtained by applying the multi-level Gabor transformation process, and then GA is applied to the obtained texture feature set to scrutinize the optimum set of features. The optimized texture feature set is applied to the proposed deep learning algorithm. Here, the Dual Branched Deep Learning (DBDL) Algorithm is proposed for performing the classification process, which classifies the query image into either medical or NMI with respect to the training features. After testing the query image as either medical or NMI, its corresponding feature set is fed into the similarity computation algorithm with the feature set received from the database. This proposed similarity computation algorithm computes the similarity of images using the distance metrics in order to produce the retrieval results. The performance of the proposed IR system has been tested on medical and non-medical imaging datasets, and the experimental results are compared with those of conventional IR systems.

Keywords: 

retrieval, Gabor, features, query image, similarity

1. Introduction

Image Retrieval (IR) plays an important role in retrieving the required image from large imaging datasets in Internet. IR has been classified into two types: either Content Based Image Retrieval (CBIR) systems or Text Based Image Retrieval (TBIR) systems [1, 2]. Even though both retrieval methods obtain the retrieval of images, their methods are different to retrieve the images from the larger datasets. In the case of CBIR, the content within the image is more important than the other attributes, and the content is categorized into shape, size, and pixel variation descriptors. In the case of TBIR, the text within the image is more important than the other retrieval attributes [3, 4]. Both methods are used in many applications such as Medical Image (MI) identification systems, fingerprint detection systems, and cybersecurity with face detection systems. The CBIR approach provides a more accurate retrieval rate on the images than the TBIR due to the extraction and analysis of various contents in various regions of the images [5]. The CBIR system has been further classified into Non-Medical Image (NMI) based CBIR systems and MI based CBIR systems. In this research work, both non-medical images and MIs are retrieved using the proposed approach with the aid of artificial intelligence algorithms. In conventional MI detection systems, the physician detects or identifies the segmented image or region with respect to larger imaging datasets by manual process [6, 7]. This manual based image detection or identification method consumed higher time, which is not suitable for large imaging datasets. This limitation of the manual image identification method has been overcome by adopting the content based medical IR system in this work, which is used to increase the image detection or retrieval rate [8-11]. In this paper, the higher level semantic features and the local semantic features have been computed from the images and used for the IR process. In conjunction with this, this article proposes a novel and efficient deep learning architecture for an IR system. Both NMIs and MIs are retrieved using this proposed deep learning method.

Figure 1 shows the IR system for medical images and NMIs using a feature descriptor and feature optimizer with a feature matching algorithm. The feature descriptor extracts the local features from the query image, the feature optimizer optimizes the described features from the images, and the feature matching algorithm is used to retrieve similar images from the database.

Section 2 states and describes the conventional IR system for retrieving non-medical and MIs; Section 3 proposes a novel feature extraction and optimizer based IR system; Section 4 states the IR experimental results and their discussion, and the conclusion is given in Section 5.

Figure 1. Image Retrieval (IR) system using feature descriptor and feature optimizer with feature matching algorithm

2. Literature Survey

A content based retrieval methodology for retrieving the MIs from the dataset images using a deep learning approach has been proposed by Saranya and Chinnadurai [12]. This method used Wavelet-Hadamard Transform for obtaining the low and high frequency components. Further, Grey Level Co-occurrence Matrix (GLCM) was computed as a feature extractor, and these energy based features were optimized using an artificial optimization algorithm to find the rank priority features. The Bhattacharyya Coefficient based distance computation algorithm was developed for the IR process. The knowledge texture pattern based IR system using a content-guided ranking mechanism has been reported before [13]. The depth-aware Representation Fusion algorithm was used in this work to fuse the texture pattern features for obtaining a higher IR rate. Then, the modified CNN algorithm, which was based on the distance computation method, was tested on large datasets. The MIs have been retrieved from the medical imaging database using a deep learning framework model as illustrated by Vasudeva and Chandrashekara [14]. In this work, the GLCM features were combined and classified by the combination of the Artificial Neural Network algorithm and a convolutional logic-based Long Short-Term Memory (LSTM) classification algorithm for improving the IR rate.

The text based medical IR system using the Unified Medical Language framework model has been proposed before [15]. This method computed the medical dependent texture pattern features, and a deep matching algorithm was used to train and classify the proposed IR system in order to improve the precision and image recall index rate on verified medical and non-medical imaging datasets. The local texture pattern descriptor based features for the CBIR system have been proposed in the study of Kelishadrokhi et al. [16]. The local textures improved the retrieval system classification rate and improved the performance on both medical and non-medical systems. This retrieval approach attained 95.5% RP, 96.3% RR, 96.1% RA, and 96.5% RFS on the NMI case images and also attained 96.3% RP, 96.2% RR, 96.2% RA, and 96.1% RFS on the MI case images. The re-ranking algorithm for retrieving images from the medical imaging datasets has been proposed by Ayadi et al. [17]. The contents and their features from the various module regions in the images were segmented using the morpho-texture region segmentation algorithm.

The main implications of this literature section are highlighted below.

•Most of the researchers used conventional CNN architectures for retrieving images from the databases.

•The conventional IR system uses separate algorithms for MIs and NMIs, which increases the IR system complexity.

•The conventional CNN architecture requires a larger number of externally derived features from the database in order to increase the IR rate.

The novelty of this research work is given below.

•An efficient, unique IR algorithm has been proposed in this research work, which performs the retrieval of the images with respect to both medical and non-medical cases.

•The Dual Branched Deep Learning (DBDL) algorithm has been proposed to retrieve both non-medical and MIs.

•The developed DBDL architecture has been designed with layers that are connected in parallel format with a higher number of filter kernels to generate an optimum number of internal features to increase the IR rate.

By emphasizing its parallel-branch design for feature extraction and fusion, as well as the incorporation of an FCM-based head for managing the fused feature representation, the suggested framework makes a methodological addition. Only the particular architectural design and integration approach that the experimental findings support will be covered by the novelty claims in this work.

3. Proposed Methodologies

In this article, both medical and NMIs are retrieved using the proposed deep learning algorithm. The multi-level Gabor transformation has been applied to all the images in the image database for local and global texture feature computation. The computed texture feature set is optimized using a Genetic Algorithm (GA) approach using a fitness computation process. The optimized texture feature set is applied to the proposed deep learning algorithm. The features of the query image are obtained by applying the multi-level Gabor transformation process, and then GA is applied to the obtained texture feature set to scrutinize the optimum set of features. The optimized texture feature set is applied to the proposed deep learning algorithm. Here, the DBDL Algorithm is proposed for performing the classification process, which classifies the query image into either medical or NMI with respect to the training features. After testing the query image as either medical or NMI, its corresponding feature set is fed into the similarity computation algorithm with the feature set received from the database. This proposed similarity computation algorithm computes the similarity of images using the distance metrics in order to produce the retrieval results. Figure 2 shows the proposed medical imaging retrieval system using a deep learning algorithm.

Figure 2. Proposed medical imaging retrieval system using deep learning algorithm

3.1 Multi level Gabor module

The Gabor filter has been widely used for either texture pattern identification in the image or computing the texture features from the image. Here, the Gabor filter is mainly used for computing the different orientation based texture features, which are used for the classification of the MIs. In this work, the Gabor 2D filter has been used for computing the features from the source MIs. The 2D-Gabor filter design has been depicted in Eq. (1) below.

$G(i, j)=e^{-\frac{i^2+\gamma \times j^2}{2 * \sigma^2}} \times \operatorname{Cos}\left(2 \pi \times \frac{i^2}{f}+\varphi\right)$              (1)

where, $G(i, j)$ is the 2D Gabor filter kernel with respect to parameters $i$ and $j, \sigma$ is the standard deviation, $\gamma$ is the aspect ratio of the filter, and $\varphi$ is the phase with frequency $f$.

The term e( ) sets the spatial localization, and the term Cos ( ) sets the sinusoidal carrier. The fine texture features have been computed from the MIs if the frequency '$f$' has a high value. The Coarse texture features have been computed from the MIs if the frequency '$f$' has a low value. Moreover, the horizontal and vertical texture features have been computed from the MIs for the orientation values of 0 degrees and 90 degrees, respectively. The spatial width of this 2D Gabor filter has been controlled by the standard deviation parameter. The smooth texture features have been computed from the MI if $\sigma$ is higher in value, and the sharp texture features have been computed from the MIs if $\sigma$ is lower in value. Moreover, the aspect ratio $\gamma$ is used to control the ellipticity. If $\gamma$ is equal to one, then the ellipticity is circular shaped, and if $\gamma$ is elongated in shape.

Here, the frequency '$f$' is set to 4, and the orientation value is set to 0, 45, 90, and 135 degrees, respectively, with respect to the frequency value and 0.25 wavelength value; hence, 4 Gabor filter kernels are generated. These generated 4 Gabor kernels are convolved with the source MI to derive the various directional texture features, and all the generated texture features are fed into the optimization module to select the optimized texture features for performing the effective MI classification process.

3.2 Feature optimization process

GA is a kind of stochastic search algorithm to locate the higher relevant feature values in a larger feature map or matrix [18]. The higher dimensional feature map has been reduced using GA, which finds the optimal features in the subset feature matrix. Due to the implementation of GA, the system complexity of the proposed work is significantly reduced. This evolutionary method works on the computed feature map through four processing steps: selection, crossover, mutation, and fitness [19]. The interpretability of the feature maps is optimized by the four processing steps of GA. This GA is explained in the following steps.

Step 1: Selection of chromosomes

The chromosomes are chosen based on the feature value or map size. In this work, two chromosomes are selected, and the probability of chromosome selection is given below.

$p(i)=\frac{f_i}{\sum_{i=1}^s f_i}$                             (2)

where, $p(i)$ is the selected chromosome with fitness function of $f_i$ and 's' represents the size of the population.

Step 2: Perform crossover function between the selected chromosomes. The recombination process combines two chromosomes to produce the offspring chromosome using the following Eq. (3).

Chromosome $_{\text {offspring }}=$ $\alpha \times$ Chromosome$_{p 1}+(1-\alpha) \times$ Chromosome$_{p 2}$              (3)

where, two selected chromosomes are represented as Chromosome$_{p 1}$ and Chromosome${ }_{p 2}$ and $\alpha$ denotes the optimization crossover factor.

The optimization crossover factor must be a value between 0 and 1.

Step 3: Perform the mutation function between the crossover chromosomes. It performs a small random change in chromosome features to obtain the optimal diversity in order to avoid the premature convergence problem.

The mutation process has been done using the below Eq. (4).

$C_m=\left\{\begin{array}{c}1-C_c ; \text { if } r<m(p) \\ C_c ; \text {else}\end{array}\right.$                 (4)

where, $C_c$ is the crossover gene in the chromosome, $C_m$ is the mutated gene in the chromosome, and '$r$' is the mutation factor, which lies between 0 and 1 in this work, and $m(p)$ is the probability of the mutation process.

Step 4: Select the optimal features using the fitness function. The optimization is performed using the fitness function. The optimization is performed if the fitness value is high. The fitness function is depicted in the equation.

Fitness $=\alpha \times A_m-\beta \times \frac{F_i}{N_t}$                        (5)

where, $\alpha$ is the fitness weight index, $A_m$ is the accuracy value of the GA model, $\beta$ is the fitness optimization factor, $F_i$ is the optimized feature count, and $N_t$ is the total feature count.

To differentiate the feature-selection stage from the retrieval evaluation stage, the technique has been made clear in this paper. The query images should be kept out of GA optimization and used only in the retrieval assessment; the GA fitness function specified in Eq. (5) should only be assessed using the training data. Following a consistent application of the chosen features to the database and query images, the ranked retrieval results are used to evaluate retrieval performance. This procedure eliminates the feature-selection leakage during the GA process.

Figure 3. Generation of FOM from the derived features using Genetic Algorithm (GA) functional workflow

Figure 3 shows the generation of FOM from the derived features using the GA functional workflow, where the four internal layers of the GA have been illustrated. The size of FOM is 128*128, and it is fed into the proposed DBDL algorithm.

3.3 Dual Branched Deep Learning algorithm

The optimized features are classified to produce the classification results using the classification algorithm. Conventional approaches for classification algorithms produced classification results using deep learning algorithms such as AlexNet, Inception, and EfficientNet. All these conventional deep learning algorithms used a sequential alignment design while connecting the internal layers, which consumed more feature map generation time. Due to this time period, the final image classification time is also increased, which is the main limitation of the conventional deep learning algorithms. This limitation has been overcome by constructing the proposed DBDL algorithm by designing and configuring the internal layers with respect to parallel form. This significantly reduces the final image classification time period. Moreover, the feature maps generated by the internal layers of the proposed DBDL architecture are higher in dimension, which also plays an important role in increasing the final image classification accuracy of the proposed system in this work.

This proposed DBDL Architecture (Figure 4) for the image classification process contains two individual modules, the Low Convolutional Feature Generated Module (LCFGM), High Convolutional Feature Generated Module (HCFGM), and a center module. Both LCFGM and HCFGM modules are used to generate more internal features, which improves the classification process for image differentiation.

Figure 4. Proposed Dual Branched Deep Learning (DBDL) architectural view for Image Retrieval (IR) process

The layers in the LCFGM module are designed with a low number of convolutional layers, and the filter count is low with different kernel sizes. This module contains four convolutional layers and two pooling layers, which are illustrated in the following equations.

$Convolutional$ $layers$ $=\left\{\begin{array}{l}C L L 11 \\ C L L 12 \\ C L L 13 \\ C L L 14\end{array}\right\}$                    (6)

$Pooling$ $layers$ $=\left\{\begin{array}{l}\ Pool 11 \\ \ Pool 12\end{array}\right\}$                 (7)

$\mathit{Specifications\ of}\ \{\mathit{CLL11}\}: 32\ \mathit{kernels\ along\ with}\ 3 \times 3\ \mathit{filter\ size}$          (8)

$\mathit{Specifications\ of}\ \{\mathit{CLL12}\}: 32\ \mathit{kernels\ along\ with}\ 5 \times 5\ \mathit{filter\ size}$               (9)

$\mathit{Specifications\ of}\ \{\mathit{CLL13}\}: 64\ \mathit{kernels\ along\ with}\ 3 \times 3\ \mathit{filter\ size}$         (10)

$\mathit{Specifications\ of}\ \{\mathit{CLL14}\}: 64\ \mathit{kernels\ along\ with}\ 5 \times 5\ \mathit{filter\ size}$   (11)

The FOM feature values are fed into CLL11 to generate the feature map, and this feature map is now sent to CLL12 to produce the lower sized feature maps. The output feature maps from both CLL11 and CLL12 are added and given into the HCFGM module. The output feature map from CLL12 are size reduced by Pool11 and its output is passed through the CLL13 to produce the 64 feature map which map contain negatuve values. These negative values, which are processed by the following layers, increase the uncertainty in output responses. Hence, its output is passed through the ReLU layer to remove the negativity in the output. After this layer, the output is now passed to Pool12 to reduce the CLL13 size and move to CLL14 to produce the 64 feature map by 5 × 5 filter size. The output feature maps from CLL13 and CLL14 are added and given to the center module, where its size is reduced by the Pool12 layer.

The layers in the HCFGM module are designed with a high number of convolutional layers, and the filter count is low with different kernel sizes. This module contains three convolutional layers and two pooling layers, which are illustrated in the following equations.

$Convolutional$ $layers$ $=\left\{\begin{array}{l}C L L 21 \\ C L L 22 \\ C L L 23\end{array}\right\}$             (12)

$Pooling$ $layers$ $=\{$Pool21$\}$                    (13)

$\mathit{Specifications\ of}\ \{\mathit{CLL21}\}: 1024\ \mathit{kernels\ along\ with}\ 5 \times 5\ \mathit{filter\ size}$     (14)

$\mathit{Specifications\ of}\ \{\mathit{CLL22}\}: 1024\ \mathit{kernels\ along\ with}\ 7 \times 7\ \mathit{filter\ size}$     (15)

$\mathit{Specifications\ of}\ \{\mathit{CLL23}\}: 1024\ \mathit{kernels\ along\ with}\ 5 \times 5\ \mathit{filter\ size}$    (16)

The FOM feature values are fed into CLL21 to generate the feature map, and this feature map is now sent to Pool21to produce the lower sized feature maps. The pooled feature maps are now passed through the CLL22 layer to generate 1024 feature maps sized at 7 × 7. These negative values, which are processed by the following layers, increase the uncertainty in output responses. Hence, its output is passed through the ReLU layer to remove the negativity in the output. The negativity-removed feature maps are now passed to CLL23 to produce the 1024 feature maps sized at 5 × 5. Finally, the feature maps from CLL14 and CLL23 are fused by the Feature Fuse Module (FFM), and the fused feature map is passed to the Fuzzy-C-Means (FCM) layers to produce the classified responses. The FFM output matrix size is about 21 × 21 × 1056. The dense layers in the traditional CNN architecture have been replaced by the FCM layer due to the design complexity of neuron formation and its weight assignments in the dense layer. The FCM is a type of unsupervised classifier that uses clustering principles for the classification process. It is mostly used for recognizing images with feature point values.

The FCM layer has been explained with the following steps.

Start;

Step 1: The cluster count and membership matrix have been fixed on the derived feature maps.

Step 2: Find the centroid, which is the cluster center in the feature map.

Step 3: Update the membership matrix using the computed centroid.

Step 4: Find the convergence between the updated membership matrix and the initial membership matrix.

Step 5: The classification results have been produced if the convergence value is less than the threshold; go to step 2.

End;

Table 1 shows the specifications of the modules in the proposed DBDL architecture with respect to the modules LCFGM, HCFGM, and the center region based on the Convolutional layers and pooling layers, with their kernel sizes along with the stride size.

Table 2 shows the experimental setup for the hyperparameters of the proposed DBDL Architecture.

Table 1. Specifications of the modules in the proposed Dual Branched Deep Learning (DBDL) architecture

Modules

Layers Name

Specifications

Output Size

Input POM size is 128 × 128

LCFGM

CLL11

32 kernels with 3 × 3 size

126 × 126 × 32

CLL12

32 kernels with 5 × 5 size

122 × 122 × 32

CLL13

64 kernels with 3 × 3 size

28 × 28 × 64

CLL14

32 kernels with 5 × 5 size

3 × 3 × 32

Pool11

Max-pooling function sized as a 4 × 4 window

30 × 30 × 32

Pool12

Max-pooling function sized as a 4 × 4 window

7 × 7 × 64

HCFGM

CLL21

1024 kernels with 5 × 5 size

124 × 124 × 1024

CLL22

1024 kernels with 7 × 7 size

25 × 25 × 1024

CLL23

1024 kernels with 5 × 5 size

21 × 21 × 1024

Pool21

Max-pooling function sized as a 4 × 4 window

31 × 31 × 1024

Note: Low Convolutional Feature Generated Module (LCFGM), High Convolutional Feature Generated Module (HCFGM).

Table 2. Experimental setup for the hyperparameters of the proposed Dual Branched Deep Learning (DBDL) architecture

Hyper Parameters

Experimental Setup Value

Batch size

150

Learning rate

0.002

Epochs

100

Loss function

Cross-entropy

Optimizer

SGD

Decay

0.2

Activation function

ReLU

Momentum

0.95

3.4 Similarity computation algorithm

The similarity between the query image and the images in the database is found using the similarity computation algorithm, which is described in the following steps.

Step 1: Compute the Gabor texture features using a multi-level Gabor filter from both the query image and all the images in the database.

Step 2: Perform the texture feature optimization using GA based on the feature fitness value from the query image feature set and the database feature set.

Step 3: Determine the distance computation process between the features of the query image and the features of all the images in the database using the distance metrics Euclidean, Manhattan, and cosine similarity.

The Retrieval Euclidean Distance (RED) [19] between the features of the query and the features of all the images in the database is given by the following equation.

$R E D=\sqrt{\sum_{i=1}^M\left(F Q_i-F D_i\right)^2}$                      (17)

where, $F Q_i$ is the feature set of the query image and $F D_i$ is the feature set of all the images in the database, and M is the total feature count in the database.

The Retrieval Manhattan Distance (RMD) [20] between the features of the query and the features of all the images in the database is given by the following equation.

$R M D=\sum_{i=1}^M\left|F Q_i-F D_i\right|$                     (18)

The Retrieval Cosine Similarity (RCS) [21] between the features of the query and the features of all the images in the database is given by the following equation.

$R C S D=\frac{F Q_i * F D_i}{\left|F Q_i\right| *\left|F D_i\right|}$                      (19)

Step 4: Sort the computed retrieval distances in ascending order and find the minimum retrieved distance using the equation below.

$S=\operatorname{minimum}\{R E D, R M D, R C S D\}$                       (20)

Step 5: Retrieve the best matching images from the database using the minimum distance between the query image and the database images.

Figure 5 shows the MI case IR results using the proposed algorithm, and Figure 6 shows the NMI case IR results using the proposed algorithm.

Figure 5. Medical Image (MI) case retrieval results: (a) pap smear cells (b) cervigram (c) X-ray chest (d) retina (e) lung CT (f) liver CT (g) kidney CT (h) brain MRI (i) pancreas CT (j) mammogram

Figure 6. Non-Medical Image (NMI) case retrieval results: (a) mountain (b) river (c) bus (d) car (e) tiger (f) cat (g) lion (h) cloud (i) table (j) bottle

4. Results and Discussion

The proposed IR system has been tested and validated on the medical and non-medical imaging datasets in this work. The entire proposed image retrieval algorithm has been experimentally verified in the hardware specifications of Intel Core i5 process with dual SSD drive and 16 GB RAM unit. MATLAB version 2022 has been used in this research article to obtain the simulation results.

In this article, MIs including CT and MRI are collected from standard benchmarked web links (Kaggle), and all these MIs are verified by an expert physician. A total of 14225 MIs are collected from Kaggle, and all these images are categorized into 1678 Pap smear cell images, 1500 Cervigram images, 3827 X-ray chest images, 1200 Retina images, 1562 lung CT images, 1209 Liver CT images, 378 Kidney CT images, 981 brain MRI images, 1029 Pancreas images, and 861 mammogram images. As these collected MI are having different image resolution, all these image size is converted into standard image size as 512 × 512 as image width and height respectively.

Moreover, this research work collects the NMI from the Kaggle resources to construct the Non-Medical imaging dataset to validate the proposed work's performance. A total of 15774 NMI are collected, and they are categorized into 2093 mountain images, 1982 river images, 2000 bus images, 1672 car images, 1500 tiger images, 1450 cat images, 1782 lion images, 1623 cloud images, 1000 table images, and 672 bottle images. As these collected MI are having different image resolution, all these image size is converted into standard image size as 512 × 512 as image width and height respectively.

Table 3. Dataset specifications for Non-Medical Image (NMI) and Medical Image (MI) cases

Non-Medical Image Case

NMI Count

Medical Image (MI) Case

MI Count

Mountain

2093

Pap smear cells

1678

River

1982

Cervigram

1500

Bus

2000

X-ray chest

3827

Car

1672

Retina

1200

Tiger

1500

Lung CT

1562

Cat

1450

Liver CT

1209

Lion

1782

Kidney CT

378

Cloud

1623

Brain MRI

981

Table

1000

Pancreas CT

1029

Bottle

672

Mammogram

861

Total NMI count

15774

Total MI count

14225

This research article obtains 29,999 images with respect to both MI and NMI categories and applies them to the proposed system to verify the effectiveness of the proposed IR system. Table 3 shows the dataset specifications for NMI and MI cases, and the NMI and MI counts for each dataset are clearly depicted in Table 3. The total NMI count in various dataset categories and the total MI count and its various categories have been clearly given in Table 3.

In this work, the entire database has been split into training and validation with respect to an 80% and 20% split-up, whereas 80% of images are trained and the remaining 20% of images are validated (tested). Hence, 29999 images are trained, and 5995 images are tested with 20 query images, where one query image belongs to each class.

The performance of the proposed IR system has been analyzed with respect to the following Equations. The Non-Medical Images Retrieval Rate (NMI-RR) is defined as the ratio between the truly retrieved relevant NMIs and the total NMI count, and the Medical Images Retrieval Rate (MI-RR) is defined as the ratio between the truly retrieved relevant MIs and the total MI count.

$\mathit{NMI\ Retrieval\ Rate}\ (\mathit{NMI}-\mathit{RR})=\frac{\mathit{Truly\ retrieved\ relevant\ NMIs}}{\mathit{NMI\ count}}$       (21)

$\mathit{NMI\ Retrieval\ Rate}\ (\mathit{MI}-\mathit{RR})=\frac{\mathit{Truly\ retrieved\ relevant\ MIs}}{\mathit{MI\ count}}$       (22)

The above parameters are estimated with respect to percentage.

Table 4 shows the computations of NMI-RR for the NMI case based on the truly retrieved relevant NMI and the total NMI count. The proposed IR system stated in this research work correctly retrieves 15712 NMIs out of 15774 NMIs, and hence this proposed system obtains 99.61% NMI-RR for the NMI case.

Table 4. Computations of Non-Medical Image Retrieval Rate (NMI-RR) for the NMI case

NMI Case

NMI Count

Truly Retrieved Relevant NMIs

NMI-RR

(Measured in Percentage)

Mountain

2093

2067

98.7

River

1982

1981

99.9

Bus

2000

1998

99.9

Car

1672

1668

99.7

Tiger

1500

1497

99.8

Cat

1450

1446

99.7

Lion

1782

1778

99.7

Cloud

1623

1620

99.8

Table

1000

988

98.8

Bottle

672

669

99.5

Non-Medical Image (NMI) case

15774

15712

99.55

 

Table 5 shows the computations of MI-RR for the MI case based on the truly retrieved relevant MI and the total MI count. The proposed IR system stated in this research work correctly retrieves 14169 MIs out of 14225 MIs, and hence this proposed system obtains 99.61% MI-RR for the MI case.

Table 5. Computations of Medical Image Retrieval Rate (MI-RR) for the MI case

MI Case

MI Count

Truly retrieved Relevant MIs

MI-RR

(Measured in Percentage)

Pap smear cells

1678

1672

99.6

Cervigram

1500

1496

99.7

X-ray chest

3827

3822

99.8

Retina

1200

1197

99.7

Lung CT

1562

1556

99.6

Liver CT

1209

1200

99.2

Kidney CT

378

372

98.4

Brain MRI

981

976

99.4

Pancreas CT

1029

1022

99.3

Mammogram

861

856

99.4

Total MI count

14225

14169

99.41

The retrieval of similar images with respect to NMI and MI cases is evaluated and analyzed using the equations below.

$Retrieval$ $Precision$ $(R P)=\frac{T P}{T P+F P}$                            (23)

$Retrieval$ $Recall$ $(R R)=\frac{T P}{T P+F N}$                                  (24)

$Retrieval$ $Accuracy$ $(R A)=\frac{T P+T N}{T P+T N+F P+F N}$              (25)

$Retrieval$ $F1$ $Score$ $(R F S)=\frac{2 * T P}{2 * T P+F P+F N}$                       (26)

where, TP states the correctly retrieved relevant MIs count, TN states the correctly retrieved non-relevant MIs count, FP states the incorrectly retrieved relevant MIs count, and FN states the incorrectly retrieved non-relevant MIs count.

Table 6 shows the performance estimation of NMI Retrieval evaluation metrics of the proposed system. The proposed IR system obtains 98.81% RP, 98.9% RR, 98.98% RA, and 98.85% RFS on the NMI case database.

Table 6. Performance estimation of Non-Medical Image (NMI) Retrieval evaluation metrics of the proposed system

NMI Case

Retrieval Evaluation Metrics (%)

RP

RR

RA

RFS

Mountain

98.3

99.3

99.1

98.80

River

98.1

99.1

98.9

98.60

Bus

99.4

99.6

98.5

99.50

Car

99.3

99.3

99.3

99.30

Tiger

99.6

98.9

99.1

99.25

Cat

98.3

98.5

99.4

98.40

Lion

98.1

98.2

98.2

98.15

Cloud

98.7

98.7

98.9

98.70

Table

98.9

98.5

99.3

98.70

Bottle

99.4

98.9

99.1

99.15

Mean value

98.81

98.9

98.98

98.85

Table 7 shows the performance estimation of MI Retrieval evaluation metrics of the proposed system. The proposed IR system obtains 99.07% RP, 99.15% RR, 99.11% RA, and 99.11% RFS on the MI case database.

Table 7. Performance estimation of Medical Image (MI) Retrieval evaluation metrics of the proposed system

MI Case

Retrieval Evaluation Metrics (%)

RP

RR

RA

RFS

Pap smear cells

98.9

99.4

99.3

99.15

Cervigram

99.3

99.2

99.1

99.25

X-ray chest

99.1

99.1

99.5

99.10

Retina

99.3

98.9

98.7

99.10

Lung CT

98.9

98.7

98.9

98.80

Liver CT

98.7

99.6

98.6

99.15

Kidney CT

98.9

99.3

99.3

99.10

Brain MRI

99.3

99.2

99.2

99.25

Pancreas CT

99.1

99.4

99.4

99.25

Mammogram

99.2

98.7

99.1

98.95

Mean value

99.07

99.15

99.11

99.11

The retrieval evaluation procedure has been determined using Precision@5 and mean Average Precision (mAP). The proposed system uses an NMI database containing 15,774 images and 20 query images, with 50 relevant database images defined for each query. Precision@5 is calculated based on the proportion of relevant images among the top five retrieved results, while mAP is computed by averaging the Average Precision across all query images using their ranked retrieval results. In the NMI database, the precision@5 (here k is set to 5) is 84%, and the mean AP mAP@5 is about 76.8%.

The proposed system uses the MI database containing 15,774 images and 20 query images, with 50 relevant database images defined for each query. In the NMI database, the precision@5 (here k is set to 5) is 80%, and the mean AP mAP@5 is about 71%.

Using the same class set, query set, and evaluation parameters as the proposed IR method (in this work), the comparative evaluation has been carried out by applying the conventional IR techniques on the same database. To guarantee a fair and trustworthy comparison, all of the conventional IR techniques have been reassessed (re-evaluated) using a uniform experimental approach. Hence, the performance of the proposed IR method has been compared with the performance of the conventional IR methods in this paper.

Table 8 shows the comparative analysis of the proposed IR system for the NMI case with respect to retrieval evaluation metrics on various conventional IR methods [12-17]. From these comparisons for the NMI case, the proposed IR system stated in this work obtains higher performance with respect to various retrieval parameters.

Table 8. Comparative analysis of the proposed Image Retrieval (IR) system for the Non-Medical Image (NMI) case with respect to retrieval evaluation metrics

NMI Retrieval Approaches

Retrieval Evaluation Metrics (%)

RP

RR

RA

RFS

Proposed method

98.81

98.9

98.98

98.85

Saranya and Chinnadurai [12]

97.1

98.1

97.2

98.7

Nan et al. [13]

97.3

97.6

97.4

98.3

Vasudeva and Chandrashekara [14]

96.9

97.2

96.9

97.1

Gasmi et al. [15]

96.3

96.7

96.4

97.4

Kelishadrokhi et al. [16]

95.5

96.3

96.1

96.5

Ayadi et al. [17]

95.1

95.6

95.3

96.2

Table 9 shows the comparative analysis of the proposed IR system for the MI case with respect to retrieval evaluation metrics on various conventional IR methods: Saranya and Chinnadurai [12], Nan et al. [13], Vasudeva and Chandrashekara [14], Gasmi et al. [15], Kelishadrokhi et al. [16], and Ayadi et al. [17]. From these comparisons for the MI case, the proposed IR system stated in this work obtains higher performance with respect to various retrieval parameters.

In order to ensure the performance efficiency of the proposed image retrieval system, two functional parameters are important: its image retrieval accuracy and the image retrieval time period. The image retrieval accuracy has been estimated and presented in Tables 6 and 7, respectively. The IR time period is defined as the time taken to retrieve the image from the database per millisecond. The IR time period should be as low as possible to improve the performance of the proposed IR system. The IR time period is different with respect to MI and NMI cases. Table 10 shows the comparative analysis of the proposed IR system with respect to IR time period for both MI and NMI cases. By analyzing the image retrieval time period of the proposed system with respect to the conventional IR approaches in Table 10, it is clearly reported that the proposed IR system stated in this research article outperforms the other similar IR methods in terms of both retrieval accuracy and IR time period. The entire proposed image retrieval algorithm has been experimentally verified in the hardware specifications of Intel Core i5 process with dual SSD drive and 16 GB RAM unit.

Table 9. Comparative analysis of the proposed Image Retrieval (IR) system for Medical Image (MI) case with respect to retrieval evaluation metrics

MI Retrieval Approaches

Retrieval Evaluation Metrics (%)

RP

RR

RA

RFS

Proposed method

99.07

99.15

99.11

99.11

Saranya and Chinnadurai [12]

98.1

98.4

98.2

97.4

Nan et al. [13]

97.8

97.6

98.1

97.1

Vasudeva and Chandrashekara [14]

97.3

97.3

97.8

96.8

Gasmi et al. [15]

96.7

96.7

97.3

96.3

Kelishadrokhi et al. [16]

96.3

96.2

96.2

96.1

Ayadi et al. [17]

95.9

95.8

95.9

95.5

Table 10. Comparative analysis of the proposed Image Retrieval (IR) system with respect to IR time period for both Medical Image (MI) and Non-Medical Image (NMI) cases

Retrieval Approaches

Image Retrieval Time Period (ms)

NMI Case

MI Case

Proposed method

0.32

0.41

Saranya and Chinnadurai [12]

0.98

0.96

Nan et al. [13]

1.25

1.67

Vasudeva and Chandrashekara [14]

1.67

1.98

Gasmi et al. [15]

1.89

2.06

Kelishadrokhi et al. [16]

2.09

2.16

Ayadi et al. [17]

2.15

2.54

By putting the various conventional IR approaches into practice in a shared experimental setting, the computing time of the proposed method will be contrasted with that of conventional approaches. A fair comparison will be carried out by applying the conventional methods to the same hardware configuration, identical database, and identical query set used for the proposed method (in this paper), since the execution times reported in earlier conventional methods/approaches may differ due to variations in hardware specifications, database sizes, and query sets. These same experimental settings will be used to compare the measured retrieval times of each conventional approach, which will be assessed using a uniform timing protocol. Hence, the IR time of the proposed method can be compared with the IR time of the conventional methods in this work.

Table 11 shows the comparisons of the IR system with respect to the proposed method (DBDL architecture) and other conventional architectures. From Table 11, it is observed that the proposed DBDL architecture based IR system provides high performance experimental results than the conventional systems.

Table 11. Comparison of the Image Retrieval (IR) system with respect to the proposed method (Dual Branched Deep Learning (DBDL) architecture) and other conventional architectures

Method

RP

RR

RFS

Inference Time (ms/Image)

Parameters (M)

Proposed Retrieval system (in this work)

98.81

98.9

98.85

0.32

8.75

AlexNet

96.72

96.61

96.66

3.2

61.10

Inception

97.31

97.18

97.24

2.7

24.15

EfficientNet

98.05

97.96

98

1.8

16.32

5. Conclusions

This article develops and proposes a novel framework model for the IR system that retrieves both medical and NMIs using the modified deep learning and distance computation algorithm. The multi-level Gabor features have been computed from the query image, and these multi-level features have been optimized by the GA technique. These optimized feature maps are now classified into either medical or NMIs using the proposed DBDL architecture. Then the distance computation algorithm computes the distances between the query image feature and the features of the images in the database. The proposed IR system stated in this research work correctly retrieves 15712 NMIs out of 15774 NMIs, and hence this proposed system obtains 99.55% NMI-RR for the NMI case. The proposed IR system stated in this research work correctly retrieves 14169 MIs out of 14225 MIs, and hence this proposed system obtains 99.41% MI-RR for the MI case. The proposed IR system obtains 98.81% RP, 98.9% RR, 98.98% RA, and 99.09% RFS on the NMI case database. The proposed IR system obtains 99.07% RP, 99.15% RR, 99.11% RA, and 98.85% RFS on the MI case database.

The main limitation of this research work is highlighted below.

All the medical and NMIs used in this work are from the online-database and the experimental results of the proposed method are based on these images only. The obtained experimental results will be varied by applying the proposed IR algorithm on the real time clinical images, which is identified as the main limitation of this research work. This limitation of this research work will be resolved by integrating the Transformer model with the proposed IR system in future extensions of this research work.

  References

[1] Elayaraja, P., Kumarganesh, S., Martin Sagayam, K., Dang, H., Pomplun, M. (2022). An efficient approach for detection and classification of cancer regions in cervical images using optimization based CNN classification approach. Journal of Intelligent & Fuzzy Systems, 43(1): 1023-1033. https://doi.org/10.3233/JIFS-212871

[2] Zhao, X.J., He, F., Li, K. (2025). Introducing an efficient method for feature extraction in image retrieval systems. Scientific Reports, 15: 43664. https://doi.org/10.1038/s41598-025-24118-0

[3] Sezavar, A., Farsi, H., Mohamadzadeh, S. (2019). Content-based image retrieval by combining convolutional neural networks and sparse representation. Multimedia Tools and Applications, 78(15): 20895-20912. https://doi.org/10.1007/s11042-019-7321-1

[4] Yenigalla, S.C., Rao, K.S., Ngangbam, P.S. (2023). Implementation of content-based image retrieval using artificial neural networks. Engineering Proceedings, 34(1): 25. https://doi.org/10.3390/HMAM2-14161

[5] Majhi, M., Mallick, A.K. (2022). Random projection and hashing based privacy preserving for image retrieval paradigm using invariant and clustered feature. Journal of King Saud University-Computer and Information Sciences, 34(9): 6829-6846. https://doi.org/10.1016/j.jksuci.2022.04.018

[6] Taheri, F., Rahbar, K., Beheshtifard, Z. (2024). Content-based image retrieval through fusion of deep features extracted from segmented neutrosophic using depth map. The Visual Computer, 40: 6867-6881. https://doi.org/10.1007/s00371-024-03335-0

[7] Salih, F.A.A., Abdulla, A.A. (2023). Two-layer content-based image retrieval technique for improving effectiveness. Multimedia Tools and Applications, 82(20): 31423-31444. https://doi.org/10.1007/s11042-023-14678-6

[8] R, T., Nesakumari, G.R. (2022). Image retrieval system based on multi feature extraction and its performance assessment. International Journal of Information Technology, 14(2): 1161-1173. https://doi.org/10.1007/s41870-020-00556-z

[9] Keisham, N., Neelima, A. (2022). Efficient content-based image retrieval using deep search and rescue algorithm. Soft Computing, 26(4): 1597-1616. https://doi.org/10.1007/s00500-021-06660-x

[10] Wang, L., Wang, H.L. (2017). Improving feature matching strategies for efficient image retrieval. Signal Processing: Image Communication, 53: 86-94. https://doi.org/10.1016/j.image.2017.02.006

[11] Jardim, S., António, J., Mora, C., Almeida, A. (2022). A novel trademark image retrieval system based on multi-feature extraction and deep networks. Journal of Imaging, 8(9): 238. https://doi.org/10.3390/jimaging8090238

[12] Saranya, E., Chinnadurai, M. (2025). Medical application driven content based medical image retrieval system for enhanced analysis of X-ray images. Scientific Reports, 15: 29115. https://doi.org/10.1038/s41598-025-14282-8

[13] Nan, Y., Zhou, H.C., Xing, X.D., et al. (2025). Revisiting medical image retrieval via knowledge consolidation. Medical Image Analysis, 102: 103553. https://doi.org/10.1016/j.media.2025.103553

[14] R., V., Chandrashekara, S.N. (2024). A novel deep learning-based framework for efficient content-based medical image retrieval. International Journal of Intelligent Systems and Applications in Engineering, 12(18s): 52-64. 

[15] Gasmi, K., Ayadi, H., Torjmen, M. (2024). Enhancing medical image retrieval with UMLS-integrated CNN-based text indexing. Diagnostics, 14(11): 1204. https://doi.org/10.3390/diagnostics14111204

[16] Kelishadrokhi, M.K., Ghattaei, M., Fekri-Ershad, S. (2023). Innovative local texture descriptor in joint of human-based color features for content-based image retrieval. Signal, Image and Video Processing, 17: 4009-4017. https://doi.org/10.1007/s11760-023-02631-x

[17] Ayadi, H., Torjmen-Khemakhem, M., Daoud, M., Huang, J.X., Jemaa, M.B. (2018). MF-Re-Rank: A modality feature-based re-ranking model for medical image retrieval. Journal of the Association for Information Science and Technology, 69(9): 1095-1108. https://doi.org/10.1002/asi.24045

[18] Chen, X.L., Li, J.Q., Wang, Z.X., Li, J.K., Gao, K.Z. (2025). A genetic programming based cooperative evolutionary algorithm for flexible job shop with crane transportation and setup times. Applied Soft Computing, 169: 112614. https://doi.org/10.1016/j.asoc.2024.112614

[19] Mussabayev, R. (2024). Optimizing euclidean distance computation. Mathematics, 12(23): 3787. https://doi.org/10.3390/math12233787

[20] Liu, W., Zhang, W. (2020). A quantum protocol for secure Manhattan distance computation. IEEE Access, 8: 16456-16461. https://doi.org/10.1109/ACCESS.2020.2966800

[21] Ristanti, P.Y., Wibawa, A.P., Pujianto, U. (2019). Cosine similarity for title and abstract of economic journal classification. In 2019 5th International Conference on Science in Information Technology (ICSITech), Yogyakarta, Indonesia, pp. 123-127. https://doi.org/10.1109/ICSITech46713.2019.8987547