Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

A medical imaging analysis system for trigger finger using an adaptive texture-based active shape model (ATASM) in ultrasound images

  • Bo-I Chuang,

    Roles Methodology, Software, Writing – original draft

    Affiliation Department of Computer Science and Information Engineering, National Cheng Kung University, Tainan, Taiwan

  • Li-Chieh Kuo,

    Roles Formal analysis

    Affiliation Department of Occupational Therapy, National Cheng Kung University, Tainan, Taiwan

  • Tai-Hua Yang,

    Roles Formal analysis, Resources

    Affiliation Department of Biomedical Engineering, National Cheng Kung University, Tainan, Taiwan

  • Fong-Chin Su,

    Roles Funding acquisition, Investigation

    Affiliation Department of Biomedical Engineering, National Cheng Kung University, Tainan, Taiwan

  • I-Ming Jou,

    Roles Formal analysis, Resources

    Affiliation Department of Orthopedics, E-Da Hospital, Kaohsiung, Taiwan

  • Wei-Jr Lin,

    Roles Investigation

    Affiliation Department of Biomedical Engineering, National Cheng Kung University, Tainan, Taiwan

  • Yung-Nien Sun

    Roles Conceptualization, Funding acquisition, Methodology, Validation, Writing – review & editing

    ynsun@mail.ncku.edu.tw

    Affiliation Department of Computer Science and Information Engineering, National Cheng Kung University, Tainan, Taiwan

Abstract

Trigger finger has become a prevalent disease that greatly affects occupational activity and daily life. Ultrasound imaging is commonly used for the clinical diagnosis of trigger finger severity. Due to image property variations, traditional methods cannot effectively segment the finger joint’s tendon structure. In this study, an adaptive texture-based active shape model method is used for segmenting the tendon and synovial sheath. Adapted weights are applied in the segmentation process to adjust the contribution of energy terms depending on image characteristics at different positions. The pathology is then determined according to the wavelet and co-occurrence texture features of the segmented tendon area. In the experiments, the segmentation results have fewer errors, with respect to the ground truth, than contours drawn by regular users. The mean values of the absolute segmentation difference of the tendon and synovial sheath are 3.14 and 4.54 pixels, respectively. The average accuracy of pathological determination is 87.14%. The segmentation results are all acceptable in data of both clear and fuzzy boundary cases in 74 images. And the symptom classifications of 42 cases are also a good reference for diagnosis according to the expert clinicians’ opinions.

1. Introduction

Trigger finger, which is usually caused by repetitive or forceful use of the finger, has become a frequent occupational disease in recent years. It occurs when a nodule is formed in the tendon, causing a mismatch of the volumes of the tendon and pulley. The tendon may become stuck at the mouth of the tendon sheath tunnel so that flexion and extension become ragged [1]. Treatment depends on severity. Corticosteroid injections can cure moderate cases. However, only surgery can resolve the symptoms at later stages.

In clinical settings, ultrasound imaging is used most in trigger finger diagnosis and surgery. Fig 1(A) shows an ultrasound tendon image acquired transversely at the first annular (A1) pulley position, and Fig 1(B) indicates the tendon and surrounding tissues. Pathological changes alter the tissue’s characteristics when it becomes irritated. Some research demonstrated that the A1 pulley or tendon becomes thick and hypoechoic. However, these studies segmented the tendon and pulley manually. Manual assessments may yield inconsistent results due to intra- and inter-observer deviations [24]. An image analysis system that automatically segments the tendon and synovial sheath may address these limitations.

thumbnail
Fig 1. Tendon and synovial sheath in the finger ultrasound image.

(a) acquired original image; (b) tendon (solid line), synovial sheath (broken line) area and surrounding tissues.

https://doi.org/10.1371/journal.pone.0187042.g001

As shown in Fig 1(B), the tendon is elliptical. The synovial sheath surrounds it, and the volar plate is attached underneath. The underlying tissues and the acquisition position and angle affect an ultrasound image’s quality. The synovial sheath’s boundary exhibits good contrast at the top region of Fig 2(A), while it is fuzzy in Fig 2(B). Similarly, the tendon’s lower boundaries appear different in Fig 2(A) and 2(B) because the volar plates echo at a wide range of intensities. Such variations may make it difficult to segment the tendon and sheath using only intensity-based clues. However, shape and local texture measures, such as the Gabor texture [5], are commonly used to increase the accuracy of the segmentation process. Several research groups have introduced shape-based methods, such as the active contour model (ACM) and active shape model (ASM), for tissue segmentation in ultrasound images [615]. Hamameh and Gustavsson [6] presented a method that combined the ASM with an ACM to clarify the boundary of the left ventricle in echocardiograms. Tsai et al. [11] and Chen et al. [12] proposed an automatic image analysis system that precisely measures the fetal craniofacial structures using a surface template model.

thumbnail
Fig 2. Different characteristics of edge at the synovial sheath (top region) and the volar plate (bottom region).

(a) better image quality; (b) worse image quality.

https://doi.org/10.1371/journal.pone.0187042.g002

