Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classify Bone Marrow Cells #378

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Bone Marrow Cell Classification Dataset
This dataset is sourced from Kaggle and is provided by the user Larxel on Kaggle. The original dataset can be found at the following Kaggle link:

https://www.kaggle.com/datasets/andrewmvd/bone-marrow-cell-classification
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions Bone-Marrow-Cells-Classification-Using-EfficientNet/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Bone Marrow Cells Classification using Deep Learning
This repository contains Python code for a deep learning project that focuses on the classification of bone marrow cells using medical imaging data. Below, you will find an overview of the code and its key components.

# Overview
The classification of bone marrow cells is a critical task in medical diagnostics. This project leverages deep learning techniques to classify bone marrow cells based on medical images. The code achieves accurate classification results.

# Dataset Link:
https://www.kaggle.com/datasets/andrewmvd/bone-marrow-cell-classification/

# Key Components
## 1. Data Preparation
The code loads medical imaging data for bone marrow cell classification.
It preprocesses the data, including resizing images and preparing training and testing sets.
## 2. Model Architecture
The code defines a deep learning model using TensorFlow/Keras.
It uses the EfficientNetB5 architecture as a base model, followed by additional layers for classification.
Batch normalization, dropout, and regularization techniques are applied to enhance model performance.
## 3. Training and Callbacks
The model is trained using the training dataset.
A custom callback, MyCallback, is utilized to monitor and adjust the learning rate based on various criteria.
Training progress is logged, including loss, accuracy, learning rate adjustments, and more.
## 4. Visualization and Evaluation
The code includes functions for visualizing training and testing results, such as loss and accuracy over epochs.
Model performance is evaluated on both training and testing datasets.
Usage

# To use this code, follow these steps:

Clone or download the code from the Kaggle notebook.
Install the required dependencies, including libraries like TensorFlow, NumPy, pandas, and more.
Run the code cells in the notebook sequentially. Adjust any parameters or settings as necessary for your specific use case.
Monitor the training progress and evaluate the model's performance using the provided metrics.

# Results
The code achieves accurate classification results for bone marrow cells.I have got accuracy of 95.545% Detailed performance metrics and visualizations can be found in the Kaggle notebook.

# Visualization
![bDataset](https://github.com/adi271001/DL-Simplified/assets/67856422/808c795b-01a6-49d9-affe-f40a88d9ff15)
![Btrainingandtesting](https://github.com/adi271001/DL-Simplified/assets/67856422/2924e248-c989-4c00-a692-da7464f0b293)
![bgraphs](https://github.com/adi271001/DL-Simplified/assets/67856422/b72a08d8-78ee-4f16-8f21-6e1bcd4afa75)
![bclassificationreport](https://github.com/adi271001/DL-Simplified/assets/67856422/589ed3a7-4155-418f-adfe-bc2b6d1e5b52)

# Saving Model
The trained model and its weights can be saved for future use. You can easily save both the model architecture and the learned weights using the provided code. The saved model can then be loaded and used for making predictions on new data.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
os==<your_os_version>
time==<your_time_version>
shutil==<your_shutil_version>
pathlib==<your_pathlib_version>
itertools==<your_itertools_version>
opencv-python==4.5.1
numpy==1.19.5
pandas==1.1.5
seaborn==0.11.1
matplotlib==3.4.3
scikit-learn==0.24.2
tensorflow==2.4.1
Loading