Giter Site home page Giter Site logo

navinbondade / identification-of-breast-cancer-using-deep-learning Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.2 MB

In this project, I have developed a custom deep neural network that identifies whether a person has breast cancer or not with 90% accuracy.

License: Apache License 2.0

Jupyter Notebook 100.00%

identification-of-breast-cancer-using-deep-learning's Introduction

Identification Of Breast Cancer With 90% Accuracy

Breast cancer remains one of the most prevalent and challenging health issues worldwide, with 2.3 million women diagnosed and 685,000 deaths reported globally in 2020 alone. The disease originates from mutations in breast cells that proliferate uncontrollably, forming a mass of tissue that can invade and damage surrounding breast tissue. To address this critical concern, I have developed a custom deep neural network specifically trained on histopathological images of both infected and uninfected breast tissue. This model demonstrates a remarkable 90% accuracy in distinguishing between malignant and non-malignant cases, offering a promising tool for early detection and treatment planning in breast cancer care.

Libraries Used

  • Tensorflow
  • Numpy
  • Pandas
  • Matplotlib
  • Seaborn
  • Sklearn

Data Visualization

Below is the visualization of the dataset, which is labeled as either "Positive" or "Negative" for breast cancer. Each image of the dataset represents a sample of breast tissue, stained and magnified, to highlight cellular structures. The "Positive" labels correspond to images where cancerous cells are present, showing irregularities such as dense cellular clusters or abnormal tissue architecture. In contrast, the "Negative" labels indicate non-cancerous tissue, where the cellular structure appears more organized and uniform. This dataset is likely used to train or evaluate a deep neural network model to distinguish between cancerous and non-cancerous breast tissue with high accuracy.

Target Class Distribution

Here zero stands for the infected histopathological image, and one is for the anon-infected histopathological image.

Methodology and Approach

I have developed and rigorously trained a neural network model specifically designed for the classification of breast cancer using histopathological images. This model integrates convolutional neural network (CNN) layers with artificial neural network (ANN) layers to effectively analyze and interpret complex image data. The architecture consists of three CNN layers, each followed by a max-pooling layer, to systematically extract and condense spatial features from the input images. These CNN layers process images of 100x100 pixels with three color channels, and progressively increase in depth from 32 to 192 filters, enhancing the model's ability to capture intricate patterns indicative of malignancy.

After the feature extraction, the output is flattened into a one-dimensional vector and passed through three dense (fully connected) layers in the ANN portion of the network. Dropout layers are incorporated between the dense layers to prevent overfitting by randomly disabling a fraction of neurons during training. The final dense layer outputs a single value, which represents the binary classification of the input image as either positive (cancerous) or negative (non-cancerous).

This model was trained on a dataset consisting of 6,000 histopathological images, equally divided between positive and negative classes. The training was conducted over 20 epochs, using binary cross-entropy as the loss function and the Adam optimizer for adjusting the network's weights. This approach yielded a highly accurate model, capable of identifying breast cancer with an accuracy rate of 90%, offering a promising tool for early detection and diagnosis.

Model Training

Model Loss:

Model Accuracy:

Model Evaluation

  • Training Data Accuracy: 90 %
  • Test Data Accuracy: 86 %
  • Training Data Loss: 0.90
  • Test Data Loss: 0.31

Model Prediction

Model Introspection

Confusion Matrix

Receiver Operating Characteristics (ROC)

Precision vs. Recall curve

Classification Report

Conclusion

In this project, I have created deep convolutional neural network architecture for correctly identifying breast cancer with an accuracy of 90 percent accuracy.

identification-of-breast-cancer-using-deep-learning's People

Contributors

navinbondade avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.