Many of these studies segmented tissue by applying models to sonograms. However, model-based methods cannot always overcome the noise and deviations in images that prevent accurate segmentation. To increase reliability, many studies incorporated local texture features into model-based methods [1624]. Kim et al. [16] and Huang and Dony [17] used frequency-based texture features for tendon segmentation in equine legs. Christodoulou et al. [18] classified both symptomatic and asymptomatic atherosclerotic carotid plaques using 61 texture features and a self-organized map classifier. In these studies, using the texture features provided good results.

In this paper, we propose a new model-based method called the adaptive texture-based active shape model (ATASM) to segment tendons and synovial sheaths in clinical ultrasound images. We combine the model-based method with the use of texture features to segment the tendon and synovial sheath at the A1 pulley position from the ultrasound image. A new weighting mechanism is designed to adjust the contributions of different features in the objective function. To validate the proposed method, 58 finger ultrasound images are acquired and analyzed. In addition, we adopt the SVM classifier, using tissue size and textural features extracted from the segmented area to classify tendons as symptomatic or asymptomatic.

2. Materials and methods

2.1. Ultrasound data acquisition and ethics

The ultrasound image data are acquired from National Cheng Kung University Hospital and Ton-Yen General Hospital using MicroMaxx portable ultrasound system (Sonosite, Bothell, WA, USA) and t3000 ultrasound system (Terason, Burlington, MA, USA) with a 13MHz probe. Prior to participation, all participants were informed about the study’s aims and procedures and signed consent forms approved by the Institutional Review Board of National Cheng Kung University Hospital and Ton-Yen General Hospital (IRB number: HR-98-048). Each participant laid the hand on the table palm up for ultrasound acquisition. In all images, each pixel is 0.075x0.075mm2. To evaluate the characteristic differences between symptomatic (trigger finger) and asymptomatic samples, 21 images of each hand are acquired from both patients and normal individuals.

2.2. ATASM overview

Fig 3 shows the ATASM procedure, which included a training phase and segmentation phase. In the training phase, the model is constructed with several manually drawn contours, which are first aligned using a Procrustes analysis [25]. A principal component analysis (PCA) [26] is then applied to construct the point distribution model: (1) where is the average shape, P is the set of eigenvectors of shape variability, and b is the set of tunable shape parameters that control the weight of the eigenvectors. Tuning the parameters in b can adjust the shape to fit different targets. To prevent large deformation, each parameter must satisfy the following constraint: (2) where λi is the ith eigenvalue of the point distribution model.

In the segmentation phase, the point distribution model is modified by iteratively adjusting the pose parameters, including translation, scaling, and rotation, and then the shape parameters in b. Tendon images usually have poor quality and complex boundary characteristics. Therefore, to overcome complex tendon segmentation problems, we modify the ASM principle to include texture features as one of the energy terms and adopt the adaptive weighting mechanism. A genetic algorithm (GA, [27]) is then applied to optimize the final shape parameters by maximizing the objective function, which includes texture and gradient energies.

2.3. Shape model construction

In the training phase, the contour correspondence among the different training images is established. Contour correspondences are sampled as a set of control points according to the objects’ characteristic, such as a corner or cross point. Tendon and synovial sheath contours drawn by an expert are used for training the point distribution model separately. Because both the tendon and synovial sheath have elliptical shapes, the points at the top, bottom, left, and right are selected as control points. Four points between every two adjacent control points are evenly resampled to form a contour with 20 control points on the boundary, as shown in Fig 4. The control points on each training contour are then aligned using the Procrustes analysis [25]. After the alignment process, the PCA is applied to construct the point distribution model. The obtained mean shape and the eigenvector P are then used in Eq (1) to fit the image in the segmentation process.

2.4. Texture profile construction

The model is deformed by maximizing the energy function, which includes curvature, gradient, and texture information. Thus, texture profiles that contain the texture information from the training data are needed. Considering the textural characteristics of the tendon boundary, some of the Gabor [5] and Laws’ texture features [28] are also used in the energy function. The Gabor texture is a general texture descriptor that comprises a real component and an imaginary component representing the orthogonal directions. Both real and imaginary components are extracted using the real and imaginary parts of the Gabor filtered results: (3) (4)

The real and imaginary components of the Gabor images are extracted using Gabor filters with angles of 0°, 30°, 60°, and 90°. The tendon contours are longer and stabler on the upper and lower boundaries. The imaginary components of 0°in the Gabor images shows clear tendon boundary on the upper and lower parts, as shown in Fig 5(B), and thus is adopted as one of the texture features.

thumbnail
Fig 5. Texture images with different settings.

(a) original image; (b) imaginary section of Gabor with 0 degrees; (c) level-edge part of Laws’ texture energy measure images.

https://doi.org/10.1371/journal.pone.0187042.g005

The Laws’ texture energy measure is another famous texture feature and includes three types of masks: local averaging, an edge detector, and a spot detector. These are applied in both directions to obtain the texture images. Six texture features are extracted using six different 5x5-pixel square kernels. The tendon boundary using the level-edge kernel in Eq (5) has the most significant edge and is adopted as one of the texture features, as shown in Fig 5(C).

(5)

