Automatic Frame Selection Using MLP Neural Network in Ultrasound Elastography This research was funded by Richard and Edith Strauss Foundation.

Automatic Frame Selection Using MLP
Neural Network in Ultrasound Elastography thanks: This research was funded by Richard and Edith Strauss Foundation.

Abdelrahman Zayed Department of Electrical and Computer Engineering,
PERFORM Centre,
Concordia University, Montreal, QC H3G 1M8, Canada
1
   Hassan Rivaz Department of Electrical and Computer Engineering,
PERFORM Centre,
Concordia University, Montreal, QC H3G 1M8, Canada
1
1email: a_zayed@encs.concordia.ca, hrivaz@ece.concordia.ca
Abstract

Ultrasound elastography estimates the mechanical properties of the tissue from two Radio-Frequency (RF) frames collected before and after tissue deformation due to an external or internal force. This work focuses on strain imaging in quasi-static elastography, where the tissue undergoes slow deformations and strain images are estimated as a surrogate for elasticity modulus. The quality of the strain image depends heavily on the underlying deformation, and even the best strain estimation algorithms cannot estimate a good strain image if the underlying deformation is not suitable. Herein, we introduce a new method for tracking the RF frames and selecting automatically the best possible pair. We achieve this by decomposing the axial displacement image into a linear combination of principal components (which are calculated offline) multiplied by their corresponding weights. We then use the calculated weights as the input feature vector to a multi-layer perceptron (MLP) classifier. The output is a binary decision, either 1 which refers to good frames, or 0 which refers to bad frames. Our MLP model is trained on in-vivo dataset and tested on different datasets of both in-vivo and phantom data. Results show that by using our technique, we would be able to achieve higher quality strain images compared to the traditional methods of picking up pairs that are 1, 2 or 3 frames apart. The training phase of our algorithm is computationally expensive and takes few hours, but it is only done once. The testing phase chooses the optimal pair of frames in only ms.

Keywords:
Ultrasound elastography Frame selection Multi-Layer perceptron (MLP) classifier Neural networks Principal component analysis (PCA)

1 Introduction

Ultrasound elastography is a branch of tissue characterization that aims to determine the stiffness of the tissue. Elastography has a significant potential in improving both detection and guiding surgical treatment of cancer tumors since tumors have higher stiffness values compared to the surrounding tissue [1]. Elastography can be broadly divided into dynamic and quasi-static elastography [2], where the former deals with faster deformations in the tissue such that dynamics of motion should be considered. In this paper, we focus on quasi-static elastography, and in particular, quasi-static strain imaging where the final goal is to estimate strain images. In quasi-static elastography, tissue deformations are slow and therefore motion dynamics can be ignored.

In spite of the wide range of applications that quasi-static elastography has, it is highly user-dependent, which has hindered its widespread use. A pure axial compression yields higher quality strain images compared to a compression that has both in-plane and out-of-plane displacements. Therefore, the user needs to be highly skilled in axially deforming the tissue. Even for highly skilled users, some organs are hard to reach and the probe needs to be held in angles and directions that make imaging yet more challenging. Therefore, it has become crucial to develop a method for selecting the frames that result in strain images of high quality.

In order to make the strain image quality independent of the experience the user has in applying purely axial compression, Hiltawsky el al. [3] developed a freehand applicator that can apply purely axial force regardless of the user’s experience. The transducer could be put on a fixed surface moving vertically in the range of 1 to 2 mm.

Jiang at al. [4] worked on frame selection by defining a quality metric for performance assessment and maximizing it. This metric depends on the normalized cross correlation (NCC) between Radio-Frequency (RF) frames and the NCC between their corresponding strain images.

Another approach by Foroughi et al. [5] used an external tracker that gives complete information about the location of the RF frame at the time of being produced, where frames collected from the same plane are selected. Among the selected frames, they only chose some of them according to a defined cost function that maximized axial compression.

Although the previously mentioned approaches showed an improvement over the traditional way of picking up RF frames while maintaining a fixed gap between them, they also have some drawbacks, such as the need for an external mechanical applicator [3] or an external tracking device [5]. Other approaches such as [4] need to calculate the strain before determining whether the pair of frames is good or not, so we can’t use it in real-time applications, especially when we have a search range for finding good frames.

Herein, we introduce a novel real-time method for determining good RF frames used to obtain high-quality strain images, without the need of any external hardware. In the training phase, we calculate a set of principal components for quasi-static elastography. In the test phase, we develop a fast technique to find any compression as a weighted sum of those principal components. We then develop a Multi-Layer Perceptron (MLP) Neural Network to classify each pair of RF data as suitable or unsuitable for elastography.

