Keywords

1 Introduction

Brain tumour segmentation, isolating the brain lesions from MR images, is one of the tedious tasks owing to wide variations in structure and gray-levels present in MR images. Efficient knowledge based fuzzy clustering [1, 2] and assisted techniques [3] offer to distinct the abnormal cells in MRI images. Owing to inherent parallel and adaptive computing properties, fuzzy logic inspired Artificial Neural Networks (ANN) [4,5,6] gained popularity among the computer vision researchers for MR image segmentation. Notable examples include a multi-class artificial neural network (ANN) classifier by Kumar et al. [5] for \(T1-CE\) MR images segmentation and Self-Organizing Feature Map (SOFM) contributed by Ortiz et al. [6]. However, to obtain anatomically correct MR image segmentation, ANN architectures are assisted by complex back-propagation algorithm and explicitly rely on intensity and spatial feature information.

The large scale of redundant intensity and spatial feature information prevalent in MR images have been avoided using Convolutional Neural Networks (CNNs) which revolutionized the field of computer vision. A shallow CNN comprising with two convolution layers is proposed by Zikic et al. [7] for brain tumour detection. Of late, a complete tumour detection framework using a binary CNN is also suggested by Lyksborg et al. [8]. In addition, to avoid the effect of over fitting, Pereira et al. [9] developed a CNN assisted by small kernels (\(3\times 3\)). However, in contrast to automated MR image segmentation, the Convolutional Neural Network based approaches often suffer due to lack of labeled MR images for training and high computational complexities and hence fully automatic MR image segmentations received much attention.

The inherent properties of quantum computing enables the quantum-inspired artificial neural networks to evolve in the field of pattern recognition. A quantum back-propagation algorithm assisted Quantum Multi-layer Self-organizing Neural Network (QMLSONN) architecture is proposed by Bhattacharyya et al. [10, 11] for fast and efficient binary image segmentation. In contrast to the complex quantum back-propagation algorithm employed in QMLSONN, Konar et al. [12, 13] resorted to quantum counter propagation of the network states and developed a Quantum Bidirectional Self-Organizing Neural Network (QBDSONN) Architecture characterized by a bi-level sigmoidal function suitable for binary image segmentation. Hence, the QBDOSNN architecture motivates the authors to apply on gray scale MR images with functional modification of the bi-level activation function to a multi-level sigmoidal activation function in quantum environment.

2 Basic Concepts of Quantum Computing

A qubit [14] is the normalized superposition of classical bits 0 and 1 and is the constituent unit of quantum processing represented as:

$$\begin{aligned} \begin{aligned} |\psi \rangle =\gamma _0|0\rangle + \gamma _1|1\rangle = \left[ {{\begin{array}{*{20}c} {\gamma _0} \\ {\gamma _1} \\ \end{array} }} \right] \end{aligned} \end{aligned}$$
(1)

where, \(|\gamma _0|^2+|\gamma _1|^2=1\), \(\gamma _0\) and \(\gamma _1\) are complex quantities.

Quantum computation is realized by quantum rotation gate which is the basis of quantum algorithms and is reversible in nature. The operation of a quantum rotation gate applicable on a single qubit can be shown as:

$$\begin{aligned} {\begin{array}{*{20}c} \left[ {{\begin{array}{*{20}c} {\gamma _0'} \\ {\gamma _1'} \\ \end{array} }} \right] =\left[ {{\begin{array}{*{20}c} {\cos \omega } &{} {-\sin \omega } \\ {\sin \omega } &{} {~~\cos \omega } \\ \end{array} }} \right] \times \left[ {{\begin{array}{*{20}c} {\gamma _0} \\ {\gamma _1} \\ \end{array} }} \right] \\ \end{array} } \end{aligned}$$
(2)

The set of superimposed quantum states \(|\psi _i\rangle \) with \(0-1\) basis forms a Hilbert Hyperspace and the quantum system is defined using the wave function \(\phi \) as

$$\begin{aligned} |\psi \rangle = \sum _k^n p_k |\phi _k\rangle \end{aligned}$$
(3)

On quantum observation, the quantum systems interacts with the physical system and the true outcome is obtained.

3 Quantum Inspired Bi-Directional Self Organizing Neural Network (QIBDS Net) Architecture

The proposed QIBDS Net architecture replicates the Quantum Bi-Directional Self Organizing Neural Network (QBDSONN) architecture [12, 13] with functional modification in the form of a novel quantum inspired multi-level sigmoidal activation (QIMUSIG) function targeted to address the gray levels pertaining to MR Images. Three layers of neurons viz.,input, hidden and output are composed of qubits in the suggested QIBDS Net architecture as illustrated in Fig. 1. The QIBDS Net employs the rotation angle for the interconnection strength and the threshold, represented as \(\varPhi \) and \(\nu \) respectively. The activation \(|\tau \rangle \) can be interpreted as