The texture features are computed on each control point and its four related points, two inside and two outside the contour every two pixels on the search line perpendicular to the current contour. Because we has 20 control points, each of which forms a 1x5 texture vector, we can concatenate the vectors and obtain a 1x100 vector of 100 texture values as the texture profile for each texture feature from each training image. The texture model is then constructed by averaging the texture profiles from all of the training images.

2.5. Energy function setup

In the original ASM, the gradient value along the search line at each control point is defined as the energy function. In tendon images, the gradient provides boundary information because of the high contrast between the hyperechoic tendon area and the hypoechoic area surrounding the synovial fluid. However, the gradient information is not adequate to find the tendon contour in complex ultrasound images. Clinicians also rely on texture. We thus adopt the Gabor and Laws’ texture measures as the features for the energy function in the ATASM. Because the tendon contour is usually smooth, the curvature of the control points is considered another feature of the energy function. In the ATASM, the energy function of the model deformation is maximized and defined as (6) where and are the weight and the value of kth energy term on the ith control point, respectively. Due to the different image characteristics of the tendon and synovial sheath, the energy terms are defined distinctively and are described in later sections.

2.6. Weight of energy term computation

The weights of the energy terms vary at different contour positions depending on the corresponding image characteristics. When computing the total ATASM energy, the most effective energy is assigned the highest weight. The larger energy value and larger standard deviation for a given energy term at a control point implies the energy term and position are more effective in ASM model modification. Thus, energy value and standard deviation are used to compute the weights. Along the search line, if the energy value on the correct tendon boundary is larger than on the other points and the standard deviation of the energy values is large, the energy term is considered effective in discerning the control point’s position. Based on this concept, the weights of energy terms are assigned by the following equation: (7) where , , and are the value, maximum value, and standard deviation, respectively, of the kth energy term at the ith control point across the search line in the tth training image and T is the total number of training images.

2.7. Shape model locating

In the ATASM, the shape model requires an initial location for the subsequent procedure. Due to the different characteristics of the tendon and synovial sheath, we employ different locating methods for the two types of tissue. In tendon segmentation, a coarse-to-fine matching mechanism is applied to locate the contour’s position automatically. In the synovial sheath segmentation, the contour is localized by the segmented tendon instead. The locating details are described in the next section.

2.8. GA-based energy optimization

Due to the noisy nature of ultrasound images, deformation may be trapped in many local optima. To obtain a near optimal tendon shape and prevent any deformation from being trapped in the local optima, we use the GA to search for the best shape parameter b.

GA-based energy optimization is an efficient method by which to search for the optimal solution in a complex search domain. The chromosomes are initialized with a random generator and then evolve iteratively to produce the global solution. GA’s evolution processes include reproduction, crossover, and mutation. In reproduction, the chromosomes with better fitness values are copied to the next generation. In crossover, the partial parameters in a couple of chromosomes are exchanged to produce a new chromosome. In mutation, a new parameter is randomly generated and substitutes for the old one in a chromosome.

In this research, every chromosome represents a set of shape parameters in b. The chromosomes of the initial population are first generated with a random generator, and each parameter bi of b is required to satisfy the constraint of point distribution model in Eq (2). In addition, the fitness function is designed as the energy function of the model deformation in Eq (6). In the GA reproduction step, roulette wheel selection is used to select the chromosomes with better fitness values. The single point crossover and mutation with probabilities of 50% and 1%, respectively, are used in each generation. The mutation process replaces a random shape parameter bi with a random value that satisfies the shape constraint in Eq (2). Elitism is applied to keep the best chromosome during evolution. If the best chromosome does not change for 10 generations, the evolution converges, and the elite chromosome is determined to be the best solution for b.

2.9. ATASM for tendon segmentation

In tendon segmentation, an intensity template has to be obtained and used to search for the tendon on the test image. From a given set of training images, a reference template covering the tendon area is first selected from a proper training image. Then, the obtained contours from all the other training images are aligned to the reference tendon contour by Procrustes analysis. The final intensity template is obtained by averaging the intensities of all the aligned training images, as shown in Fig 6. The resulting intensity template cam then be used to locate the tendon area on the test ultrasound image, and the corresponding tendon contour can be used as the initial ATASM contour.

In the model localization step, a coarse-to-fine matching mechanic is applied to initialize the contour position automatically. In the coarse matching, we first reduce the image resolution by two to increase the search speed. The input image is then split into several overlapping blocks. For each block, the sum of the absolute difference (SAD) value with respect to the intensity template is computed: (8) where A(x, y) and B(x, y) are the intensity values of a single block and intensity template at point (x, y) and N is the size of the template. The block with the smallest SAD value is selected to refine the initial position during fine matching. In the fine matching step, the transformation parameters of the minimum SAD value between the transformed intensity template and the selected block in the original image resolution are computed. The parameters are optimized with Powell’s method.