2 Methodology

Let two RF frames and be collected before and after some deformation in the tissue. Our goal is to determine whether or not they are suitable for strain estimation. However, developing a classifier that takes the RF frames as an input and outputs a binary decision is not practical, as the number of samples in each RF frame is approximately one million, and therefore, a large network with a powerful GPU is required [6, 7]. To solve the problem, we calculate principal components that describe the axial displacement as the tissue deforms. These principal components are represented by to . Fig. 1 shows some of these principal components learned from real experiments. We then calculate a coarse estimation of the axial displacement that occurred to the pixels between the two frames using Dynamic Programming (DP) [8], where we only get an integer value of the axial displacement. Due to the computational complexity of DP, we don’t run it on the whole RF image, it is only run on a very small number of RF lines to get their displacement. After that we decompose the displacement into a linear weighted combination of the principal components that we computed offline. The resulting weight vector corresponds in a one-to-one relationship with the displacement image, but it has a lower dimensionality, which means that we can use it as the input to a multi-layer perceptron (MLP) classifier.

2.1 Feature extraction

Let the dimensions of each of the RF frames and be , where refers to the number of samples in an RF line and is the number of RF lines. We start by choosing equidistant RF lines (where ), then we run DP to get their integer displacement values, resulting in estimates (where ). We then form a -dimensional vector c that has the displacement estimates of only a few sparse points out of the total that we have in the RF image. In the next step, we form the matrix A such that

(1)

where to refer to the 2D coordinates of our sparse points chosen along the RF lines. We then solve the optimization equation below:

(2)

This means that the linear combination of the principal components multiplied by the weight vector would result in the displacement image with the minimum sum-of-squared error. Algorithm 1 summarizes the procedure for feature extraction.

Figure 1: Principal components of in-plane axial displacement learned from both in-vivo and phantom experiments. Top row represent desirable axial deformation principal components.
1:procedure  
2:     Choose equidistant RF lines
3:     Run DP to get the integer axial displacement of the RF lines
4:     Solve Eq. 2 to get the vector w
5:     Pass the vector w as input to the MLP classifier
6:end procedure
Algorithm 1

2.2 Training the MLP Classifier

We train an MPL classifier that takes the weight vector as the input feature vector, and outputs a binary decision whether the displacement is purely axial or not. Figure 2 shows the architecture of the used MLP model, which consists of an input layer, two hidden layers and an output layer. Our model is relatively simple due to having a low-dimensional input vector. The training is done by minimizing the mis-classification error using the cross-entropy loss function, and backpropagation is used to calculate the gradients. The applied optimization technique is the Adam optimizer [9] with a learning rate of . The MLP code is written in Python using Keras [10].

Figure 2: The architecture of the MLP binary classifier. The network has two hidden layers and is fully connected.

2.3 Data Collection

2.3.1 PCA Model

For our training data, we collected 3,163 RF frames from 3 different CIRS phantoms (Norfolk, VA), namely Models 040GSE, 039 and 059 at different locations at Concordia University’s PERFORM Centre using a 12R Alpinion (Bothell, WA) ultrasound machine with an L3-12H high density linear array probe. The center frequency is 8.5 MHz and the sampling frequency is 40 MHz. We allowed both in-plane and out-of-plane motion during collecting the data, where the probe could move in the 6 degrees of freedom (DOF). In addition, we have access to 420 RF frames collected from 4 patients undergoing liver ablation, where testing is done on only one of them. The choice of the number of principal components was made so as to represent the displacement image in a simpler form while keeping most of the variance of the data. We chose which captures of the variance present in the original data using only a 12-dimentional feature vector.

2.3.2 MLP Classifier

We trained our model using 1,012 pairs of frames from the in-vivo liver data through different combinations where each frame is paired with the nearest 16 frames forming 16 different pairs. We used 80% of the data for training and 20% for validation. Testing was done on a completely different dataset to ensure generalization. It is important to note that the ground truth (i.e. high or low quality strain image) was obtained by Abdelrahman Zayed through manual inspection of the strain image obtained using the Global Ultrasound Elastography technique [11]. The criteria for labelling the output as a good strain image were visual clarity and the ability to distinguish the inclusion from the surrounding tissue.

3 Results

