International Journal of Engineering and Information Systems (IJEAIS) ISSN: 2000-000X Vol. 3 Issue 3, March – 2019, Pages: 17-21 www.ijeais.org 17 ANN for Lung Cancer Detection Ibrahim M. Nasser Depaertment of Information Technology, Faculty of Engineering and Information Technology, Al-Azhar UniversityGaza, Palestine Azhar.ibrahimn@gmail.com Abstract: In this paper, we developed an Artificial Neural Network (ANN) for detect the absence or presence of lung cancer in human body. Symptoms were used to diagnose the lung cancer, these symptoms such as Yellow fingers, Anxiety, Chronic Disease, Fatigue, Allergy, Wheezing, Coughing, Shortness of Breath, Swallowing Difficulty and Chest pain. They were used and other information about the person as input variables for our ANN. Our ANN established, trained, and validated using data set, which its title is "survey lung cancer". Model evaluation showed that the ANN model is able to detect the absence or presence of lung cancer with 96.67 % accuracy. Keywords: Data Mining, Machine Learning, Classification, Predictive Analysis, Artificial Neural Networks, Lung Cancer, Cancer Diagnosis 1. INTRODUCTION Cancer is a wide term. It labels the illness that outcome once cellular changes cause the uncontrolled growth and division of cells. Most of the body's cells have particular functions and fixed lifetimes. However, cell death is part of a natural phenomenon called apoptosis. A cell takes directions to die so that the body can substitute it with a newer one that functions better. Cancerous cells lack the mechanisms that train them to stop dividing and to die. Thus, they grow in the body, using oxygen and nutrients that would usually feed other cells. Cancerous cells can form tumors, damage the immune system and cause other deviations that prevent the body from functioning right. [1] Lung cancer is a malignant lung tumor considered by uncontrolled cell growth in lung tissues [2]. Lung cancer is the primary cause of cancer-related death. [1] The primary goal of our research is to diagnose the presence of lung cancer cells based on attributes, which are set of human symptoms, and information. The study explores the possibility of using an Artificial Neural Network model to detect the presence of a lung cancer in someone's body. The purposes of this study are: To recognize some appropriate factors that cause lung cancer To model an Artificial Neural Network that can be used to detect the presence of lung cancer Artificial neural networks (ANNs) are alike to our neural networks and offer a quite good technique, which solves the problem of classification and prediction [3]. An ANN is a mathematical model that is encouraged by the organization and functional feature of natural neural networks[4], Neural networks involve input and output layers, as well as (in most cases) hidden layers that transform the input into something so the output layer can use [5]. When a neural network used for cancer detections, the ANN Model go through two levels, training and validation. First, the network is trained on a dataset. Then the weights of the connections between neurons are fixed so the network is validated to determine the classifications of a new dataset [6]. ANN Architecture is shown in figure 1. In this paper, we used about 80% of the total sample data for network training, and 20% for network validation. International Journal of Engineering and Information Systems (IJEAIS) ISSN: 2000-000X Vol. 3 Issue 3, March – 2019, Pages: 17-21 www.ijeais.org 18 Figure 1: ANN Architecture 1. Literature Review Nasser, Ibrahim M., et.al did researches in this field and build a lot of Neural network based models for the purpose of classification, prediction, and diagnosing. They proposed an ANN to predict the category of movie's rate [7], predict the price range of mobile phone [8], predict the category of animal [9], diagnose the category of tumor [10], and for diagnose Autism [11]. Abu Naser et.al. developed many classification models based on artificial neural network [12 – 26]. Moreover, Senthil and B. Ayshwarya [27] published a paper titled "Lung Cancer Prediction using Feed Forward Back Propagation Neural Networks with Optimal Features" and the accuracy of their neural network model was 91.5%. 2. Methodology We downloaded a data set that contains persons information that have lung cancer and that have not. This dataset created by the user sta427ceyin on data world website [28]. We did some preprocessing on the data, and then we trained our ANN model and validated it. 3. Dataset Description Table 1: Original Dataset attributes description # Attribute Scope 1. Gender M(male), F(female) 2. Age Age of the patient 3. Smoking YES=2, NO=1. 4. Yellow fingers YES=2, NO=1. 5. Anxiety YES=2, NO=1. 6. Peer pressure YES=2, NO=1. 7. Chronic Disease YES=2, NO=1. International Journal of Engineering and Information Systems (IJEAIS) ISSN: 2000-000X Vol. 3 Issue 3, March – 2019, Pages: 17-21 www.ijeais.org 19 8. Fatigue YES=2, NO=1. 9. Allergy YES=2, NO=1. 10. Wheezing YES=2, NO=1. 11. Alcohol YES=2, NO=1. 12. Coughing YES=2, NO=1. 13. Shortness of Breath YES=2, NO=1. 14. Swallowing Difficulty YES=2, NO=1. 15. Chest pain YES=2, NO=1. 16. Lung Cancer YES, NO. 4. Dataset Preprocessing and Transformation We did some preprocessing and transformation so the data is more suitable for predictive analysis. We used the first 14 attributes as inputs to our model and the lung cancer attribute as the predicted output based on the input attributes. We normalized the values of the attributes: gender, age, lung cancer. Gender scope becomes 0 (male) , 1 (female), lung cancer scope becomes 1 (yes) , 0 (No). However, age attribute normalized to become real because that is better for ANN. Age normalization formula was )) ) )) . 5. The Neural Network The resulted ANN Model is shown in figure (2). Figure 2: Our ANN Model International Journal of Engineering and Information Systems (IJEAIS) ISSN: 2000-000X Vol. 3 Issue 3, March – 2019, Pages: 17-21 www.ijeais.org 20 6. Results Our ANN model was able to predict the presence of lung cancer with 96.67% accuracy, after 1418105 learning cycles with less than 1% training error rate as seen in figure (3). In addition, Our Model showed that the most attribute that has effect on the lung cancer presence is age. More details are shown in figure (4). Figure 3: Validation and errors rates Figure 4: Attributes Importance 7. Conclusion An artificial Neural Network for diagnose the presence or absence of lung cancer in human body movie was developed. The model was validated; it was 96.67 accurate. This study showed that the neural network is able to diagnose lung cancer, so it can used as a diagnose tool by doctors. International Journal of Engineering and Information Systems (IJEAIS) ISSN: 2000-000X Vol. 3 Issue 3, March – 2019, Pages: 17-21 www.ijeais.org 21 References 1. Abu-Naser, S. S. (2012). "Predicting learners performance using artificial neural networks in linear programming intelligent tutoring system." International Journal of Artif icial Intelligence & Applications 3(2): 65. 2. Abu-Nasser, B. S. and S. S. Abu Naser (2018). "Rule-Based System for Watermelon Diseases and Treatment." International Journal of Academic Information Systems Research (IJAISR) 2(7): 1-7. 3. Abu-Nasser, B. S. and S. S. Abu-Naser (2018). "Cognitive System for Helping Farmers in Diagnosing Watermelon Diseases." International Journal of Academic Information Systems Research (IJAISR) 2(7): 17. 4. Abu-Saqer, M. M. and S. S. Abu-Naser (2019). "Developing an Expert System for Papaya Plant Disease Diagnosis." International Journal of Academic Engineering Research (IJAER) 3(4): 14-21. 5. Afana, M., et al. (2018). "Artificial Neural Network for Forecasting Car Mileage per Gallon in the City." International Journal of Advanced Science and Technology 124: 51-59. 6. Alajrami, E., et al. (2019). "Blood Donation Prediction using Artificial Neural Network." International Journal of Academic Engineering Research (IJAER) 3(10): 1-7. 7. Alajrami, E., et al. (2020). "Handwritten Signature Verification using Deep Learning." International Journal of Academic Mult idisciplinary Research (IJAMR) 3(12): 39-44. 8. Alajrami, M. A. and S. S. Abu-Naser (2020). "Type of Tomato Classification Using Deep Learning." International Journal of Academic Pedagogical Research (IJAPR) 3(12): 21-25. 9. Al-Daour, A. F., et al. (2020). "Banana Classification Using Deep Learning." International Journal of Academic Information Systems Research (IJAISR) 3(12): 6-11. 10. Alghoul, A., et al. (2018). "Email Classification Using Artificial Neural Network." International Journal of Academic Engineering Research (IJAER) 2(11): 8-14. 11. Alkronz, E. S., et al. (2019). "Prediction of Whether Mushroom is Edible or Poisonous Using Back-propagation Neural Network." International Journal of Academic and Applied Research (IJAAR) 3(2): 1-8. 12. Al-Massri, R., et al. (2018). "Classification Prediction of SBRCTs Cancers Using Artificial Neural Network." International Journal of Academic Engineering Research (IJAER) 2(11): 1-7. 13. Al-Mubayyed, O. M., et al. (2019). "Predicting Overall Car Performance Using Artificial Neural Network." International Journal of Academic and Applied Research (IJAAR) 3(1): 1-5. 14. Alqumboz, M. N. A. and S. S. Abu-Naser (2020). "Avocado Classification Using Deep Learning." International Journal of Academic Engineering Research (IJAER) 3(12): 30-34. 15. Al-Shawwa, M. and S. S. Abu-Naser (2019). "Predicting Birth Weight Using Artificial Neural Network." International Journal of Academic Health and Medical Research (IJAHMR) 3(1): 9-14. 16. Al-Shawwa, M. and S. S. Abu-Naser (2019). "Predicting Effect of Oxygen Consumption of Thylakoid Membranes (Chloroplasts) from Spinach after Inhibition Using Artificial Neural Network." International Journal of Academic Engineering Research (IJAER) 3(2): 15-20. 17. Al-Shawwa, M. O. and S. S. Abu-Naser (2020). "Classification of Apple Fruits by Deep Learning." International Journal of Academic Engineering Research (IJAER) 3(12): 1-7. 18. Alshawwa, I. A., et al. (2020). "Analyzing Types of Cherry Using Deep Learning. " International Journal of Academic Engineering Research (IJAER) 4 (1): 1-5. 19. Abu-Saqer, M. M., et al. (2020). "Type of Grapefruit Classification Using Deep Learning. " International Journal of Academic Information Systems Research (IJAISR) 4 (1): 1-5. 20. Al-Shawwa, M., et al. (2018). "Predicting Temperature and Humidity in the Surrounding Environment Using Artificial Neural Network." International Journal of Academic Pedagogical Research (IJAPR) 2(9): 1-6. 21. AlZamily, J. Y. and S. S. A. Naser (2020). "Lemon Classification Using Deep Learning." International Journal of Academic Pedagogical Research (IJAPR) 3(12): 16-20. 22. Ashqar, B. A. M. and S. S. Abu-Naser (2019). "Identifying Images of Invasive Hydrangea Using Pre-Trained Deep Convolutional Neural Networks." International Journal of Academic Engineering Research (IJAER) 3(3): 28-36. 23. Ashqar, B. A. M. and S. S. Abu-Naser (2019). "Image-Based Tomato Leaves Diseases Detection Using Deep Learning." International Journal of Academic Engineering Research (IJAER) 2(12): 10-16. 24. Ashqar, B. A., et al. (2019). "Plant Seedlings Classification Using Deep Learning." International Journal of Academic Information Systems Research (IJAISR) 3(1): 7-14. 25. Barhoom, A. M., et al. (2019). "Predicting Titanic Survivors using Artificial Neural Network." International Journal of Academic Engineering Research (IJAER) 3(9): 8-12. 26. Dalffa, M. A., et al. (2019). "Tic-Tac-Toe Learning Using Artificial Neural Networks." International Journal of Engineering and Information Systems (IJEAIS) 3(2): 9-19. 27. Dheir, I. M., et al. (2020). "Classifying Nuts Types Using Convolutional Neural Network." International Journal of Academic Information Systems Research (IJAISR) 3(12): 12-18. 28. El_Jerjawi, N. S. and S. S. Abu-Naser (2018). "Diabetes Prediction Using Artificial Neural Network." International Journal of Advanced Science and Technology 121: 55-64. 29. El-Kahlout, M. I. and S. S. Abu-Naser (2020). "Peach Type Classification Using Deep Learning." International Journal of Academic Engineering Research (IJAER) 3(12): 35-40. 30. El-Khatib, M. J., et al. (2019). "Glass Classification Using Artificial Neural Network." International Journal of Academic Pedagogical Research (IJAPR) 3(2): 25-31. 31. El-Mashharawi, H. Q., et al. (2020). "Grape Type Classification Using Deep Learning." International Journal of Academic Engineering Research (IJAER) 3(12): 41-45. 32. Elsharif, A. A., et al. (2020). "Potato Classification Using Deep Learning." International Journal of Academic Pedagogical Research (IJAPR) 3(12): 1-8. 33. Elzamly, A., et al. (2017). "Predicting Critical Cloud Computing Security Issues using Artificial Neural Network (ANNs) Algorithms in Banking Organizations." International Journal of Information Technology and Electrical Engineering 6(2): 40-45. 34. Heriz, H. H., et al. (2018). "English Alphabet Prediction Using Artificial Neural Networks." International Journal of Academic Pedagogical Research (IJAPR) 2(11): 8-14. 35. Jamala, M. N. and S. S. Abu-Naser (2018). "Predicting MPG for Automobile Using Artificial Neural Network Analysis." International Journal of Academic Information Systems Research (IJAISR) 2(10): 5-21. 36. Kashf, D. W. A., et al. (2018). "Predicting DNA Lung Cancer using Artificial Neural Network." International Journal of Academic Pedagogical Research (IJAPR) 2(10): 6-13. 37. Khalil, A. J., et al. (2019). "Energy Efficiency Predicting using Artificial Neural Network." International Journal of Academic Pedagogical Research (IJAPR) 3(9): 1-8. 38. Marouf, A. and S. S. Abu-Naser (2018). "Predicting Antibiotic Susceptibility Using Artificial Neural Network." International Journal of Academic Pedagogical Research (IJAPR) 2(10): 1-5. 39. Mettleq, A. S. A., et al. (2020). "Mango Classification Using Deep Learning." International Journal of Academic Engineering Research (IJAER) 3(12): 22-29. 40. Metwally, N. F., et al. (2018). "Diagnosis of Hepatitis Virus Using Artificial Neural Network." International Journal of Academic Pedagogical Research (IJAPR) 2(11): 1-7. 41. Musleh, M. M., et al. (2019). "Predicting Liver Patients using Artificial Neural Network." International Journal of Academic Information Systems Research (IJAISR) 3(10): 1-11. 42. Nabahin, A., et al. (2017). "Expert System for Hair Loss Diagnosis and Treatment." International Journal of Engineering and Information Systems (IJEAIS) 1(4): 160-169. 43. Nasser, I. M. and S. S. Abu-Naser (2019). "Artificial Neural Network for Predicting Animals Category." International Journal of Academic and Applied Research (IJAAR) 3(2): 18-24. 44. Nasser, I. M. and S. S. Abu-Naser (2019). "Lung Cancer Detection Using Artificial Neural Network." International Journal of Engineering and Information Systems (IJEAIS) 3(3): 17-23. 45. Nasser, I. M. and S. S. Abu-Naser (2019). "Predicting Books' Overall Rating Using Artificial Neural Network." International Journal of Academic Engineering Research (IJAER) 3(8): 11-17. 46. Nasser, I. M. and S. S. Abu-Naser (2019). "Predicting Tumor Category Using Artificial Neural Networks." International Journal of Academic Health and Medical Research (IJAHMR) 3(2): 1-7. 47. Nasser, I. M., et al. (2019). "A Proposed Artificial Neural Network for Predicting Movies Rates Category." International Journal of Academic Engineering Research (IJAER) 3(2): 21-25. 48. Nasser, I. M., et al. (2019). "Artificial Neural Network for Diagnose Autism Spectrum Disorder." International Journal of Academic Information Systems Research (IJAISR) 3(2): 27-32. 49. Nasser, I. M., et al. (2019). "Developing Artificial Neural Network for Predicting Mobile Phone Price Range." International Journal of Academic Information Systems Research (IJAISR) 3(2): 1-6. 50. Sadek, R. M., et al. (2019). "Parkinson's Disease Prediction Using Artificial Neural Network." International Journal of Academic Health and Medica l Research (IJAHMR) 3(1): 1-8. 51. Salah, M., et al. (2018). "Predicting Medical Expenses Using Artificial Neural Network." International Journal of Engineering and Information Systems (IJEAIS) 2(20): 11-17. 52. Samy, M. and A. Naser (2012). "Predicting learners performance using artificial neural networks in linear programming intelligent tutoring systems." International journal of artificial intelligence & aplpications 3. 53. Zaqout, I., et al. (2015). "Predicting Student Performance Using Artificial Neural Network: in the Faculty of Engineering and Information Technology." International Journal of Hybrid Information Technology 8(2): 221-228. 54. Abu Naser, S. S. (2018). "TOP 10 NEURAL NETWORK PAPERS: RECOMMENDED READING–ARTIFICIAL INTELLIGENCE RESEARCH." word press 1(1). 55. Almadhoun, H. R. and S. S. Abu Naser (2018). "Banana Knowledge Based System Diagnosis and Treatment." International Journal of Academic Pedagogical Research (IJAPR) 2(7): 1-11. 56. Salman, F. and S. S. Abu-Naser (2019). "Rule based System for Safflower Disease Diagnosis and Treatment." International Journal of Academic Engineering Research (IJAER) 3(8): 1-10. 57. Salman, F. M. and S. S. Abu-Naser (2019). "Expert System for Castor Diseases and Diagnosis." International Journal of Engineering and Information Systems (IJEAIS) 3(3): 1-10. 58. Nassr, M. S. and S. S. Abu Naser (2018). "Knowledge Based System for Diagnosing Pineapple Diseases." International Journal of Academic Pedagogical Research (IJAPR) 2(7): 12-19. 59. Mettleq, A. S. A. and S. S. Abu-Naser (2019). "A Rule Based System for the Diagnosis of Coffee Diseases." International Journal of Academic Information Systems Research (IJAISR) 3(3): 1-8. 60. Musleh, M. M. and S. S. Abu-Naser (2018). "Rule Based System for Diagnosing and Treating Potatoes Problems." International Journal of Academic Engineering Research (IJAER) 2(8): 1-9. 61. Khalil, A. J., et al. (2019). "Apple Trees Knowledge Based System." International Journal of Academic Engineering Research (IJAER) 3(9): 1-7. 62. Elzamly, A., et al. (2015). "Classification of Software Risks with Discriminant Analysis Techniques in Software planning Development Process." International Journal of Advanced Science and Technology 81: 35-48. 63. Elzamly, A., et al. (2015). "Predicting Software Analysis Process Risks Using Linear Stepwise Discriminant Analysis: Statistical Methods." Int. J. Adv. Inf. Sci. Technol 38(38): 108-115. 64. Elqassas, R. and S. S. Abu-Naser (2018). "Expert System for the Diagnosis of Mango Diseases." International Journal of Academic Engineering Research (IJAER) 2(8): 10-18. 65. Elsharif, A. A. and S. S. Abu-Naser (2019). "An Expert System for Diagnosing Sugarcane Diseases." International Journal of Academic Engineering Research (IJAER) 3(3): 19-27. 66. El-Mashharawi, H. Q. and S. S. Abu-Naser (2019). "An Expert System for Sesame Diseases Diagnosis Using CLIPS." International Journal of Academic Engineering Research (IJAER) 3(4): 22-29. 67. Dheir, I. and S. S. Abu-Naser (2019). "Knowledge Based System for Diagnosing Guava Problems." International Journal of Academic Information Systems Research (IJAISR) 3(3): 9-15. 68. El Kahlout, M. I. and S. S. Abu-Naser (2019). "An Expert System for Citrus Diseases Diagnosis." International Journal of Academic Engineering Research (IJAER) 3(4): 1-7. 69. Alshawwa, I. A., et al. (2019). "An Expert System for Coconut Diseases Diagnosis." International Journal of Academic Engineering Research (IJAER) 3(4): 8-13. 70. Al-Shawwa, M. and S. S. Abu-Naser (2019). "Knowledge Based System for Apple Problems Using CLIPS." International Journal of Academic Engineering Research (IJAER) 3(3): 1-11.