To set up the energy function, the segmentation target’s image characteristics are considered. Because the tendon boundary is usually smooth, the curvature at each control point on the contour is considered small. The internal energy term, which is the curvature value, is defined as (9) where c(x) is the position of control point x and the dot operator indicates the dot product of two vectors. The gradient properties that are bright inside and dark outside across the tendon boundary are used as two image energy terms for segmentation. Two types of energy terms, area-based gradient and line-based gradient , are defined as (10) (11) where and are the inside and outside 3x3-pixel rectangular areas on the perpendicular search line across the ith control points and and are the two opposite linear areas on the perpendicular search line across the ith control points. The area-based gradient using a rectangular window can reduce the noise effect when computing the gradient. Because the tendon area is light in intensity and the surrounding synovial fluid is dark and has a specific width, the line-based gradient is thus designed with a mask of 5x1 pixels. Both the Gabor and Laws’ texture energy terms are defined as (12) (13) where is the Gabor profiles with d degrees computed from the texture model and is computed from the deformed contour. The variables and are the Laws’ texture profiles computed from the texture model and the deformed contour, respectively. For these energy terms, 5x20 weights of energy terms for all the control points are computed using Eq (7).

2.10. ATASM for synovial sheath segmentation

Although the initial tendon localization is complicated, the localization of the synovial sheath is simple and can be defined based on the detected tendon position. In the synovial sheath segmentation, because the synovial sheath surrounds the tendon, the center position of the tendon is close to the center of the synovial sheath and can be used as the initial guess.

In synovial sheath segmentation, the definitions of the terms for curvature, Gabor, and Laws’ textures are the same as those in tendon segmentation. Because the synovial sheath is darker inside than outside, the gradient orientation on the synovial sheath boundary is defined from dark to bright, the opposite of the gradient orientation for the tendon. The area gradient and line gradient are thus modified as (14) (15)

Maximizing these energy terms help with the detection of the synovial sheath boundary.

2.11. Post-processing of synovial sheath segmentation

Because the lower portion of the synovial sheath connects to the volar plate and the tendon is tightly placed on the volar plate, the lower border of the synovial sheath is defined on the boundary between the tendon and the volar plate, as shown in Fig 7(B). The lower part of the tendon boundary within thirty degrees with respect to the y-axis is adopted as the lower synovial sheath boundary. Although the synovial sheath does have a closed boundary, the boundaries between the upper and lower endpoints of the synovial sheath are usually invisible in an ultrasound image. Therefore, we connect these endpoints using a second-order interpolation to approximate the synovial sheath boundaries on both the right and left sides as two parabolas. A segmentation example is shown in Fig 7.

thumbnail
Fig 7. Boundary of the synovial sheath.

(a) original image; (b) the lower part and upper parts of the synovial sheath boundary; (c) complete boundary after interpolation.

https://doi.org/10.1371/journal.pone.0187042.g007

3. Results and discussion

3.1. Experimental design

Due to the characteristics of the bottom side of the tendon boundary, all images are split into clear and fuzzy boundary groups by computing the average intensity difference between the two 15x15 windows above and below the bottom tendon boundary. If the average intensity of the window above is higher than the one below by 30, the image is placed in the clear boundary group. Otherwise, the image placed in the fuzzy boundary group. In each group, twenty images are used in the training phase. A total of thirty-eight images with clear boundaries and thirty-six images with fuzzy boundaries clustered from seventy-four images (S1 Dataset) are used in the experiments to evaluate the accuracy of the segmentation results. In the first experiment, the accuracy of proposed ATASM is evaluated. The ground truth is generated by a medical expert, Dr. T. H. Yang, who is asked to draw the boundaries of the tendon from seventy-four images separately three times in three consecutive weeks (once each week). The ground truth boundaries are then acquired by averaging the three boundaries (S2 Dataset). Three different segmentation methods, ACM, traditional ASM, and texture-based ASM which uses the same energy function as ATASM but with equivalent weights, are applied for comparison. Furthermore, two users who are trained to find the tendon in ultrasound are asked to outline the tendon boundaries from sixteen images. Each trained user is blinded to the ground truths and the results of the proposed method. These outlined results are used to evaluate the difference between the proposed ATASM method and human operation. In the second experiment, we evaluate the segmented synovial sheath using the proposed ATASM compared to the ground truth outlined by Dr. T. H. Yang. Thirty images with clear boundaries and twenty-seven images with fuzzy boundaries clustered from fifty-seven images are used in this experiment. In the last experiment, the segmentation results of the proposed system are used for the symptomatic vs. asymptomatic classification.

3.2. Evaluation metrics

To evaluate the segmentation results of the proposed method, two quantitative indexes, the mean of absolute distance (MAD) and the dice similarity coefficient (DSC), are used: (16) (17) where a and b are the control points of contour A and B and d(a, b) is the distance between a and b. MAD calculates the average distance between the ground truth and the segmented contour. DSC evaluates the ratio of the overlapped area to the total area of the two contours. Conventionally, the two contours, A and B, are deemed similar if the DSC is higher than 0.75.

In the symptomatic vs. asymptomatic classification experiment, the confusion matrix is constructed using the classification results. Accuracy and precision are computed from the confusion matrix with (18) (19) where TP, TN, FP, and FN denote true positive, true negative, false positive, and false negative, respectively.

3.3. Accuracy of tendon segmentation

