01 Lung Cancer Diagnosis Based On Ultrasound
01 Lung Cancer Diagnosis Based On Ultrasound
Abstract— Cancer represents one of the leading causes of symptoms, even if some are nonspecific, which causes them to
mortality in this century. Patients suffering from lung cancer contact the doctor. Symptoms may be the consequence of the
(LC) have an average of 5 years life expectancy after diagnosis. primary tumor, which can cause local compression or can
This is due usually to late detection. The most common methods spread through metastasis to the rest of the body. In some
to detect lung cancer are computed tomography (CT) and cases, the primary tumor does not have a pulmonary location,
magnetic resonance imaging (MRI). These investigations are but it appears secondary, which is why the clinical picture can
invasive to the human body and are performed only based on a vary greatly from patient to patient. Cough is the most common
doctor’s recommendation, which comes usually after patients symptom of lung cancer. However, many smokers (those who
develop symptoms – hence the late detection of cancer. Nowadays
smoke for a long time) have chronic cough, so it is very
transthoracic ultrasonography (TUS) and US-guided biopsy have
gained a larger field in the management of patients with
important for a person with chronic cough to go to the doctor's
peripheral pulmonary nodules or masses. From the multiple control if they notice that the cough is changing or getting
ultrasonography (US) advantages which made it a well- worse.
established solution in the management of tumoral and non- There are two main types of lung cancer: small cell lung
tumoral abdominal pathology, few stand out: it’s non-invasive cancer and non-small cell lung cancer. The latter is the most
and has reduced costs. However, until now transthoracic US is common type and it can spread anywhere in the body through a
underused for lung cancer diagnosis because it can be hard to
process called metastasis. There are various methods for
interpret to determine an accurate diagnosis. In this paper we
diagnosing lung cancer and the most common used are:
aim to develop a software application for lung mass classification
based on ultrasound image processing. This could be an
computerized tomography (CT) scan, positron emission
important step in towards early detection of lung cancer, by tomography (PET) scan, magnetic resonance imaging (MRI)
introducing the transthoracic ultrasonography in the regular scan. In the case of PET scan [3, 4], it involves radioactive
annual check-up, improving the life expectancy of patients or tracers, but the exposure to radiation is minimal.
even complete recuperation. Ultrasonography (US) [3, 5] has been developed in order to
offer a lot of useful information about the tumors such as the
Keywords—lung cancer, ultrasonography, tumor detection,
tumor structure, vascularization, the stage of parietal invasion
image processing
and sometimes lymph node invasion. The US is less expensive
I. INTRODUCTION and comparatively safer technique than CT scans. More than
that, it is not recommended for the human body to perform a
Lung cancer (LC) represents a leading cause of cancer- CT, rather than by the doctor’s recommendation, because for a
related mortality worldwide. Recently published data estimates person it would take 3.3 years to get the same amount of
an increase of LC deaths worldwide from 1.6 million in 2012 background radiation that a CT delivers in less than a minute
to 3 million in 2035, [1]. It is the second most common cancer [3, 6]. Even considering the advantages of the US, it is not used
in both men and women due to the tobacco consumption. This for lung cancer detection. The main reason is that is very
is the main cause, but not the only one, because lung cancer is a difficult to interpret by lung specialists that are not used to
disease that can affect anyone. In some cases, previous lung perform transthoracic ultrasonography on patients. Plus, the
diseases (chronic bronchitis, emphysema, pneumonia, and lung is not visible on US if it is healthy and full of air.
tuberculosis) could have a role in the development of lung
cancer [2, 3].The assessment of patients with pulmonary focal Taking into consideration the multitude of advantages the
abnormalities continues to represent a major problem in LC US has to offer, we imagined an application which helps
diagnosis. doctors diagnose lung cancer. Hence, the main contribution of
this work consists in the development of a lung cancer (LC)
Unfortunately, the early stages of lung cancer may not diagnosis software application able to accurately and non-
show symptoms. As tumors grow in size, they can produce a invasively detect non-small cell lung cancers as part of a
variety of symptoms. There are patients who show certain research project. Until now, we developed a preliminary
Hence, the second stage of the pilot study consisted in the The entire software application was created in Matlab,
elaboration of the diagnostic software specifications that using its native image processing capabilities and complex
accurately detects cancer cells without any confusion, in order functions on top of which we implemented our own algorithms
to achieve the previously presented goals. The main features for feature. The algorithms were conjoined through the visual
that allow differentiation between benign tumors and malignant composition and temporal behavior of a graphical user
tumors are related to the shape of the nodules, the echogenicity interface, in order to enhance the efficiency and ease of use for
of the different regions and the regularity of their contours. An the underlying logical design of the program.
ellipsoid form or the presence of two or three well-defined lobs After the application started, the user has to load an
is considered benign finding. On the other hand, the presence ultrasound image and define a relatively accurate mask by
of ramifications or a form that is higher than wider are selecting the region of interest, from which the contour
considered to be malignant findings. Moreover, when algorithm will find its exact real margins, Fig.2. When acoustic
examining the smoothness of the contour, if it has micro-lobes, shadow is present on the image, a signal void behind structures
angular or spicular edges, they are interpreted as malignant like bones that strongly absorb or reflect ultrasonic waves, the
findings as opposed to a rounded and well-defined outline. user also has the possibility to add one or more white lines to
Finally, hyperechogenicity and the presence of an echogenic the image in order to separate those irrelevant areas. Having a
thin capsule increase the likelihood of benignity, while high intensity, the line stands in contrast with its surroundings,
calcifications and hypoechogenicity are associated with acting like a barrier. However, they only appear for this sole
malignant nodules. purpose, and not for the followed algorithms.
74
The similar to Geodesic edge-based active contour farthest away from the centroid point, is plainly the largest of
algorithm evolves the segmentation using an iterative process, all D distances. The second point, as well as the third, must be
performing the number of iterations given by the user, 200 situated as relatively opposite to this first one and to each other
being the default. The algorithm starts from the given mask, a as possible. Therefore, the second point has to be located on the
binary image that specifies the initial state of the active contour not closer than the sixth of the entire contour length, by
contour, and then grows outwards, expanding until it finds either side of the first point. Likewise, the third one must be at
object boundaries. In order to obtain faster and more accurate a length/6 distance of each of the other two points. This
segmentation results, an initial contour position that is close to algorithm assures the largest distance between the three corner
the desired object boundaries should be specified. points of the inscribed triangle, offering its largest area. The
circumscribed circle is then constructed exactly on these three
vital points, encapsulating the entire contour. If the difference
between this circle and the contour is larger than the triangle-
contour difference, the shape tends towards a more circular
one, or triangular otherwise.
C. Fade Algorithm
Another one of the five key features that has to be studied is
the differences of pixel intensities at the lower part of the
contour. This feature is also very important because a hard in
depth transition of the pixel intensities indicates the cancerous
nature of the lung lesion in opposition to a smooth in depth
transition. To obtain a coefficient in this sense, two different
brightness averages were computed from the pixels around the
Fig. 2. Diagnostic application users interface (In red is the defined starting
mask and in green is the obtained contour after the segmentation)
outline of the shape. One mean from the points found inside the
contour and the other for the ones outside, but only around its
The results obtained using the implemented key features lower outline, the top part not being of interest in this fade
extraction algorithms are displayed in the left lower part of the determination algorithm, Fig.3. The final result is obtained
detection system user interface. Having the exact uneven from the difference between these two means. If this
outline of the real region of interest, the centroid is easily coefficient is relatively small, meaning close to zero, the fade is
computed as well as the distances (D) between it and all the a slow one, barely visible, compared to the sudden intensity
contour pixels. For the five key factors that had to be analyzed change when the large result is obtained, the contour
in order to determine if the region of interest has stronger representing the border of a high contrast in brightness.
characteristics of a cancer or a non-cancer, the main FadeCoeff = (FadeCoeffExt/FadeCoeffInt-1)
algorithmic program was structured accordingly.
D(i) = Distance(ContourX(i),ContourY(i),CentreX,CentreY)
A. Contour Algorithm
The more non-superficial irregularities the contour has, the
more it indicates towards a tumorous nature. Therefore, once
the contour was determined, we developed an algorithm to
determine the smoothness of the lesion’s contour by computing
the differences between the peaks and valleys of the contour in
respect of the centroid. The output of the algorithm is a
coefficient obtained from the mean of all these differences. Fig. 3. Fade algorithm example
Perfect smoothness, meaning no differences between all the
supposed D fluctuations, would indicate not only the absence D. White Spots Algorithm
of peaks and valleys, but also the shape of the contour being a The conglomerates of higher intensity pixels inside the
circle of radius D. Consequently, the Contour Algorithm also contour represent the white spots. From a diagnostic point of
plays a part in determining the shape of the studied area. view the presence of whiter spots indicates the presence of
ContourCoeff = mean(abs(difference([peaks; valleys]))) healthier areas inside the tumor’s contour. The desired result is
one regarding their computed area compared to the whole
B. Shape Algorithm lesion contour surface. If the computed area of the brighter
Because the shape and the smoothness of the lesion contour pixels is high compared to the formation shape surface, it
are the most important features in distinguishing its nature, indicates the tumorous nature of the lesion. To find and obtain
another approach to the deduction of its shape is the the number of the brighter pixels, all points inside the contour
comparison of its surface to that of the circumscribed circle and are compared to the average intensity of that surface. The ones
the inscribed triangle (which can indicate pneumonia). To brighter than that threshold are added up and compared to the
determine the inscribed triangle, three points and their others through a ratio. In order to not count in also the brighter
coordinates are needed in such a way to obtain the largest pixels which are on the contour line, as part of the sudden fade,
possible area for the triangle. The first point, specifically the
75
the area studied is taken slightly smaller than that of the The second test scenario was to use the developed
shape’s outline. diagnostic system on new ultrasound images of both confirmed
cancers and other non-cancers to test if based on the
BrightPix = sum(Img(ROImg >= mean2(ROImg(shape==0)=0 > 0)))
determined nominal features coefficients range value we will
E. Aspect Ratio Algorithm obtain the confirmed diagnostic. The second test scenario was
The aspect ratio of the lesion contour is defined as the ratio performed on multiple ultrasound images, some results
between the largest horizontal length and the largest vertical examples being presented in Fig.5 and Fig.6.
length, specifically the anteroposterior and latero-lateral axes.
This feature was implemented to identify if the shape is a
triangular one with the farthest point away from the surface,
like in the case of pulmonary condensation. To obtain this
ratio, each pair of opposite pixels must be found and the
distance between them computed. For the horizontal line, the y
coordinates range only by incrementing and the x coordinates
are the ones of the contour points at that precise index, Fig.4.
From all the distances between these coordinates, the largest
one is divided by the vertical line, obtained analogous.
AspectRatio = abs(max(verticals(ii))/max(horizontals(ii)))
a.
b.
Confirmed
diagnostic Cancers Non-cancer
Feature
A. Controur < 14 > 14
B. Shape circular triangular
C. Fade >5 <5
D. White spots > 600 < 600 d.
E. Aspect ratio 0.5-1.5 ב0.5-1.5 Fig. 5. Key feature coefficients for necrotic tumor: a) contour coeff; b)
white spot coeff; c) fade coeff; d) shape and aspect ratio coeff.
76
As it can be observed in Fig.5 the developed diagnostic
system is tested on a confirmed malignant tumor
ultrasonography. In Fig.5.a can be observed the determined
contour of the tumor is represented with green color. The
contour represented with red color line is the contour of the
region of interest defined by the user (physician). The straight
white line that can also be observed are also defined by the user
just to eliminate the non-important areas for the contour b.
detection algorithm. Fig.5.b shows the sequential results based
on which the white spots coefficient is computed. Fig.5.c.
actually presents the dimension of the area outside the tumor
contour which is taken into consideration for fade coefficient
computation. Lastly in Fig.5.d is presented the circumscribed
circle, the inscribed triangle for the determined tumor contour
and also at the bottom side is presented the alignment of D,
specifically all the distances from the centroid to each pixel on
the contour, used for finding the peaks and valleys of the
outline. Based on these results, on the bottom left side of the
diagnostic system main window, Fig.5.a, are displayed the
determined key feature coefficients. As it can be observed
based on the obtained results and the key feature nominal
coefficient range value, Table I, the tumor can be classified as c.
malignant as the confirmed diagnostic.
700
In Fig.6, the obtained results after testing the developed
diagnostic system on a confirmed pulmonary condensation are 600
presented. In Fig.6.a can be observed the determined contour of
the suspicious region of interest. As in the previous case the 500
contour of the region of interest defined by the user (physician)
is represented with the red contour. In a similar manner Fig.6.b 400
shows the sequential results based on which the white spots
coefficient is computed. As it can be observed in this case the 300
77
V. CONCLUSIONS REFERENCES
The work presented in this paper is the startup of a national [1] J. Didkowska, U. Wojciechowska, M. Manczuk, J. Lobaszewski, “Lung
research project which promises to improve the life expectancy cancer epidemiology: contemporary and future challenges worldwide”,
in Ann Transl Med. 2016;4(8):150. DOI: 10.21037/atm.2016.03.11
of lung cancer patients by early diagnosis. The main cause that
[2] DR. Brenner et all., “Previous lung diseases and lung cancer risk: a
prevents early diagnosis of lung cancer is that it can be pooled analysis from the International Lung Cancer Consortium.”, in
diagnosed only by CT of MRI which cannot be performed Am J Epidemiol. 2012 Oct 1;176(7):573-85. Epub 2012 Sep 17.
every year (as a check-up) without a doctor’s recommendation, [3] R.I. Chira et. all, „Transthoracic Ultrasonography: Advantages and
being invasive tests and also expensive. An alternative is Limitations in the Assessment of Lung Cancer”, InTech, 2017
represented by transthoracic ultrasounds which is a non- [4] A. Sebei et. all, “Hybrid PET/MRI co-segmentation based on joint fuzzy
invasive test and reduced costs. The only drawback is that the connectedness and graph cut”, in Comput Methods Programs Biomed.
results depend on the experience of the physician. In this paper, 2017 Oct;149:29-41. doi: 10.1016/j.cmpb.2017.07.006.
we propose a novel approach for automatic detection lung [5] T. Nelson et. all, Three-dimensional ultrasound, Lippincott Williams &
tumors based on ultrasound images, to assist young doctors or Wilkins, Philadelphia, 1999
ultrasound technicians in recognizing lung tumor and [6] LF. Herbert, “Drawbacks and Limitations of Computed Tomography”,
in Tex Heart Inst J. 2004; 31(4): 345–348.
differentiate them from condensations. Experimental results
[7] V. Caselles, R. Kimmel, G. Sapiro, Geodesic active contours.
prove that the effectiveness of the developed system. International Journal of Computer Vision, Volume 22, Issue 1, pp. 61-
79, 1997.
ACKNOWLEDGMENT
[8] L.K.Wee, E. Supriyanto, W. M. H. B. W. Mahmud, “Ultrasound Image
This work was supported by a grant of the Romanian Processing: And Its Application Using Matlab”, Lap Lambert Academic
National Authority for Scientific Research and Innovation, Publishing GmbH KG, 2011, ISBN 3845417838, 112 pp
CNCS – UEFISCDI, project number PN-III-P2-2.1-PED-2016- [9] F. Boutaouche and N. Benamrane, “Diagnosis of breast leasions using
0425, contract number 178PED/2017. the local Chan-Vese model, hierachical fuzzy partitioning and fuzzy
decision tree induction”, in Iranian Journal of Fuzzy Systems 2017
[10] S. N. Acho and W. I. D. Rae, „ Dependence of shape-based descriptors
and mass segmentation areas on initial contour placement using the
chan-vese method on digital mammograms”, in Computational and
Mathematical Methods in Medicine, 2015, 1-16.
[11] P. Rahmati et. all, “Mammography segmentation with maximum
likelihood active contours”, in Med. Img. Analysis, 2012, 1167–1186.
78