We set RF lines as trials showed us that choosing a value for more than 5 would not improve the quality of the strain image [12]. The number of hidden units in the MLP classifier is a hyperparameter that is chosen in a way so as to have the highest accuracy on the validation data. The first and second hidden layers contain 64 and 32 hidden units respectively with a Rectified Linear Unit (ReLU) as the activation function. The output layer has two neurons with a softmax activation function.

For the PCA model, the unoptimized MATLAB code takes 5 hours to train the model, but it is only done once. During test time, extracting the features for two very large RF images of size using the procedure in Algorithm 1 takes ms on a 7th generation 3.4 GHz Intel core i7. As for the MLP classifier, training takes seconds after extracting the features from all the training dataset. For testing, our model takes only ms to choose the best frame by searching in a window composed of the nearest 16 frames (8 frames before and 8 frames after the desired frame), assuming that feature extraction is already done for the test dataset.

Our model is tested on both tissue-mimicking phantom data and in-vivo liver data. In order to be able to accurately measure the improvement in the quality of the strain image, we use two quality metrics which are the signal to noise ratio (SNR) and contrast to noise ratio (CNR) [13], calculated as follows:

(3)

where and are the strain average and variance of the target window (as shown in Figures 3 and 5), and are the strain average and variance of the background window respectively. We use the background window for SNR calculation (i.e. = and =). The background window is chosen in uniform areas. For the target window, we selected a window that lies completely inside the inclusion to show the contrast.

3.1 Phantom Results

We used data acquired from the CIRS elastography phantom Model 059 at a center frequency of 10 MHz and sampling frequency of 40 MHz using the 12R Alpinion E-Cube ultrasound machine. Fig. 3 shows the B-mode image as well as the axial strain images calculated using both our method and the fixed skip frame pairing. Fig. 4 shows the SNR and CNR of the axial strain images calculated from the same experiment. It is clear that our automatic frame selection substantially outperforms simply skipping one, two or three frames. Table 1 summarizes the data in Fig. 4 by computing the average and standard deviation of the SNR and CNR.

(a) B-mode
(b) Strain from Skip 1 method
(c) Strain from Skip 2 method
(d) Strain from Skip 3 method
(e) Strain from our method
Figure 3: The B-mode ultrasound and axial strain image for the phantom experiment.
Figure 4: A comparison between the SNR and CNR of the automatic frame selection and the fixed skip frame pairing for the phantom experiment. Rows 1 to 3 show the results for skipping 1 to 3 frames respectively.
(a) B-mode
(b) Strain from Skip 1 method
(c) Strain from Skip 2 method
(d) Strain from Skip 3 method
(e) Strain from our method
Figure 5: The B-mode ultrasound and axial strain image for the in-vivo experiment.

3.2 In-vivo data

Our in-vivo results were obtained from one patient undergoing open surgical radiofrequency thermal ablation for primary or secondary liver cancers. The data was acquired at Johns Hopkins Hospital, with full details of the data collection protocol outlined in [14]. Fig. 5 shows the B-mode image as well as the axial strain images using both our method and the fixed skip frame pairing. Table 2 shows the average and standard deviation of the SNR and CNR of the axial strain images computed from the same experiment. As observed in the phantom experiment, automatic frames selection substantially improves the quality of the strain images.

Method used              SNR             CNR
Skip 1 12.27  10.11
Skip 2   3.54      3.80  
Skip 3   5.24      6.34  
Our method 22.15  19.77
Table 1: A comparison between SNR and CNR of the automatic frame selection and the fixed skip frame pairing for the phantom experiment. The numbers for each method show average standard deviation.
Method used             SNR             CNR
Skip 1 13.87 12.92
Skip 2 13.60     5.30
Skip 3 13.54 11.05
Our method 21.25 17.12
Table 2: A comparison between the SNR and CNR of the automatic frame selection and the fixed skip frame pairing for the in-vivo experiment. The numbers for each method show average standard deviation.

4 Conclusion

In this work, we presented a novel approach for real-time automatic selection of pairs of RF frames used to calculate the axial strain image. Our method is easy to use as it does not require any additional hardware. In addition, it is very computationally efficient and runs in less than 2 , and as such, can be used to test many pairs of RF frames in a short amount of time. Given that ultrasound frame rate is very high, and that there exist many combinations of two frames, this low computational complexity is of paramount practical importance. Our method can be used commerially where for each input RF frame, we choose the best possible frame to be paired with it among the collected frames.

Acknowledgements