The segmentation accuracies of tendons with clear and fuzzy boundary groups are shown in Tables 1 and 2, respectively. The average MAD values for tendon segmentation are 3.14 and 3.34 pixels, and the average DSC values are 0.91 and 0.90 for the two groups. Both average MAD and DSC values of the proposed ATASM are better than those of the other three segmentation methods for both groups. The first eight cases of the above two groups are also outlined by the two trained users. The results of proposed ATASM method are close to the ones of trained users. Fig 8 shows some tendon images (first column) and with the results of ACM (second column), traditional ASM (third column), texture-based ASM (fourth column), proposed ATASM (fifth column), trained user 1 (sixth column), and trained user 2 (seventh column). The first three rows are the images with clear boundaries and the remaining rows are the ones with fuzzy boundaries. Each resulting contour and ground truth are indicated as red and white line, respectively.

thumbnail
Fig 8. Resulting tendon segmentation images with different methods.

The ground truths are indicated in white and the segmentation results are indicated in red. The first three rows are the tendons with clear boundaries and the remaining rows are with fuzzy boundaries.

https://doi.org/10.1371/journal.pone.0187042.g008

thumbnail
Table 1. Accuracy measure of tendon segmentation (clear boundary).

https://doi.org/10.1371/journal.pone.0187042.t001

thumbnail
Table 2. Accuracy measure of tendon segmentation (fuzzy boundary).

https://doi.org/10.1371/journal.pone.0187042.t002

3.4. Accuracy of synovial sheath segmentation

As shown in Table 3, the average MAD values in images with clear and fuzzy boundaries are 5.12 and 4.54 pixels, respectively, and the average DSC values are 0.87 and 0.87, respectively. Compared with the ground truth, all the segmentation results exhibit DSC values higher than 0.75, which implies that the results are acceptable. Fig 9 shows the segmentation results of synovial sheath (red line) compared to the ground truth (white line).

thumbnail
Fig 9. Image results for synovial sheath segmentation.

The first column is the original images, and the second column is the segmented results (red line) and ground truth (white line).

https://doi.org/10.1371/journal.pone.0187042.g009

thumbnail
Table 3. Accuracy measure of synovial sheath segmentation.

https://doi.org/10.1371/journal.pone.0187042.t003

3.5. Symptomatic vs. asymptomatic classification

In this experiment, we compare the texture in the segmented tendon area to distinguish diseased tendons from normal. Two areas, the tendon area and the area inside the synovial sheath, and two types of texture features, a wavelet transform [29] and a gray level co-occurrence matrix [30], are used for symptomatic and asymptomatic finger classifications.

Wavelet transform is a commonly used transformation that decomposes data into high- and low-frequency parts in rows and columns by basis function. In this experiment, we use a stationary wavelet transform (SWT) and a wavelet packet (WP) to extract the features. The mean and standard deviation of each transformation image are computed to acquire features.

The gray level co-occurrence in four directions, 0°, 45°, 90°, and 135°, is used for feature extraction. A total of 12 features are described by Haralick et al. [30], and these features can be computed according to 1) Angular second moment, 2) Contrast, 3) Correlation, 4) Sum of squares variance, 5) Inverse difference moment, 6) Sum average, 7) Sum variance, 8) Sum entropy, 9) Entropy, 10) Difference variance, 11) Difference entropy, and 12) Information measures of correlation.

Due to the large number of features, we use a feature selection method to select the best feature set. An index called divergence value and described by Tsiaparas et al. in [31] is adopted: (20) where and are the standard deviations of the feature vector fi for the normal and abnormal data sets. The more important feature shows the smaller variance within classes and the larger variance between classes and results in the larger divergence value.

A total of 42 pairs of finger images (S3 Dataset) are acquired in this experiment. Each image pair contains the left and right hand images from a subject. In all these image pairs, there are twenty-one symptomatic pairs and twenty-one asymptomatic pairs. In the symptomatic pairs, one of the finger images has trigger finger disease, and the contralateral one is normal. In the asymptomatic category, both finger images are normal. For each pair of finger images, the tendon and synovial sheath are first segmented. A 41x21 pixels area at the center of the segmented tendon is used to extract the above-mentioned texture features. For each pair of images, the features are extracted, and the differences in the features of both hands are computed. These feature differences are then selected using the above-mentioned feature selection process. The image pairs are then classified as symptomatic or asymptomatic using these selected feature differences. In recent years, the deep learning methods have been widely used for classification [3234]. However, the amount of training data used to train the classification model is large. As the number of training data is not enough, deep learning method will be left for future investigation. Here, we used the support vector machine (SVM) for classification. In this study, a SVM library called LIBSVM [35], which uses second order information in the objective function for approximation [36] to attain a faster convergence than traditional SVM, is applied. The.

By computing the divergence value (Eq (20)) of each feature, we choose the most important 20 features from all the texture features for classification. The chosen features are given in Table 4, where haar, db4, db6, and coif are the different basis functions [31]. The confusion matrix is constructed and shown in Table 5. The system accuracy is 87.14%, and the precision is 82.38%. Based on the classification results, the selected geometric and texture features can be properly used for trigger finger identification.

4. Discussion

