Keywords

1 Introduction

Medical ultrasound (US) imaging stands as a technology widely used by anesthesiologists for the localization of nerves structures [14]. Despite being the standard tool for peripheral nerve blocking, the US strongly suffers from multiplicative acoustic noise and lack of structure homogeneity [16]. To deal with above issues, researches focus on the automatic segmentation of US including fetal catches [1, 8], blood vessels [10, 15], and pathological tissue [11, 19]. In general, the approaches of US segmentation are grouped into statistical approaches [9, 13], superpixel or patch-based approaches [2, 18], and texture and classification approaches [7, 12].

Nonetheless, there are few relevant approaches for peripheral nerve segmentation that provide on-line assistance to the anesthesiologists. Some of them include are clustering algorithms [4], Bayesian shape models [3]; and Gaussian processes [5, 6]. Despite reporting promising results, most of the works only test small US collections. Therefore, there is a need for tools allowing anesthesiologist visualization, validation, and analysis of automatic US processing.

This paper presents the design and development of software for the automatic segmentation of ultrasound images, termed HAPAN. HAPAN includes conventional segmentation and appearance and shape models as user alternatives. Besides, HAPAN as a support software deploys complementary tools ranging from digital filters to image resolution enhancement algorithms, developed to facilitate the visualization and localization of the nerve in ultrasound images.

The rest of the article is organized as follows. Section 2 provides a detailed analysis of materials and methods. Section 3 discusses the experimental results. Section 4 presents the concluding remarks and future research directions.

2 Materials and Methods

2.1 Database

The database used for building the HAPAN Software contains a collection of approximately 200 ultrasound images. Two peripheral nerves from 6 different patients were captured. Ultrasonic images were obtained by an acquisition system consisting of the combination of a portable NanoMaxx SONOSITE ultrasound system with a video converter (EASYCAP). The ultrasound system is used to acquire the image of the nerve to study by means of an ultrasonic transducer, and the EASYCAP system allows the scanner to communicate directly with the computer in which the processing will be performed. Any scanner that has similar characteristics to the one used in HAPAN could be compatible with the software. Acquired images go through a pre-processing stage which performs a series of adjustments in order to enhance the quality of the image.

Fig. 1.
figure 1

HAPAN software structure.

2.2 Software Development

HAPAN’s interface is comprised of two processing methods and two processing tools, which can be used at any time. The software structure can be seen in Fig. 1. Hapan allows many actions, Zoom In, Zoom Out, Open Images or Projects, Save Images or Projects, Helps and Captures Images directly from the scanner. Figure 2 shows the application interface in which the user can appreciate the different images generated by the software.

Fig. 2.
figure 2

Software interface for processing ultrasonic images.

2.3 Methodologies

Two different methodologies were used in the segmentation of the peripheral nerve: Classical Techniques and Appearance and Shape Models.

Classical Techniques. This methodology is based on the classical techniques of digital image processing, such as identifying edges, thresholding, dilation, erosion, opening, and closing areas. These techniques are used iteratively to identify the nerve structure in the ultrasound image.

Appearance and Shape Models. It is a semiautomatic method, which can be trained to learn the different forms of nerve structures that can be found in the database. This model requires, as an initial step, that the user locates an ellipsoidal contour on the region containing the nerve structure. Then, the algorithm adjust the contour to the nerve structure in the image. One of the drawbacks of this method is that it requires that the initial region (the ellipsoidal contour placed by the user) contains the nerve structure. If this constraint is not fulfilled, the algorithm would perform the segmentation to a different region of the image.

2.4 Tools

The HAPAN’s tools are used to improve the quality of the image and therefore to obtain a more accurate segmentation of the nerve structure. The user is allowed to change the parameters of these tools.

Image Filtering. When an echography is acquired by the scanner, the image is commonly corrupted either by Speckle noise, random variations in intensity, poor contrast or illumination variations as a result of changes in gain or depth of the scanner. The segmentation algorithms used in HAPAN were designed to tackle these effects to some extent. In some cases, these algorithms do not accomplish this goal; however, in those cases an improved segmentation is possible by using image filtering techniques. HAPAN includes the following filters:

  • Average filter: This is a two dimensional digital filter which averages the neighborhood of pixels. The default size for this filter is \(3\times 3\) pixels.

  • Gaussian: A Gaussian low pass digital filter with a symmetric rotation, with standard deviation sigma. The default size of this filter is \(3\times 3\) pixels and the default sigma’s value is 0,5.

  • Bayesian: A Bayesian framework is used to adapt the Non Local (NL) means filter for removing speckle noise in ultrasound images. This algorithm introduces the Pearson distance as a relevant measure for region comparison [20].

Super-Resolution. This tool allows to create a new image, based on the original, performing an increase of the resolution by an user-adjustable factor (2, 3, 4, and so on). The objective is to generate a high-resolution image from a single low-resolution image without any external training set. It uses a framework for both magnification and de-blurring using only the original low-resolution image and its blurred version. In this method, each pixel is predicted by its neighbors through a Gaussian process regression [17].