Fig. 1.
figure 1

Quantum Inspired Bi-Directional Self-Organizing Neural Network (QIBDS Net) architecture (Few Inter-layer connections are provided for visibility).

$$\begin{aligned} |\tau \rangle =\left[ \begin{array}{c} cos \nu \\ sin \nu \\ \end{array} \right] \end{aligned}$$
(4)

Without exploring the imaginary section of qubits, the input-output dynamics of the network layers is defined as

$$\begin{aligned} {\begin{matrix} |z\rangle = f_{QIBDSNet}(\sum _l^n x_l \langle \varPhi _l|\tau _l \rangle )= f_{QIBDSNet}(\sum _l^n x_l cos(\alpha _l-\nu )) \end{matrix}} \end{aligned}$$
(5)

where, \(x_l\) is input to the quantum neuron. The activation function, \(f_{QIBDSNet}(x)\) is defined as:

$$\begin{aligned} f_{QIBDSNet}(x)=\frac{1}{\rho _\omega +e^{-\mu (x-\theta )}} \end{aligned}$$
(6)

where, the steepness factor \(\mu \) and activation \(\theta \) are represented by qubits. The multi-level class response (gray level intensity) is exhibited by \(\rho _\omega \) and is defined as

$$\begin{aligned} \rho _\omega = \frac{B_N}{\beta _\omega -\beta _{\omega -1}}, 1\le \omega \le L \end{aligned}$$
(7)

where \(\omega \) is class index; \(\beta _\omega \), \(\beta _{\omega -1}\) are class outputs and the summation of the 8-connected neighborhood gray-scale pixels contribution is denoted as \(B_N\). The QIMUSIG activation function with varying steepness factor \(\mu \) is shown in Fig. 2. Owing to wide variation of image pixel intensities and pertaining to MR images, four distinct adaptive activation schemes have been introduced in the suggested network architecture over 8-connected neighborhood pixels [15]. These are

Fig. 2.
figure 2

Multi-class response of QIMUSIG activation function \(f_{QIBDS Net}(x)\) for \(\mu =12,16,22\) and class \(L =8\)

1. Activation based on \(\varrho \)-distribution (\(\theta _\varrho \))

2. Activation based on skewness (\(\theta _\chi \))

3. Activation based on heterogeneity (\(\theta _\xi \))

4. Activation based on fuzzy cardinality estimate (\(\theta _\nu \)).

Suppose, the response of the intermediate and output layers neurons are denoted as \(|In_j \rangle \) and \(|Ou_i\rangle \) respectively. In addition, the inter connection weights between input to intermediate layer and intermediate to output layer are expressed as \(|\varPhi _{kj}\rangle \) and \(|\varPhi _{ji}\rangle \) respectively with the activations \(|\tau _{j}\rangle \) and \(|\tau _{i}\rangle \) at the intermediate layer and output layer, respectively. The input-output relation of a quantum neuron can be defined as [12]

$$\begin{aligned} \begin{aligned} |Ou_i\rangle =f_{QIBDSNet}(\sum _j^N y_j \langle \varPhi _{ji}|\tau _i \rangle )=\\ f_{QIBDSNet}(\sum _j^N f_{QIBDSNet}(\sum _k^L x_k \langle \varPhi _{kj}|\tau _j \rangle )\langle \varPhi _{ji}|\tau _i \rangle )\\ i.e., |Ou_i\rangle =f_{QIBDSNet}(\sum _j^M f_{QIBDSnet}(\sum _k^L x_k cos(\alpha _{kj}-\nu _j))cos(\alpha _{ji}-\nu _i)) \end{aligned} \end{aligned}$$
(8)

Quantum observation allows to evaluate the error incurred by QIBDSNet at the output layer and guided by \(\alpha \) and \(\nu \) as:

$$\begin{aligned} \xi =\frac{1}{2}\sum \{\vartheta (t+1)-\vartheta (t)\}^2 \end{aligned}$$
(9)

The inter-connection weights \(|\varPhi (t) \rangle \) (represented as qubits) are transformed into \(\vartheta (t)\) at a particular epoch (t) on quantum observation.

4 T1-Weighted CE MR Image Segmentation Using QIBDS Net

The input MR image pixels are received at the input layer of the suggested QIBDS Net as normalized fuzzy intensities and subsequently transformed into quantum states [0, \(\frac{\pi }{2}\)] as

$$\begin{aligned} x_k=\frac{\pi }{2}\times I_k \end{aligned}$$
(10)