For tendon segmentation, the proposed ATASM achieves the lowest MAD values (3.14 and 3.34 pixels for clear and fuzzy boundary groups) and the highest DSC value (0.91 and 0.90 for clear and fuzzy boundary groups) among the adopted automatic methods as shown in Tables 1 and 2. The results of proposed ATASM are better than ACM (MAD = 6.71 and 4.69 pixels, DSC = 0.79 and 0.86), traditional ASM (MAD = 5.89 and 6.36 pixels, DSC = 0.82 and 0.82), and texture-based ASM (MAD = 4.22 and 5.27 pixels, DSC = 0.88 and 0.85). The segmentation results of ACM are rugged in many cases as shown in the second column of Fig 8 due to the lack of shape information. The traditional ASM contains the information of tendon shape from training images and obtains the more applicable tendon boundary than ACM. However, the energy term which only considers the gradient information is easily affected by the speckle noise. By adding the texture information in energy terms as in the texture-based ASM, the segmentation results are improved and less affected by the noise. Since the top boundary of the tendon surrounded by a narrow band of synovial fluid, and the boundaries on both sides of the tendon are usually blurry, the texture-based ASM using equivalent weights of energy terms is less effective in segmentation as shown in the fourth column of Fig 8. By adopting different weights of energy terms at different positions, the proposed ATASM can segment the upper and lower boundaries of tendon more precisely as shown in the fifth column of Fig 8. Compared to the two trained users, the proposed ATASM achieves the better results than user 1 (MAD = 4.93 and 3.33 pixels, DSC = 0.85 and 0.91), and close to the ones of user 2 (MAD = 2.95 and 2.11 pixels, DSC = 0.92 and 0.94). The user 1 obtains the worse MAD and DSC values because the bottom areas of tendon are misjudged as volar plate in two cases, as shown in the cases A and E of Fig 8. It means that the proposed method can obtain accurate results similar to the human operation.

In the synovial sheath segmentation, all the segmentation results for clear and fuzzy boundary cases are higher than 0.85 in averaged DSC values which imply good correspondence with the expert outlines. As shown in Fig 9, the top side of the synovial sheath can be correctly segmented by using the proposed ATASM. The boundary on the bottom side of the synovial sheath is also well segmented by using the good tendon segmentation results obtained in the previous step.

We also proposed the coarse-to-fine model matching for automatically locating the initial block of tendon as shown in Fig 10. Since the proposed intensity template containing both the tendon and surrounding synovial areas, which provide the necessary information for automatically locating the tendon block, the initial tendon block can be detected automatically. However, for those images with less synovial sheath areas or containing two tendons as in Fig 11(A) and 11(B), the tendon block is outlined manually.

thumbnail
Fig 10. Model matching results.

(a) image with clear boundary; (b) image with fuzzy boundary.

https://doi.org/10.1371/journal.pone.0187042.g010

thumbnail
Fig 11. Special cases of finger image.

(a) less synovial sheath area; (b) contains multiple tendons.

https://doi.org/10.1371/journal.pone.0187042.g011

As GA is adopted in ATASM for parameter selection, the segmentation process is repeated three times for different initials of GA and tested with five different images, and the resulting standard deviation of MAD is 0.52 pixels. This result shows that the proposed method can obtain the stable segmentation results with GA structure.

In order to test the stability of the proposed method with different training data sets, we had randomly selected ten training data from the tendon images with clear boundaries for model construction. Each set contains ten training images randomly selected from twenty training data. The constructed model was then applied to the thirty-eight images with clear boundaries to obtain the average MAD and DSC values of all segmentation results. The average MAD values of five trials were 4.07, 4.02, 4.04, 4.01 and 3.84 pixels. And the average DSC values were 0.89, 0.89, 0.88, 0.89, and 0.89. The standard deviation of MAD and DSC values of five trials were 0.08 pixels and 0.002, respectively. These results implied that the proposed ATASM structure with different training data set can achieve the good and similar segmentation results.

Our system also performs well with regard to classifying trigger finger and normal cases in the last experiment. The features selected by divergence value shows that the tissue areas and the low-frequency components of the wavelet transform, e.g., the A1 and A2A1 features, are the important features for classification, which satisfies the results of previous research [24] that the tendon with trigger finger may become thick and hypoechoic.

5. Conclusion

In this study, we develop a fully automatic segmentation system for the tendon and synovial sheath (S1 File). Because the characteristics of the tendon and synovial sheath boundaries exhibit large variations in ultrasound images, the conventional ASM cannot always achieve accurate segmentation results. The proposed ATASM can segment the tissue, which can be described using a statistical shape model with some variations in ultrasound images. The ATASM adopts the Gabor and Laws’ profiles as the texture features of tendon borders and uses adapted weighting to adjust the influence of energy terms at each control point in the energy function. Coarse-to-fine model matching is adopted for initializing the affine parameters of the ATASM model. GA-based optimization is used to maximize the energy function to determine the final organ shape. In the experiments, the MAD values are 3.14 and 3.34 pixels and the DSC values are 0.91 and 0.90 between our method and ground truth for the two image groups. These results are better than the ones by ACM, traditional ASM, and texture-based ASM, and similar to the human operations. In synovial sheath segmentations, the MAD values are 5.12 and 4.54 pixels and the DSC values are 0.87 and 0.88 that also implies good correspondence with the ground truth for synovial sheath. With the segmented area and the texture features, the proposed system performs well in classifying the normal and trigger fingers in the current clinical experiment.