The authors would like to thank the principal investigators at Johns Hopkins Hospital Drs. E. Boctor, M. Choti and G. Hager for providing us with the in-vivo liver data.

References

  • [1] Gennisson, J.L., Deffieux, T., Fink, M., Tanter, M.: Ultrasound elastography: principles and techniques. Diagnostic and interventional imaging 94(5), 487–495 (2013)
  • [2] Hall, T.J., Barboneg, P., Oberai, A.A., Jiang, J., Dord, J.F., Goenezen, S., Fisher, T.G.: Recent results in nonlinear strain and modulus imaging. Current medical imaging reviews. 7(4), 313–327 (2011)
  • [3] Hiltawsky, K.M., Krüger, M., Starke, C., Heuser, L., Ermert, H., Jensen, A.: Freehand ultrasound elastography of breast lesions: clinical results. Ultrasound in medicine & biology 27(11), 1461–1469 (2001)
  • [4] Jiang, J., Hall, T.J., Sommer, A.M.: A novel performance descriptor for ultrasonic strain imaging: A preliminary study. IEEE transactions on ultrasonics, ferroelectrics, and frequency control 53(6), 1088–1102 (2006)
  • [5] Foroughi, P., Kang, H.J., Carnegie, D.A., van Vledder, M.G., Choti, M.A., Hager, G.D., Boctor, E.M.: A freehand ultrasound elastography system with tracking for in vivo applications. Ultrasound in medicine & biology 39(2), 211–225 (2013)
  • [6] Kibria, M.G., Rivaz, H.: GLUENet: Ultrasound Elastography Using Convolutional Neural Network. In: Stoyanov D. et al. (eds) POCUS 2018/BIVPCS 2018/CuRIOUS 2018/CPM 2018. LNCS, vol. 11042, pp. 21–28. Springer, Cham (2018). doi:10.1007/978-3-030-01045-4_3
  • [7] Peng, B., Xian, Y., Jiang, J.: A Convolution Neural Network-Based Speckle Tracking Method for Ultrasound Elastography. In: IEEE International Ultrasonics Symposium (IUS), pp. 206–212 (2018)
  • [8] Rivaz, H., Boctor, E.M., Foroughi, P., Zellars, R., Fichtinger, G., Hager, G.: Ultrasound elastography: a dynamic programming approach. IEEE transactions on medical imaging 27(10), 1373–1377 (2008)
  • [9] Kingma, D., Ba, J.: Adam: a method for stochastic optimization. In: International Conference on Learning Representations, pp. 1–13 (2014)
  • [10] Chollet, F.: Keras (2015). https://github.com/fchollet/keras
  • [11] Hashemi, H.S., Rivaz, H.: Global time-delay estimation in ultrasound elastography. IEEE transactions on ultrasonics, ferroelectrics, and frequency control 64(10), 1625–1636 (2017)
  • [12] Zayed, A., Rivaz, H.: Fast Approximate Time-Delay Estimation in Ultrasound Elastography Using Principal Component Analysis. IEEE Engineering in Medicine and Biology st Annual Conference, (in press)
  • [13] Ophir, J., Alam, S.K., Garra, B., Kallel, F., Konofagou, E., Krouskop, T., Varghese, T.: Elastography: ultrasonic estimation and imaging of the elastic properties of tissues. Proceedings of the Institution of Mechanical Engineers, Part H: Journal of Engineering in Medicine 213(3), 203–233 (1999)
  • [14] Rivaz, H., Boctor, E.M., Choti, M.A., Hager, G.D.: Real-time regularized ultrasound elastography. IEEE transactions on medical imaging 30(4), 928–945 (2011)
Comments 0
Request Comment
You are adding the first comment!
How to quickly get a good reply:
  • Give credit where it’s due by listing out the positive aspects of a paper before getting into which changes should be made.
  • Be specific in your critique, and provide supporting evidence with appropriate references to substantiate general statements.
  • Your comment should inspire ideas to flow and help the author improves the paper.

The better we are at sharing our knowledge with each other, the faster we move forward.
""
The feedback must be of minimum 40 characters and the title a minimum of 5 characters
   
Add comment
Cancel
Loading ...
398214
This is a comment super asjknd jkasnjk adsnkj
Upvote
Downvote
""
The feedback must be of minumum 40 characters
The feedback must be of minumum 40 characters
Submit
Cancel

You are asking your first question!
How to quickly get a good answer:
  • Keep your question short and to the point
  • Check for grammar or spelling errors.
  • Phrase it like a question
Test
Test description