Giter Club home page Giter Club logo

bcdnet's Introduction

BCDNet: A Convolutional Neural Network For Breast Cancer Detection

Introduction

Previous research has established that breast cancer is a prevalent cancer type, with Invasive Ductal Carcinoma (IDC) being the most common subtype. The incidence of this dangerous cancer continues to rise, making accurate and rapid diagnosis, particularly in the early stages, critically important. While modern Computer-Aided Diagnosis (CAD) systems can address most cases, medical professionals still face challenges in quickly adapting CAD systems or using them in the field without powerful computing resources. In this paper, we enhance the traditional Convolutional Neural Network (CNN) architecture by integrating Batch Normalization and Dropout layers, tailoring the model to meet the specific demands of IDC detection. Furthermore, we introduce a novel CNN called BCDNet, which effectively detects IDC in histopathological images with an accuracy of up to 89.5% and reduces training time by up to 82.1%.

Install

Download the code and install the dependencies, for which conda environment is recommended.

git clone https://github.com/404-UnknownUsername/BCDNet
conda create -n bcdnet python==3.8.19
conda install pytorch torchvision pytorch-cuda=12.1 -c pytorch -c nvidia
pip install -r requirements.txt

Attention: If your CUDA version is earlier than 12.1, please visit PyTorch to find the corresponding installation command.

Dataset

The Breast Histopathology Images Dataset can be downloaded from kaggle. Then, you should store it in the data folder under the BCDNet folder.

Train

To train BCDNet on your devices, you can use

python train.py

Remember to change the configuration in train.py based on your requirements and devices.

Test

To test the model, you can use

python test.py

Our test results are as follows:
BCDNet: ResNet 50: ViT-B-16:

bcdnet's People

Stargazers

 avatar  avatar

Watchers

 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.