Early Lung Cancer Prediction Framework
Early Lung Cancer Prediction Framework
Past years have experienced increasing mortality rate due to lung cancer and thus it
becomes crucial to predict whether the tumor has transformed to cancer or not, if the
prediction is made at an early stage then many lives can be saved and accurate prediction
also can help the doctors start their treatment. Computed tomography plays a vital role in
ensuring the condition of tumor that by checking the size of tumor, location of tumor, etc. In
this paper, we have proposed a framework for prediction of cancer at an early stage so
that many lives that are in an endangered situation could be
revived. Basically, our focus is on two domains of computer science that is Digital Image
Processing acronymed DIP and Machine Learning. Digital image processing is well-known
for the phase of preprocessing the image. In the further stage, the pre-processed image is
exposed to segmentation phase and then the segmented image is passed for feature
extraction and finally the extracted features are trained using machine learning
classification algorithms like SVM (Support Vector Machines), Random Forest, ANN
(Artificial Neural Network). Based on the classification results obtained, prediction is made
whether the tumor is benign or malignant. The inevitable
parameters such as accuracy, Recall and precision are calculated for determining which
algorithm has the highest predictive accuracy.
v
TABLE OF CONTENTS
ABSTRACT V
LIST OF TABLES
1 INTRODUCTION 1
1.1 OVERVIEW 1
1.4 OBJECTIVES 3
2 2.1 LITERATURE SURVEY 4
2.2 SYSTEM ANALYSIS 7
2.2.1 DRAWBACKS OF EXIXTING SYSTEMS 7
2.2.2 PROPOSED SYSTEM 7
2.2.3 SYSTEM REQUIRMENTS 8
2.2.4 HARDWARE REQUIRMENTS 8
2.2.5 SOFTWARE REQUIRMENTS 8
3 SYSTEM DESIGN 10
3.3 MODILES 12
vi
4 SYSTEM IMPLEMENTATION 15
6 CONCLUSION 28
6.2 REFERENCES 29
APPENDIX 33
A. SOURCE CODE 33
B. OUTPUT SCREENSOTS 36
vii
LIST OG FIGURES
viii
CHAPTER 1
INTRODUCTION
1.1 OVERVIEW
Machine Learning is the field of study that gives computers the capability to learn
without being explicitly programmed. ML is one of the most exciting technologies that one
would have ever come across. As it is evident from the name, it gives the computer that
makes it more similar to humans: The ability to learn. Machine learning is actively being
used today, perhaps in many more places than one would expect.
Since the computer was invented, it has begun to affect our daily life. It improves
the quality of our lives; it makes our life more convenient and more efficient. A fascinating
idea is to let a computer think and learn as a human. Basically, machine learning is to let
a computer develop learning skills by itself with given knowledge. Pattern recognition can
be treated like computer being able to recognize different species of objects. Therefore,
machine learning has close connection with pattern recognition.
1
1.2 PURPOSE OF THE MACHINE LEARNING
The process of learning begins with observations or data, such as examples, direct
experience, or instruction, in order to look for patterns in data and make better decisions
in the future based on the examples that we provide. The primary aim is to allow the
computers learn automatically without human intervention or assistance and adjust
actions accordingly.
With the rapid increase in population rate, the rate of diseases like cancer,
chikungunya, cholera etc., are also increasing. Among all of them, cancer is becoming a
common cause of death. Cancer can start almost anywhere in the human body, which
is made up of trillions of cells. Normally, human cells grow and divide to form new cells
as the body needs them. When cells grow older or become damaged, they die, and new
cells take their place. When cancer cells develop, however, this orderly process breaks
down. As cells become more and more abnormal, old or damaged cells survive when
they should die, and new cells form when they are not needed. These extra cells can
divide without stopping and may form growths called tumor. This tumor starts spreading
to different of body. Tumors are of two types benign and malignant where benign (non-
cancerous) is the mass of cell which lack in ability to spread to other part of the body
and malignant (cancerous) is the growth of cell which has ability to spread in other part
2
of body this spreading of infection is called metastasis. There is various type of cancer
like Lung cancer, leukemia, and colon cancer etc. The incidence of lung cancer has
significantly increased from the early 19th century. There is various cause of lung cancer
like smoking, exposure to radon gas, secondhand smoking, and exposure to asbestos
etc.
1.4 OBJECTIVE
3
CHAPTER2
2.1 LITERATURE SURVEY
In the 21st century, cancer is still considered a serious disease as the mortality rates are high. Among
all cancer types, lung cancer ranks first regarding morbidity and mortality [1, 2]. There are two main
categories of lung cancer: non-small-cell lung cancer (NSCLC) and small cell lung cancer (SCLC).
For non-small-cell lung cancer, a subcategorization into lung squamous cell carcinoma (LUSC) and
lung adenocarcinoma (LUAD) is further used. These types of cancers account for approximately 85%
of lung cancer cases [3]. Compared with the diagnosis of benign and malignant, further fine-grained
classification of lung cancers such as LUSC, LUAD, and SCLC is of great significance for the
prognosis of lung cancer. Accurately determining the category of lung cancer in the early diagnosis
directly influences the effect of the treatment and thus the patients’ survival rate [1, 4]. Positron
emission tomography (PET) and computed tomography (CT) are both widely used noninvasive
diagnostic imaging techniques for clinical diagnosis in general and for the diagnosis of lung cancer in
particular [4]. Immunohistochemical evaluation is considered the gold standard for lung cancer
classification. However, this procedure requires a tissue biopsy, an invasive procedure with the
inherent risk of a delayed diagnosis and thus exacerbation of the patient’s pain.
Advances in artificial intelligence research enabled numerous studies on the automatic diagnosis of
lung cancer. The use of data in lung cancer-type classification is roughly divided into three categories:
CT and PET image data as well as pathological images [5]. The well-known data science community
Kaggle provides high-quality CT images for participants with the task to distinguish malignant or
benign nodules from pulmonary nodules. Kaggle competitions repeatedly produce excellent deep
learning approaches for these tasks [6, 7]. With the progresses in the research of automatic lung cancer
diagnosis, studies are no longer limited to the classification of benign and malignant nodules and data
sets are no longer limited to CT images [8–12]. Wu et al. [9] use quantitative imaging characteristics
such as statistical, histogram-related, morphological, and textural features from PET images to predict
the distance metastasis of NSCLC, which shows that quantitative features based on PET images can
effectively characterize intratumor heterogeneity and complexity. Two recent publications propose the
application of deep learning to pathological images to classify NSCLC and SCLC [10] and to classify
transcriptome subtypes of LUAD [11]. The complexity of the clinical diagnosis of lung cancer is also
characterized by the wide range of imaging modality, which is employed in the diagnosis [13, 14].
4
Previous research already proved that deep learning approaches can not only use the feature
distribution patterns from different pulmonary imaging modalities but even merging different features
to achieve the computer-aided diagnosis. Liang et al. [15] employ multichannel techniques to predict
the IDH genotype from PET/CT data using a convolutional neural network (CNN), while other
approaches use a parallel CNN architecture to extract several features of different imaging modalities
[16, 17].
Compared with the classification of the benign and malignant, the classification of the three types of
lung cancer from medical images are more suitable to constitute a fine-grained image recognition
problem as diverse distributions of features and potential pathological features need to be considered.
Because the fine-grained features which need to extract in images, and meanwhile the lesion region is
a small part of the whole image, the deep learning framework is susceptible to feature noise. At
present, most methods based on various deep learning frameworks have proved to have certain
bottleneck in fine-grained problems. In order to solve this problem, the previous research mainly
implements the attention mechanism from the two dimensions (channel and spatial) of the feature
representation. The channel attention mechanism models the relationship between feature channels
[18], while the spatial attention mechanism ensures that noise is suppressed by weighting feature
representation spatially [19–21]. So far, spatial attention mechanism has been used in medical image
processing to enhance extracted features [20, 21]. The channel attention mechanism has been used in
the detection and classification of pulmonary disease [22, 23]. The presentation of these attention
mechanisms illustrates the source of characteristic noise from different perspectives. There are few
related studies on how to use the attention mechanism more effectively on images with different
imaging modalities, so the deep learning model based on the multimodality dataset still has problems
in fine-grained problems.
Many works has already been proposed for prediction of cancer by various researchers among then
Palani et al., [5] has proposed IoT based predictive modeling by using fuzzy C mean clustering for
segmentation and incremental classification algorithm using association rule mining and decision tree
for classification for classifying the tumor sets and based on the output generated by incremental
classification model convolutional neural network has been applied with other features for predicting
benign or malignant.
Lynch et al., [6] Various machine learning algorithm are implemented for predicting the survivability
rate of person, performance is measured based on root mean square error. Each model is trained using
10-fold cross validation, as the parameters are preprocessed by assigning default value so cross
5
validation is used for avoiding over fitting.
FENWA et al., [3] proposed a model whether feature like contrast, brightness from the image dataset
is extracted using texture based feature extraction and on that two type of machine learning algorithm
are applied one is artificial neural network another one is support vector machine and then
performance has been evaluated on both the algorithm to compare which algorithm is giving more
accuracy.
Öztürk et al., [7] proposed a model where a five type of feature extraction techniques were used in
individual classification algorithm to predict at which features extraction technique which machine
learning algorithm is giving more accuracy.
Jin et al., [8] proposed a model where the original image is first converted into binary image the
erosion and dilution has been operated on that image after that image has been segmented on the
segmented image region of interest extraction is applied to identify volume or size of the tumor and
after extraction convolutional neural network is applied with softmax classification layer to recognize
the tumor is cancerous or not.
Sumathipala et al., [9] proposed a model where the image data are taken from LIDC-IDRI, after
collecting the image data image filtration has been implemented, filtration is done based on the patient
who went through biopsy and module level is equal to 30 and then images whose module level is equal
to 30 is segmented and then Logistic regression and random forest has been applied for prediction.
6
2.2 SYSTEM ANALYSIS
In some cases, the application still does not have accurate results. Further
optimization is needed.
Only a few diseases are covered. Therefore, the work must be expanded to cover more
diseases.
Possible causes that can cause misclassification can be: Symptoms of the disease vary
from cigarettes, optimizing the characteristics needed, more training patterns are
needed to cover and predict more cases - the actual disease.
The main theme of this project, is to detect the lung cancer and to take precautions
to avoid or clear that diseases. It overcomes the drawbacks of existing system.
The implementation phase begins with smoking as input and do the following steps:
Pre-Processing layer.
Segmentation layer.
After performing all the above steps, we can detect the disease of lung cancer.
7
2.2.3 SYSTEM REQUIREMENTS
The hardware requirements may serve as the basis for a contract for the
implementation of the system and should therefore be a complete and consistent
specification of the whole system. They are used by software engineers as the starting
point for the system design. It shows what the systems do and not how it should be
implemented.
The software requirements are the specification of the system. It is a set of what
the system should do rather than how it should do it. The software requirements provide
a basis for creating the software requirements specification. It is useful in estimating cost,
planning team activities, performing tasks and tracking the team’s and tracking the team’s
progress throughout the development activity.
8
⚫ Windows 10
⚫ Web Browser
⚫ Python Package Manager
⚫ IDE
⚫ Linux
9
CHAPTER 3
SYSTEM DESIGN
Based on the literature survey a novel model has been proposed which consist of pre-
processing block, segmentation block, feature extraction block and then classification
block. In prediction of cancer CT scan report is basically used. But CT scan report is full of
noise which cannot be seen by human eye for that reason various digital image processing
plays a important role to get a noise free image. Digital image processing is the process
where the analysis and manipulation of image is used to extract some useful information
from the image. Digital image processing involve various step like image pre-processing
where we can enhance the image using histogram equalization, spatial filter etc. Then
image restoration can be done where various kind of noise like salt and pepper noise,
Gaussian noise etc are applied and filter like median filter, mean filter can be applied on
the pre-processed image. After that color conversions is applied only if the image is colored
image then convert it to gray level. Fig. shows the proposed novel framework. Image
segmentation is a process which divides the image into several segment based on the
pixel, once the image segmentation is over the feature extraction can be applied. Feature
extraction is a type of dimensionality reduction where a set of raw data is reduced to more
manageable group image data for extracting the feature like region and texture. After
extracting the feature different machine learning technique is used to classify the image.
10
Fig 3.1 Flow Diagram of Proposed work
11
3.2 ARCHITECTURE DIAGRAM
The following algorithm describes the step by step approach for the proposed model.
.
3.3 Modules
Image has been collected from LIDC-LDRI. The original image was full of noise and for that
first we have applied histogram equalization on the image to enhance the image and then on
the equalized image median filter has been applied to remove the noise which was already
present in the image after getting the noise free image we have applied some more noise in
the image yield more clearer picture then again noise has been removed using median filter.
Generally median filter is non linear digital filtering technique and it is also used as smoothing
12
of images as it don’t blur the edges completely as compare to other filtration technique like
Gaussian filter or average filter.
13
3.3.4. Classification Layer
After feature extraction we will apply classification technique on both the feature to compare
at which feature extraction which machine learning algorithm is giving more
accuracy. Machine learning algorithm which has been used is support vector machine,
artificial neural network and Random forest. After applying classification technique, it
can be predicted that the tumour is cancerous or not and at which feature we are getting
more accurate prediction.
14
CHAPTER 4
SYSTEM IMPLEMENTATION
15
Fig: Use Case Diagram of the System
The following figure shows the first use case. The user uploads a metadata file (.mhd) and a raw
file (.raw) to the back end system via POST request. The system takes the metadata and uses it
to unpack the raw files which contain the images. The system then takes the image data and
saves it into image files (.png) and image data array (.npy) using OpenCV and Numpy. The
reason for this is because the images generated by OpenCV is used to show to the users in the
gallery. Saving the images into (.png) alters the image arrays so the model does not react well to
the changes in the data. Instead we use create Numpy files for each image to give to the model
16
and use the filenames to reference the image and the numpy files.
The following Figure shows the last use case. The system takes the original CT scan reference image
and the associated mask and applies an image contour on the original image.
18
Fig: View Predictions
Home page
CT Scan slices
19
Fig CT Scan slices
The above Figure shows a set of images for a single CT scan. The dimensions for the CT scan is
about 512 height, 512 width and approximately 200 images, although there also exists scans
which are over 300 images.
20
Cancer Masks
With the use of the annotations and Mulholland et al's makemask algorithm. The author was able
to extract a boundary around cancer nodules. A short explanation of masks and the makemask
algorithm used is shown in the appendix. The following Figure shows sample images of cancer
masks, the majority of which is small and some are large.
21
Figure: Lungs Segmented (Feature Set)
22
images of a patients lungs. The dimension for this is (512, 512, 200) which is (Height, Width, No. of
Images). For this project the dataset has been used to segment different parts of the CT scans as part
of feature engineering and visualizations. This dataset was what we originally wanted to work with as
the data was labeled as desired and useful for the project. However the largest challenge that
hindered from continuing using this data is the size of the entire dataset. The entire dataset is about
100GB zipped which could not fit on the laptop. Preprocessing the entire dataset would also be too
computationally heavy.
LUNA16 Labeled 3D- Lung Nodule Analysis Dataset 2016: The LUNA16 dataset is also 3D CT
scans of lung cancer annotated by radiologists. The dataset contains 3D images and a CSV file
containing annotations. This dataset was part of the LUNA16 Grand Challenge in 2016[38]. The
dataset is still publicly available for research. Like the Kaggle dataset the format of the 3D Image is a
3-dimensional array (512, 512, 200) (height, width, no. of images). The main advantage of this
dataset is that the dataset is broken down into10 subsets which makes it much easier to work with.
• Random forest: Combination of classifier trees represents random forest classifier. One of
the finest approaches to represent input variables in form of trees that makes a forest like
structure. Input Data are represented in trees and each tree specifies a class label. Random
forest depends on its error rate. Error rate signifies in to two directions. First one is the
correlation between trees and second one is the strength of the tree.
• ANN (Artificial Neural Network): Neural network are the basic block of machine learning
approach in which the learning process is carried in between neuron. Artificial neural network
(ANN) comprises of input layer, intermediate layer having hidden neurons and output layer.
Every input neuron is connected to hidden neuron through appropriate weight and similarly
weight is connected between hidden unit to output unit. Neuron presented in hidden neuron
and output neuron are processed with some known threshold functional value. Depending on
the requirement the activation will be used to process the neuron.
23
CHAPTER 5
TESTING METHODS
Functional test
System Test
System testing ensures that the entire integrated software system meets
requirements. It tests a configuration to ensure known and predictable results. An example of
system testing is the configuration oriented system integration test. System testing is based
on process descriptions and flows, emphasizing pre-driven process links and integration
points.
Alpha Testing
Combination of three testing methods (unit, integration and system testing) forms the
alpha testing. Alpha testing is conducted by the development team and quality assurance
team. The following things in the application are tested during the alpha testing:
Spelling Mistakes
Broken Links
Cloudy Directions
Measuring the loading time in the minimum system specifications for optimization.
Beta Testing
Once the alpha testing is completed successfully, the product development team
moves onto beta testing. In beta testing, a prerelease version of the software is provided to
sample user base over the internet. These early users will use the software and provide a
timely feedback about the software working. Following steps are performed in this testing:
Installation of the software by the users and feedback submission to the development
team at regular intervals.
Noting down the visual errors, generating crash reports.
Once the feedback is received, development team fixes the issues and once all the
known bugs are fixed, a final version is released to the users.
The nature of the software determines the consumer satisfaction. So, as more and more
issues are fixed, nature of the product is increased which results in higher consumer
satisfaction.
27
CHAPTER 6
CONCLUSION
6.1 FUTURE SCOPE AND CONCLUSION:
The proposed model shows the overview of prediction of lung cancer at an early stage. After
prediction of the tumour begins malignant or benign, we generate a confusion matrix for each
machine learning technique and based on the confusion matrix we calculate accuracy,
Recall, precision and F1 score. From the result we can say that our proposed model can
distinguish between benign and malignant, and it can be seen that artificial neural network is
providing more accuracy in both texture and region based, as well as from the recall value we
can say that it has correctly indentified maximum number of malignant tumour In near future
deep learning shall outperform machine learning in the field of image classification, object
recognition and feature extraction. CNN networks are well known for its features in providing
accuracy with higher number of hidden layers in it.
28
6.2 REFERENCES:
[1] Krishnaiah, V., G. Narsimha, and Dr N. Subhash Chandra. "Diagnosis of lung cancer
prediction system using data mining classification techniques." International Journal of
Computer Science and Information Technologies 4.1 (2013): 39-45.
[2] Zhang, Junjie, et al. "Pulmonary nodule detection in medical images: a survey."
Biomedical Signal Processing and Control 43 (2018): 138- 147.
[3] Fenwa, Olusayo D., Funmilola A. Ajala, and A. Adigun. "Classification of cancer of the
lungs using SVM and ANN." Int. J. Comput. Technol. 15.1 (2016): 6418-6426.
[4] Daoud, Maisa, and Michael Mayo. "A survey of neural network-based cancer prediction
models from microarray data." Artificial intelligence in medicine (2019).
[5] Palani, D., and K. Venkatalakshmi. "An IoT based predictive modelling for predicting lung
cancer using fuzzy cluster based segmentation and classification." Journal of medical
systems 43.2 (2019): 21.
[6] Lynch, Chip M., et al. "Prediction of lung cancer patient survival via supervised machine
learning classification techniques." International journal of medical informatics 108 (2017):
1-8.
[7] Öztürk, Şaban, and Bayram Akdemir. "Application of feature extraction and classification
methods for histopathological image using GLCM, LBP, LBGLCM, GLRLM and SFTA."
Procedia computer science 132 (2018): 40-46.
[8] Jin, Xin-Yu, Yu-Chen Zhang, and Qi-Liang Jin. "Pulmonary nodule detection based on CT
images using convolution neural network." 2016 9th International symposium on
computational intelligence and design (ISCID). Vol. 1. IEEE, 2016.
[9] Sumathipala, Yohan, et al. "Machine learning to predict lung nodule biopsy method using
CT image features: A pilot study." Computerized Medical Imaging and Graphics 71
(2019): 1-8.
[10] A. Jemal, F. Bray, M. M. Center, J. Ferlay, E. Ward, and D. Forman, “Global cancer
statistics,” CA: A Cancer Journal for Clinicians, vol. 61, no. 2, pp. 69–90, 2013.
[11] R. L. Siegel, K. D. Miller, and A. Jemal, “Cancer statistics, 2018,” CA: A Cancer Journal
for Clinicians, vol. 68, no. 1, pp. 7–30, 2018.
29
[12] L. A. Jemal, R. L. Siegel, and A. Jemal, “Lung cancer statistics,” in Lung Cancer and
Personalized Medicine, vol. 893, pp. 1–19, Springer, Berlin, Germany, 2016.
[13] C. I. Henschke, D. I. Mccauley, D. F. Yankelevitz et al., “Early lung cancer action project:
overall design and findings from baseline screening,” The Lancet, vol. 354, no. 9173, pp.
99–105, 1999.
[14] A. K. Alzubaidi, F. B. Sideseq, A. Faeq, and M. Basil, “Computer aided diagnosis in
digital pathology application: review and perspective approach in lung cancer
classification,” in Proceedings of the New Trends in Information & Communications
Technology Applications, pp. 219–224, IEEE, Baghdad, Iraq, March 2017.
[15] W. Sun, B. Zheng, and Q. Wei, “Computer aided lung cancer diagnosis with deep
learning algorithms,” in Proceedings of the Medical Imaging: Computer-Aided Diagnosis,
vol. 9785, p. 97850Z, San Diego, CA, USA, March 2016.
[16] K. Kuan, M. Ravaut, G. Manek et al., “Deep learning for lung cancer detection: tackling
the kaggle data science bowl 2017 challenge,” 2017, [Link]
[17] G. Litjens, C. I. Sánchez, N. Timofeeva et al., “Deep learning as a tool for increased
accuracy and efficiency of histopathological diagnosis,” Scientific Reports, vol. 6, no. 1,
Article ID 26286, 2016.
[18] J. Wu, T. Aguilera, D. Shultz et al., “Early-stage non-small cell lung cancer: quantitative
imaging characteristics of 18F fluorodeoxyglucose PET/CT allow prediction of distant
metastasis,” Radiology, vol. 281, no. 1, pp. 270–278, 2016.
[19] A. Teramoto, T. Tsukamoto, Y. Kiriyama, and H. Fujita, “Automated classification of lung
cancer types from cytological images using deep convolutional neural networks,” BioMed
Research International, vol. 2017, Article ID 4956063, 9 pages, 2017.
[20] V. A. A. Antonio, N. Ono, A. Saito, T. Sato, M. Altaf-Ul-Amin, and M. Kanaya,
“Classification of lung adenocarcinoma transcriptome subtypes from pathological images
using deep convolutional networks,” International Journal of Computer Assisted Radiology
and Surgery, vol. 13, no. 12, pp. 1905–1913, 2018.
[21] S. Lakshmanaprabu, S. N. Mohanty, K. Shankar, N. Arunkumar, and G. Ramirez,
“Optimal deep learning model for classification of lung cancer on CT images,” Future
Generation Computer Systems, vol. 92, pp. 374–382, 2019.
[22] A. Teramoto, H. Fujita, O. Yamamuro, and T. Tamaki, “Automated detection of
pulmonary nodules in PET/CT images: ensemble false-positive reduction using a
30
convolutional neural network technique,” Medical Physics, vol. 43, no. 6, pp. 2821–2827,
2016.
[23] A. Teramoto, M. Tsujimoto, T. Inoue et al., “Automated classification of pulmonary
nodules through a retrospective analysis of conventional CT and two-phase PET images
in patients undergoing biopsy,” Asia Oceania Journal of Nuclear Medicine Biology, vol. 7,
no. 1, pp. 29–37, 2019.
[24] S. Liang, R. Zhang, D. Liang et al., “Multimodal 3D DenseNet for IDH genotype
prediction in gliomas,” Genes, vol. 9, no. 8, p. 382, 2018.
[25] D. Nie, H. Zhang, E. Adeli, L. Liu, and D. Shen, “3D deep learning for multi-modal
imaging-guided survival time prediction of brain tumor patients,” in Medical Image
Computing and Computer-Assisted Intervention-MICCAI 2016, pp. 212–220, Springer,
Berlin, Germany, 2016.
[26] F. Ye, P. Jian, J. Wang, Y. Li, and H. Zha, “Glioma grading based on 3D multimodal
convolutional neural network and privileged learning,” in Proceedings of the IEEE
International Conference on Bioinformatics & Biomedicine, pp. 759–763, IEEE, Kansas
City, MO, USA, November 2017.
[27] H. Jie, S. Li, and S. Gang, “Squeeze-and-excitation networks,” in Proceedings of the
IEEE Conference on Computer Vision and Pattern Recognition, pp. 7132–7141, Salt Lake
City, UT, USA, June 2018.
[28] W. Fei, M. Jiang, Q. Chen et al., “Residual attention network for image classification,” in
Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp.
3156–3164, Honolulu, HI, USA, July 2017.
[29] J. Schlemper, O. Oktay, C. Liang et al., “Attention-gated networks for improving
ultrasound scan plane detection,” 2018, [Link]
[30] M. Al-Shabi, B. L. Lan, W. Y. Chan, K.-H. Ng, and M. Tan, “Lung nodule classification
using deep local–global networks,” International Journal of Computer Assisted Radiology
and Surgery, vol. 14, no. 10, pp. 1815–1819, 2019.
[31] L. Gong, S. Jiang, Z. Yang, G. Zhang, and L. Wang, “Automated pulmonary nodule
detection in CT images using 3D deep squeeze-and-excitation networks,” International
Journal of Computer Assisted Radiology and Surgery, vol. 14, no. 11, pp. 1969–1979,
2019.
[32] C. Yan, J. Yao, R. Li, Z. Xu, and J. Huang, “Weakly supervised deep learning for thoracic
31
disease classification and localization on chest X-rays,” in Proceedings of the 2018 ACM
International Conference on Bioinformatics, Computational Biology, and Health
Informatics, pp. 103–110, ACM, Washington, DC, USA, 2018.
[33] J. Shuiwang, Y. Ming, and Y. Kai, “3D convolutional neural networks for human action
recognition,” IEEE Transactions on Pattern Analysis & Machine Intelligence, vol. 35, pp.
221–231, 2013.
[34] T. Jin, C. Hui, Z. Shan, and X. Wang, “Learning deep spatial lung features by 3D
convolutional neural network for early cancer detection,” in Proceedings of the
International Conference on Digital Image Computing: Techniques & Applications, pp. 1–
6, Sydney, Australia, November 2017.
[35] R. Dey, Z. Lu, and Y. Hong, “Diagnostic classification of lung nodules using 3D neural
networks,” in Proceedings of the IEEE 15th International Symposium on Biomedical
Imaging (ISBI 2018), pp. 774–778, IEEE, Washington, DC, USA, April 2018.
[36] H. Gao, L. Zhuang, L. V. D. Maaten, and K. Q. Weinberger, “Densely connected
convolutional networks,” in Proceedings of the IEEE Conference on Computer Vision And
Pattern Recognition, pp. 4700–4708, Honolulu, HI, USA, July 2017.
[37] J. D. Fauw, J. R. Ledsam, B. Romeraparedes et al., “Clinically applicable deep learning
for diagnosis and referral in retinal disease,” Nature Medicine, vol. 24, no. 9, pp. 1342–
1350, 2018.
[38] W. Guo, Z. Xu, and H. Zhang, “Interstitial lung disease classification using improved
DenseNet,” Multimedia Tools and Applications, vol. 78, no. 21, pp. 30615–30626, 2019.
[39] J. Arevalo, T. Solorio, M. Montes-Y-Gómez, and F. A. González, “Gated multimodal units
for information fusion,” in Proceedings of the ICLR (Workshop), Toulon, France, April
2017.
[40] C. Y. Lee, S. Xie, P. Gallagher et al., “Deeply-supervised nets,” in Proceedings of the
Artificial Intelligence and Statistics, pp. 562–570, San Diego, CA, USA, May 2015.
[41] X. Zhang, Y. Zou, and S. Wei, “Dilated convolution neural network with LeakyReLU for
environmental sound classification,” in Proceedings of the International Conference on
Digital Signal Processing, pp. 1–5, IEEE, London, UK, August 2017.
[42] R. R. Selvaraju, M. Cogswell, A. Das, R. Vedantam, D. Parikh, and D. Batra, “Visual
explanations from deep networks via gradient-based localization,” in Proceedings of the
IEEE International Conference on Computer Vision, pp. 618–626, Seoul, South Korea,
32
October 2019.
33
APPENDIX
[Link] CODE:
#!/usr/bin/env python
# coding: utf-8
# In[65]:
import pandas as pd
import numpy as np
import [Link] as plt
import seaborn as sns
# In[66]:
df=pd.read_csv('[Link]')
# In[67]:
df
# In[68]:
[Link]
# In[69]:
[Link]
# In[70]:
[Link]()
# In[71]:
[Link]([Link]())
#
# In[72]:
[Link]
# In[74]:
[Link](df['target'])
# In[63]:
for i in [Link]:
print(i,df[i].skew())
# In[64]:
df['target'].skew()
34
# In[8]:
[Link]()
# In[9]:
from [Link] import StandardScaler
scaler=StandardScaler()
scaler.fit_transform(df)
# In[45]:
[Link]()
# In[10]:
from [Link] import RandomForestClassifier
rfc=RandomForestClassifier()
# In[11]:
from sklearn.model_selection import train_test_split
target=df['target']
df=[Link](['target'],axis=1)
[Link]
# In[12]:
x_train,x_test,y_train,y_test=train_test_split(df,target,test_size=0.2)
print(y_test)
# In[13]:
[Link](x_train,y_train)
# In[14]:
from [Link] import accuracy_score,confusion_matrix,classification_report
prediction=[Link](x_test)
# In[34]:
accuracy_score(y_test,prediction)
# In[35]:
#Randomized Search Cv
# no of trees in random forest
n_estimators=[int(x) for x in [Link](100,1200,12)]
#no of features to consider at every split
max_features=['auto','sqrt']
#maximum no of levels in a tree
max_depth=[int(x) for x in [Link](5,30,6)]
#minimum no of samples to split at every node
35
min_samples_split=[2,5,10,15,100]
#minimum no of samples required at each leaf node
min_samples_leaf=[1,2,5,10]
# In[36]:
from sklearn.model_selection import RandomizedSearchCV
# In[37]:
random_grid={'n_estimators':n_estimators,'max_features':max_features,'max_depth':max_depth,'
min_samples_split':min_samples_split,'min_samples_leaf':min_samples_leaf}
# In[39]:
rf=RandomizedSearchCV(estimator=rfc,param_distributions=random_grid,scoring='neg_mean_sq
uared_error',n_iter=10,cv=5,verbose=2,random_state=42,n_jobs=1)
# In[40]:
[Link](x_train,y_train)
# In[41]:
predictions=[Link](x_test)
# In[75]:
[Link](predictions)
# In[42]:
accuracy_score(y_test,predictions)
# In[48]:
from [Link] import GradientBoostingClassifier
gbr=GradientBoostingClassifier(n_estimators=3000,learning_rate=0.05)
# In[49]:
[Link](x_train,y_train)
predictions1=[Link](x_test)
# In[50]:
accuracy_score(y_test,predictions1)
36
[Link] SCREENSHOTS
37
38
39
40