where, normalized MR image pixels are designated by \(I_k\) and the transformed quantum states are described by \(x_k\). The proposed QIBDS Net is implemented on T1-weighted CE brain MR images from the available data sets [16] in PARAM SHAVAK super computer provided by CDAC, India. In the experimental set up, the steepness hyper-parameter, \(\mu \) is tailored between 0.24 to 0.25 with step size 0.001 and the three distinct sets \(F_{\lambda _{\omega L}} = \{c_1,c_2,c_3\}\) of class level, \(L =\{8\}\) are used. A tiny cluster, considered as tumour is erroneously exposed as outcome after the segmentation and hence to remove these small clusters with threshold (\(\sigma =4\)), a post processing operation has been performed.

Fig. 3.
figure 3

Skull stripped input MR images (a) slice no: 5 (b) slice no: 68 manually segmented tumor for (c) slice no: 5 and (d) slice no: 68 [16]. Segmented tumours followed by post processing using (e) fuzzy-clustering [1] (f) SOFM [6] and (g) CNN [9] from slice no. 5

Fig. 4.
figure 4

\((a-d)\) QIBDS Net segmented and followed by post-processing with color map images (Yellow-enhanced tumor region, Green-non-enhanced tumor region and Sky blue-edema region) for slice no. 5 using \(L=8\) transition levels with four different thresholding schemes \(\theta _\varrho \) (\(a-a'')\), \(\theta _\chi \) (\(b-b''\)), \(\theta _\xi \) (\(c-c''\)) and \(\theta _\nu \)(\(d-d''\)) for the three distinct level sets \(c_1\) (\(a-d\)), \(c_2\) (\(a'-d'\)) and \(c_3\) (\(a''-d''\)) (Color figure online)

5 Results and Discussion

In the current experiments, in comparison to QIBDS Net, a CNN [9] is trained with 1200 MR images from the same data set [16] allowing maximum 100 epochs. 800 \(T_1\)-weighted CE MR images are used for validation and testing. Four different types of empirical goodness evaluation metrics (PPVSSACCDSC) [1] are used in the experiments. A similar post processing technique has been applied on the segmented output images obtained using SOFM [6], fuzzy-clustering method [1] and CNN [9]. Figure 3 shows the input skull-tripped sample MR slices with the manually segmented ground truth images and the segmented tumour using the state of the art methods. The proposed QIBDS Net segmented output MR images with the post processed tumour regions are demonstrated using the class levels \(L=8; \{c_1,c_2,c_3\}\) and four distinct activations \(\theta _\varrho \), \(\theta _\chi \), \(\theta _\xi \) and \(\theta _\nu \), as shown in Fig. 4.

The evaluation metrics: average accuracy (ACC), dice similarity (DSC), positive prediction value (PPV) and sensitivity (SS) using the suggested QIBDS Net with the class level \(L=8\) and activation (\(\theta _\xi \)) for three distinct level sets \(c_1,c_2,c_3\), SOFM, CNN and fuzzy-clustering method are reported in Table 1. It is evident from the results that the proposed QIBDS Net outperforms supervised SOFM and unsupervised fuzzy-clustering with respect to evaluation metrics and reports similar accuracy as the supervised CNN. However, the average DSC reported using CNN is superior to the QIBDSN Net which is demonstrated using Box plots as shown in Fig. 5.

Fig. 5.
figure 5

Box plot of the proposed QIBDS Net with the fixed class level \(L=8\) and class level sets \((a) c_1, (b) c_2\) and \((c) c_3\) and using (d) SOFM (e) CNN and (f) Fuzzy-clustering.

Table 1. A comparative analysis among the proposed QIBDS Net with activation (\(\theta _\xi \)), Fuzzy-Clustering, SOFM and CNN with one sided two sample KS test (significance level \(\alpha =0.05\) and values marked in bold

6 Conclusion

In this paper, a novel quantum-inspired bi-directional self-supervised neural network architecture referred to as QIBDS Net, has been evolved for fully automatic segmentation of MR images. To show the effectiveness of the suggested QIBDS Net, experiments have been performed on T1-weighted CE MR images and a comparative analysis with unsupervised fuzzy clustering, supervised self-organizing feature map (SOFM) and convolutional neural network (CNN) has been demonstrated on the same data set. It may be noted that QIBDS Net outperforms SOFM and fuzzy clustering based MR segmentation in terms of all evaluation metrics and yields similar accuracy as CNN in spite of being a self-supervised network architecture. However, it is a subject of investigation to demonstrate the effectiveness of QIBDS Net on BRATS data sets and authors are focusing in this direction.