The proposed study still has some limitations. Because there are acoustic shadows on the bottom two sides of synovial sheath in the axial ultrasound image, the parabolic interpolation is adopted in defining the sheath boundaries. For a better model of synovial sheath, we will acquire the contour shape either from other imaging modalities or with different ultrasound scanning structure. In addition, a larger number of subject images may also be acquired for further improving the tendon symptom classifications. Other finger symptoms, such as the de Quervain's syndrome, can also be included in the future clinical experiments.

Supporting information

S2 Dataset. Ground truth of Testing images: Each text file contains the ground trurh contour of corresponding image with the same file name.

Each row in the file is the point coordinate (X,Y) on the contour.

https://doi.org/10.1371/journal.pone.0187042.s002

(ZIP)

S3 Dataset. Tendon image pairs for classification.

https://doi.org/10.1371/journal.pone.0187042.s003

(ZIP)

Acknowledgments

The authors would like to express their appreciation for the grant under contract NSC 101-2221-E-006-059-MY3 from the Ministry of Science and Technology, Taiwan, R.O.C.. This work also utilized shared facilities supported by the Medical Device Innovation Center, National Cheng Kung University, Tainan, Taiwan, R.O.C..

References

  1. 1. Ryzewicz M, Wolf JM. Trigger digits: principles, management, and complications. The Journal of hand surgery. 2006 Jan 31;31(1):135–46. pmid:16443118
  2. 2. Guerini H, Pessis E, Theumann N, Le Quintrec JS, Campagna R, Chevrot A, et al. Sonographic appearance of trigger fingers. Journal of Ultrasound in Medicine. 2008 Oct 1;27(10):1407–13. pmid:18809950
  3. 3. Miyamoto H, Miura T, Isayama H, Masuzaki R, Koike K, Ohe T. Stiffness of the first annular pulley in normal and trigger fingers. The Journal of hand surgery. 2011 Sep 30;36(9):1486–91. pmid:21802865
  4. 4. Sato J, Ishii Y, Noguchi H, Takeda M. Sonographic appearance of the flexor tendon, volar plate, and A1 pulley with respect to the severity of trigger finger. The Journal of hand surgery. 2012 Oct 31;37(10).
  5. 5. Gabor D. Theory of communication. Part 1: The analysis of information. Journal of the Institution of Electrical Engineers-Part III: Radio and Communication Engineering. 1946 Nov 1;93(26):429–41.
  6. 6. Hamarneh G, Gustavsson T. Combining snakes and active shape models for segmenting the human left ventricle in echocardiographic images. InComputers in Cardiology 2000 2000 (pp. 115–118). IEEE.
  7. 7. He P, Zheng J. Segmentation of tibia bone in ultrasound images using active shape models. InEngineering in Medicine and Biology Society, 2001. Proceedings of the 23rd Annual International Conference of the IEEE 2001 (Vol. 3, pp. 2712–2715). IEEE.
  8. 8. Shen D, Zhan Y, Davatzikos C. Segmentation of prostate boundaries from ultrasound images using statistical shape model. IEEE transactions on medical imaging. 2003 Apr;22(4):539–51. pmid:12774900
  9. 9. Medina R, Bravo A, Windyga P, Toro J, Yan P, Onik G. A 2-D active appearance model for prostate segmentation in ultrasound images. InEngineering in Medicine and Biology Society, 2005. IEEE-EMBS 2005. 27th Annual International Conference of the 2006 Jan 17 (pp. 3363–3366). IEEE.
  10. 10. Cosío FA. Automatic initialization of an active shape model of the prostate. Medical Image Analysis. 2008 Aug 31;12(4):469–83. pmid:18346931
  11. 11. Tsai PY, Chen HC, Huang HH, Chang CH, Fan PS, Huang CI, et al. A new automatic algorithm to extract craniofacial measurements from fetal three‐dimensional volumes. Ultrasound in Obstetrics & Gynecology. 2012 Jun 1;39(6):642–7.
  12. 12. Chen HC, Tsai PY, Huang HH, Shih HH, Wang YY, Chang CH, et al. Registration-based segmentation of three-dimensional ultrasound images for quantitative measurement of fetal craniofacial structure. Ultrasound in medicine & biology. 2012 May 31;38(5):811–23.
  13. 13. Santhiyakumari N, Rajendran P, Madheswaran M, Suresh S. Detection of the intima and media layer thickness of ultrasound common carotid artery image using efficient active contour segmentation technique. Medical & biological engineering & computing. 2011 Nov 1;49(11):1299–310.
  14. 14. Gong XH, Lu J, Liu J, Deng YY, Liu WZ, Huang X, et al. Segmentation of uterus using laparoscopic ultrasound by an image-based active contour approach for guiding gynecological diagnosis and surgery. PloS one. 2015 Oct 30;10(10):e0141046. pmid:26516767
  15. 15. Liao X, Yuan Z, Zheng Q, Yin Q, Zhang D, Zhao J. Multi-scale and shape constrained localized region-based active contour segmentation of uterine fibroid ultrasound images in HIFU therapy. PloS one. 2014 Jul 25;9(7):e103334. pmid:25061939
  16. 16. Kim ND, Booth L, Amin V, Lim J, Udpa S. Ultrasonic image processing for tendon injury evaluation. InTime-Frequency and Time-Scale Analysis, 1998. Proceedings of the IEEE-SP International Symposium on 1998 Oct 6 (pp. 241–244). IEEE.
  17. 17. Huang Q, Dony RD. Neural network texture segmentation in equine leg ultrasound images. InElectrical and Computer Engineering, 2004. Canadian Conference on 2004 May 2 (Vol. 3, pp. 1269–1272). IEEE.
  18. 18. Christodoulou CI, Pattichis CS, Pantziaris M, Nicolaides A. Texture-based classification of atherosclerotic carotid plaques. IEEE transactions on medical imaging. 2003 Jul;22(7):902–12. pmid:12906244
  19. 19. Huang YL, Wang KL, Chen DR. Diagnosis of breast tumors with ultrasonic texture analysis using support vector machines. Neural Computing & Applications. 2006 Apr 1;15(2):164–9.
  20. 20. Zhy CM, Gu GC, Liu HB, Shen J, Yu H. Segmentation of ultrasound image based on texture feature and graph cut. InComputer Science and Software Engineering, 2008 International Conference on 2008 Dec 12 (Vol. 1, pp. 795–798). IEEE.
  21. 21. Iakovidis DK, Keramidas EG, Maroulis D. Fusion of fuzzy statistical distributions for classification of thyroid ultrasound patterns. Artificial Intelligence in Medicine. 2010 Sep 30;50(1):33–41. pmid:20427164
  22. 22. Padmanabhan K, Nedumaran D, Ananthi S. Gabor spectra for Doppler echocardiography. Medical and Biological Engineering and Computing. 1998 May 1;36(3):270–5. pmid:9747564
  23. 23. Puri M, Patil KM, Balasubramanian V, Narayanamurthy VB. Texture analysis of foot sole soft tissue images in diabetic neuropathy using wavelet transform. Medical and Biological Engineering and Computing. 2005 Nov 1;43(6):756–63. pmid:16594303
  24. 24. Niu L, Qian M, Yang W, Meng L, Xiao Y, Wong KK, et al. Surface roughness detection of arteries via texture analysis of ultrasound images for early diagnosis of atherosclerosis. PloS one. 2013 Oct 17;8(10):e76880. pmid:24146940
  25. 25. Kendall DG. A survey of the statistical theory of shape. Statistical Science. 1989 May 1:87–99.
  26. 26. Wold S, Esbensen K, Geladi P. Principal component analysis. Chemometrics and intelligent laboratory systems. 1987 Aug 1;2(1–3):37–52.
  27. 27. Goldberg DE. Genetic algorithms in search, optimization, and machine learning, 1989. Reading: Addison-Wesley. 1989.
  28. 28. Laws KI. Textured image segmentation. University of Southern California Los Angeles Image Processing INST; 1980 Jan.
  29. 29. Mallat SG. A theory for multiresolution signal decomposition: the wavelet representation. IEEE transactions on pattern analysis and machine intelligence. 1989 Jul;11(7):674–93.
  30. 30. Haralick RM, Shanmugam K. Textural features for image classification. IEEE Transactions on systems, man, and cybernetics. 1973 Nov(6):610–21.
  31. 31. Tsiaparas NN, Golemati S, Andreadis I, Stoitsis JS, Valavanis I, Nikita KS. Comparison of multiresolution features for texture classification of carotid atherosclerosis from B-mode ultrasound. IEEE Transactions on Information Technology in Biomedicine. 2011 Jan;15(1):130–7. pmid:21075733
  32. 32. Anavi Y, Kogan I, Gelbart E, Geva O, Greenspan H. A comparative study for chest radiograph image retrieval using binary texture and deep learning classification. InEngineering in Medicine and Biology Society (EMBC), 2015 37th Annual International Conference of the IEEE 2015 Aug 25 (pp. 2940–2943). IEEE.
  33. 33. Al Rahhal MM, Bazi Y, AlHichri H, Alajlan N, Melgani F, Yager RR. Deep learning approach for active classification of electrocardiogram signals. Information Sciences. 2016 Jun 1;345:340–54.
  34. 34. Kussul N, Lavreniuk M, Skakun S, Shelestov A. Deep Learning Classification of Land Cover and Crop Types Using Remote Sensing Data. IEEE Geoscience and Remote Sensing Letters. 2017 May;14(5):778–82.
  35. 35. Chang CC, Lin CJ. LIBSVM: a library for support vector machines. ACM transactions on intelligent systems and technology (TIST). 2011 Apr 1;2(3):27.
  36. 36. Fan RE, Chen PH, Lin CJ. Working set selection using second order information for training support vector machines. Journal of machine learning research. 2005;6(Dec):1889–918.