3 Experimental Results and Discussion

3.1 System Efficiency

The leftmost columns in Table 1 shows the results of the performance of the methodologies implemented in HAPAN in terms of computational consumption (CC) for each of the techniques used during the segmentation process. The test was performed on a Intel Core i3 with 4 GB RAM. The nomenclature used in Table 1 is CT: Classical Techniques, ASM: Appearance and Shape Models, AF: Average Filter, BF: Bayesian Filter, GF: Gaussian Filter, IR: Increased Resolution.

The results show that the computational consumption is considerably low when the user do not use any of the additional tools provided by the software. The results also show that the most efficient methodology (in terms of CC) are the classical techniques. This efficiency is due basically to the fact that its processes and algorithms have a low computational cost. The tools with the lowest cost (in terms of time) are IRFootnote 1 and BF.

3.2 Validation

This software has been tested using a database composed of ultrasound images. These images have been manually labeled by an anesthesiologist. The performance of the system was evaluated using two parameters: dice similarity coefficient and F1 score. These metrics have been computed for measuring the efficiency of both segmentation methods and the additional software tools.

Dice Similarity Coefficient (DSC). DSC is a commonly used metric for evaluating the accuracy of automated or semi-automated segmentation methods. In this work, DSC has been used as a statistical validation metric to evaluate the similarity between two samples (the labels created by the anesthesiologist and the labels provided by HAPAN).

F1 Score. F1 score is a measure of a test’s accuracy. It considers both the precision (the number of true positive results divided by the number of all positive results) and the recall (the number of true positive results divided by the number of true positive plus false negative results) of the test. The F1 score can be interpreted as a weighted average of the precision and recall, where an F1 score reaches its best value at 1 and worst at 0.

3.3 Practical Results and Discussion

This section presents the results obtained by HAPAN in the segmentation of the ultrasound images of the database. Figure 3 shows an example of an ASM segmentation process by using an image of a Median nerve. Figure 3(a) shows the original image without segmentation. Figure 3(b) presents the original image after the segmentation process. Figure 3(c) shows the image after both filtering and segmentation processes. Figure 3(d) illustrates the segmented image by taking as input an increased resolution version of the original image. Figure 3(e) shows the image obtained by increasing the resolution, filtering and applying the segmentation process on the original image.

Fig. 3.
figure 3

Example of a practical result obtained with HAPAN. (a) Original image. (b) Original image segmented using ASM. (c) Filtered image and segmented using ASM. (d) Increased resolution (\(\times \)2 factor) and segmented image using ASM. (e) Increased resolution (\(\times \)2 factor), filtered and segmented image using ASM.

The rightmost columns in Table 1 show the global performance results of the HAPAN software. These results were obtained by processing all the ultrasound images of the database. Both methodologies and all the additional tools were evaluated. Remind that the database was previously described in Sect. 2.1.

Table 1. Global performance results of the HAPAN software

Results in Table 1 show that the best segmentation performance, using DSC, can be obtained in the Cubital nerve (0,672 ± 0,04). This result is achieved using a Bayesian filter in the preprocessing stage and the ASM methodology for the segmentation process. However, it must be noticed that this performance is not statistically significant when compared to the same procedure in the Median nerve (0,604 ± 0,047).

When using the F1 score for comparing the effectiveness of the methodologies, results show that the best performance is achieved in the Median nerve (0,573 ± 0,042) by means of an Average filter and Classical techniques. This result improves significantly the performance obtained in the Cubital nerve by the same techniques.

Overall results show higher rates for the Median nerve. This may be a consequence of a more uniform anatomic structure of the Median nerve along the arm. Also, between the Cubital nerve and skin exist different anatomical structures that may degenerate the image capture.

Better results can be obtained with the combination of IR images and ASM rather than IR combined with Classical techniques. In contrast to ASM, CT is not fully compatible with IR. Take into account that IR tool increases image resolution and therefore changes its parameters. This may be a drawback since CT makes use of morphological operations with masks and cuts, which in turn depend on the parameters of the image (i.e. depth and resolution). Thereby, a manual readjustment becomes necessary in order to correct this problem. Nevertheless, it must be noticed that ASM is a supervised method while CT does not require user intervention, it is fully automatic.

4 Conclusions and Future Work

This work presents the HAPAN software supporting the automatic segmentation of peripheral nerves in ultrasound images for developing research, and clinical procedures. The results evidence that HAPAN as an interactive tool allows medical specialists to save time, providing a safer and higher quality process for patient healthcare.

Among the algorithms available in HAPAN, the ASM along with IR yield the best segmentation results thanks to including both supervised and unsupervised information. Particularly, ASM drastically reduces the search area of the nerve structure, thus avoiding undesired structures to appear in the ultrasound image.

As a future work, we plan to develop GPU algorithms to achieve real-time processing. Besides, we will extend the coverage of the database by including additional nerve structures.