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.
- Tensorflow
- Numpy
- Pandas
- Matplotlib
- Seaborn
- Sklearn
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.
Here zero stands for the infected histopathological image, and one is for the anon-infected histopathological image.
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.
- Training Data Accuracy: 90 %
- Test Data Accuracy: 86 %
- Training Data Loss: 0.90
- Test Data Loss: 0.31
In this project, I have created deep convolutional neural network architecture for correctly identifying breast cancer with an accuracy of 90 percent accuracy.